mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-23 05:36:46 +01:00
Added permission node for Iron Grip
This commit is contained in:
parent
5057a8a7a3
commit
881f2c023e
@ -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);
|
||||
|
||||
|
@ -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.*
|
||||
*/
|
||||
|
@ -349,6 +349,7 @@ permissions:
|
||||
mcmmo.ability.unarmed.disarm: true
|
||||
mcmmo.ability.unarmed.berserk: true
|
||||
mcmmo.ability.unarmed.deflect: true
|
||||
mcmmo.ability.unarmed.irongrip: true
|
||||
mcmmo.ability.unarmed.bonusdamage:
|
||||
description: Allows bonus damage from Unarmed
|
||||
mcmmo.ability.unarmed.disarm:
|
||||
@ -357,6 +358,8 @@ permissions:
|
||||
description: Allows access to the Berserker ability
|
||||
mcmmo.ability.unarmed.deflect:
|
||||
description: Allows access to the Deflect ability
|
||||
mcmmo.ability.unarmed.irongrip:
|
||||
description: Allows access to the Iron Grip ability
|
||||
mcmmo.ability.archery.*:
|
||||
description: Allows access to all Archery abilities
|
||||
children:
|
||||
|
Loading…
Reference in New Issue
Block a user