mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-19 13:55:00 +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:
parent
e82e88f48f
commit
b7c9f4e02d
@ -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!");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user