From b7c9f4e02d10a2a374d399a54c01c1c746134cbf Mon Sep 17 00:00:00 2001 From: Ryan Date: Wed, 15 May 2013 23:12:46 +0200 Subject: [PATCH] Added warning in MOTD if in adminmode=true I think this would save people connecting and spamming logs if in adminmode! --- .../TotalFreedomMod/Listener/TFM_PlayerListener.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/me/StevenLawson/TotalFreedomMod/Listener/TFM_PlayerListener.java b/src/me/StevenLawson/TotalFreedomMod/Listener/TFM_PlayerListener.java index f4b24e3c..3b3276f4 100644 --- a/src/me/StevenLawson/TotalFreedomMod/Listener/TFM_PlayerListener.java +++ b/src/me/StevenLawson/TotalFreedomMod/Listener/TFM_PlayerListener.java @@ -727,5 +727,9 @@ public class TFM_PlayerListener implements Listener { event.setMotd(ChatColor.RED + "You are banned!"); } + if (TotalFreedomMod.adminOnlyMode(event.getAddress().getHostAddress())) + { + event.setMotd(ChatColor.RED + "Server in AdminMode!"); + } } }