Added permission node for Iron Grip

This commit is contained in:
GJ
2012-06-25 08:44:05 -04:00
parent 5057a8a7a3
commit 881f2c023e
3 changed files with 11 additions and 2 deletions

View File

@ -87,7 +87,9 @@ public class UnarmedManager {
* @return true if the defender was not disarmed, false otherwise
*/
private boolean hasIronGrip(Player defender) {
//TODO: Add permission for Iron Grip
if (!permissionsInstance.ironGrip(defender)) {
return false;
}
IronGripEventHandler eventHandler = new IronGripEventHandler(this, defender);

View File

@ -228,6 +228,10 @@ public class Permissions {
return player.hasPermission("mcmmo.ability.unarmed.deflect");
}
public boolean ironGrip(Player player) {
return player.hasPermission("mcmmo.ability.unarmed.irongrip");
}
/*
* MCMMO.ABILITY.ARCHERY.*
*/