mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-27 01:05:38 +00:00
Merge pull request #17 from AtlasMediaGroup/Elmon11-patch-1
Fix developer title not showing up on Offline mode servers
This commit is contained in:
commit
7fb6a2f087
@ -140,9 +140,16 @@ public class FUtil
|
|||||||
|
|
||||||
public static boolean isDeveloper(Player player)
|
public static boolean isDeveloper(Player player)
|
||||||
{
|
{
|
||||||
return DEVELOPERS.contains(player.getUniqueId().toString());
|
if (Bukkit.getOnlineMode())
|
||||||
|
{
|
||||||
|
return DEVELOPERS.contains(player.getUniqueId().toString());
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return DEVELOPER_NAMES.contains(player.getName());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean inDeveloperMode()
|
public static boolean inDeveloperMode()
|
||||||
{
|
{
|
||||||
return ConfigEntry.DEVELOPER_MODE.getBoolean();
|
return ConfigEntry.DEVELOPER_MODE.getBoolean();
|
||||||
|
Loading…
Reference in New Issue
Block a user