mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-27 01:05:38 +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 New Issue
Block a user