mirror of
https://github.com/TotalFreedomMC/TotalFreedomMod.git
synced 2024-05-20 11:31:23 +00:00
Update FUtil.java
This commit is contained in:
parent
bc37ed5341
commit
a3cccc7ac0
|
@ -140,13 +140,15 @@ public class FUtil
|
|||
|
||||
public static boolean isDeveloper(Player player)
|
||||
{
|
||||
if (getOnlineMode()) {
|
||||
if (Bukkit.getOnlineMode())
|
||||
{
|
||||
return DEVELOPERS.contains(player.getUniqueId().toString());
|
||||
} else {
|
||||
return DEVELOPERS.contains(player.getDisplayName());
|
||||
}
|
||||
else
|
||||
{
|
||||
return DEVELOPERS.contains(player.getName());
|
||||
}
|
||||
}
|
||||
|
||||
public static boolean inDeveloperMode()
|
||||
{
|
||||
return ConfigEntry.DEVELOPER_MODE.getBoolean();
|
||||
|
|
Loading…
Reference in a new issue