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

@ -1,3 +1,3 @@
#Build Number for ANT. Do not edit!
#Sat Nov 01 12:07:03 GMT 2014
build.number=960
#Sat Nov 01 15:34:44 GMT 2014
build.number=961

View file

@ -7,7 +7,7 @@ server:
name: TotalFreedom
# The address your server is located at - Please Note: The port MUST be included, even if it is default port (DNS Records included)
address: 64.34.165.5:28965
address: play.totalfreedom.me:25565
# Shown at the server list
motd: TotalFreedom &8- Minecraft %mcversion%
@ -32,7 +32,7 @@ forceip:
enabled: true
# Please enter the kick message you wish for people to see if they are not connecting on the servers hostname
kickmsg: You have been kicked from the server - Please connect using play.totalfreedom.me
kickmsg: You have been kicked from the server - Please connect using %address%
# Blocking certain events

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()));
}
}
}