mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2024-12-23 00:15:05 +00:00
parent
7d9419d319
commit
fbf533f49d
1 changed files with 1 additions and 0 deletions
|
@ -502,6 +502,7 @@ public class Methods {
|
|||
public static boolean canBend(String player, String ability) {
|
||||
BendingPlayer bPlayer = getBendingPlayer(player);
|
||||
Player p = Bukkit.getPlayer(player);
|
||||
if (bPlayer == null) return false;
|
||||
if (!bPlayer.isToggled) return false;
|
||||
if (p == null) return false;
|
||||
if (!p.hasPermission("bending.ability." + ability)) return false;
|
||||
|
|
Loading…
Reference in a new issue