Changed the default config entry for the server address & added a little tweak.

This commit is contained in:
Ryan
2014-11-01 15:36:24 +00:00
parent 99043a7c49
commit 8a92ff132b
3 changed files with 5 additions and 5 deletions

View File

@ -860,7 +860,7 @@ public class TFM_PlayerListener implements Listener
{
if(!event.getHostname().equalsIgnoreCase(TFM_ConfigEntry.SERVER_ADDRESS.getString()))
{
event.disallow(PlayerLoginEvent.Result.KICK_OTHER, TFM_ConfigEntry.FORCE_IP_KICKMSG.getString());
event.disallow(PlayerLoginEvent.Result.KICK_OTHER, TFM_ConfigEntry.FORCE_IP_KICKMSG.getString().replace("%address%", TFM_ConfigEntry.SERVER_ADDRESS.getString()));
}
}
}