mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2025-07-13 06:38:35 +00:00
Added warning in MOTD if in adminmode=true
I think this would save people connecting and spamming logs if in adminmode!
This commit is contained in:
@ -727,5 +727,9 @@ public class TFM_PlayerListener implements Listener
|
|||||||
{
|
{
|
||||||
event.setMotd(ChatColor.RED + "You are banned!");
|
event.setMotd(ChatColor.RED + "You are banned!");
|
||||||
}
|
}
|
||||||
|
if (TotalFreedomMod.adminOnlyMode(event.getAddress().getHostAddress()))
|
||||||
|
{
|
||||||
|
event.setMotd(ChatColor.RED + "Server in AdminMode!");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user