Permissions for Bending Passives

bending.ELEMENT.passive
This commit is contained in:
MistPhizzle 2014-07-07 21:07:33 -04:00
parent b0d778ad85
commit 980574d412
3 changed files with 8 additions and 2 deletions

Binary file not shown.

View file

@ -462,6 +462,7 @@ public class Methods {
public static boolean canBendPassive(String player, Element element) {
BendingPlayer bPlayer = getBendingPlayer(player);
Player p = Bukkit.getPlayer(player);
if (!p.hasPermission("bending." + element.toString().toLowerCase() + ".passive")) return false;
if (!bPlayer.isToggled) return false;
if (!bPlayer.hasElement(element)) return false;
if (isRegionProtectedFromBuild(p, null, p.getLocation())) return false;

View file

@ -1,6 +1,6 @@
name: ProjectKorra
author: ProjectKorra
version: 1.1.0
version: 1.2.0 BETA 1
main: com.projectkorra.ProjectKorra.ProjectKorra
commands:
projectkorra:
@ -50,6 +50,7 @@ permissions:
bending.ability.AirSuction: true
bending.ability.AirSwipe: true
bending.ability.Tornado: true
bending.air.passive: true
bending.water:
default: true
description: Grants access to most waterbending abilities.
@ -66,6 +67,7 @@ permissions:
bending.ability.WaterSpout: true
bending.ability.Plantbending: true
bending.message.nightmessage: true
bending.water.passive: true
bending.earth:
default: true
description: Grants access to all Earthbending abilities.
@ -79,6 +81,7 @@ permissions:
bending.ability.RaiseEarth: true
bending.ability.Shockwave: true
bending.ability.Tremorsense: true
bending.earth.passive: true
bending.fire:
default: true
description: Grants access to all firebending abilities.
@ -93,10 +96,12 @@ permissions:
bending.ability.Lightning: true
bending.ability.WallOfFire: true
bending.message.daymessage: true
bending.fire.passive: true
bending.chi:
default: true
description: Grants access to all ChiBlocking abilities.
children:
bending.ability.HighJump: true
bending.ability.Paralyze: true
bending.ability.RapidPunch: true
bending.ability.RapidPunch: true
bending.chi.passive: true