Fix developer title not showing up on Offline mode servers

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

View File

@ -140,7 +140,11 @@ public class FUtil
public static boolean isDeveloper(Player player) public static boolean isDeveloper(Player player)
{ {
return DEVELOPERS.contains(player.getUniqueId().toString()); if (getOnlineMode()) {
return DEVELOPERS.contains(player.getUniqueId().toString());
} else {
return DEVELOPERS.contains(player.getDisplayName());
}
} }
public static boolean inDeveloperMode() public static boolean inDeveloperMode()