why isnt steven owner

This commit is contained in:
Telesphoreo 2020-08-18 13:32:35 -05:00
parent 4a0523a329
commit 9b2cb58f94
2 changed files with 4 additions and 5 deletions

View File

@ -18,16 +18,15 @@ public class TFMHandler
Plugin plugin = Bukkit.getPluginManager().getPlugin("TotalFreedomMod");
if (plugin != null && plugin.isEnabled())
{
TotalFreedomMod tfm = (TotalFreedomMod)plugin;
totalFreedomMod = tfm;
totalFreedomMod = (TotalFreedomMod)plugin;
return totalFreedomMod;
}
return null;
}
public static boolean isStaff(CommandSender sender)
public static boolean isStaff(String name)
{
return getTFM().sl.isStaff(sender);
return getTFM().sl.getEntryByName(name) != null;
}
}

View File

@ -45,7 +45,7 @@ public class WorldGuardUtils
}
// Fuck your shitty permission system - packs
return TFMHandler.isStaff(player);
return TFMHandler.isStaff(player.getName());
}
public static State queryState(Player player, World world, Set<ProtectedRegion> regions, StateFlag flag)