mirror of
https://github.com/TotalFreedomMC/TotalFreedomMod.git
synced 2025-08-03 19:15:45 +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
1 changed files with 9 additions and 2 deletions
|
@ -139,9 +139,16 @@ public class FUtil
|
|||
}
|
||||
|
||||
public static boolean isDeveloper(Player player)
|
||||
{
|
||||
if (Bukkit.getOnlineMode())
|
||||
{
|
||||
return DEVELOPERS.contains(player.getUniqueId().toString());
|
||||
}
|
||||
else
|
||||
{
|
||||
return DEVELOPER_NAMES.contains(player.getName());
|
||||
}
|
||||
}
|
||||
|
||||
public static boolean inDeveloperMode()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue