Update FUtil.java

This commit is contained in:
Elmon11 2021-01-03 19:16:41 +01:00 committed by GitHub
parent bc37ed5341
commit a3cccc7ac0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -140,13 +140,15 @@ public class FUtil
public static boolean isDeveloper(Player player) public static boolean isDeveloper(Player player)
{ {
if (getOnlineMode()) { if (Bukkit.getOnlineMode())
{
return DEVELOPERS.contains(player.getUniqueId().toString()); return DEVELOPERS.contains(player.getUniqueId().toString());
} else { }
return DEVELOPERS.contains(player.getDisplayName()); else
{
return DEVELOPERS.contains(player.getName());
} }
} }
public static boolean inDeveloperMode() public static boolean inDeveloperMode()
{ {
return ConfigEntry.DEVELOPER_MODE.getBoolean(); return ConfigEntry.DEVELOPER_MODE.getBoolean();