mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2024-09-11 04:39:32 +00:00
parent
d091ab9765
commit
7d9419d319
|
@ -539,6 +539,8 @@ public class Methods {
|
||||||
public static boolean canBendPassive(String player, Element element) {
|
public static boolean canBendPassive(String player, Element element) {
|
||||||
BendingPlayer bPlayer = getBendingPlayer(player);
|
BendingPlayer bPlayer = getBendingPlayer(player);
|
||||||
Player p = Bukkit.getPlayer(player);
|
Player p = Bukkit.getPlayer(player);
|
||||||
|
if (bPlayer == null) return false;
|
||||||
|
if (p == null) return false;
|
||||||
if (!p.hasPermission("bending." + element.toString().toLowerCase() + ".passive")) return false;
|
if (!p.hasPermission("bending." + element.toString().toLowerCase() + ".passive")) return false;
|
||||||
if (!bPlayer.isToggled) return false;
|
if (!bPlayer.isToggled) return false;
|
||||||
if (!bPlayer.hasElement(element)) return false;
|
if (!bPlayer.hasElement(element)) return false;
|
||||||
|
|
Loading…
Reference in a new issue