mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-27 01:05:38 +00:00
Changed the default config entry for the server address & added a little tweak.
This commit is contained in:
parent
99043a7c49
commit
8a92ff132b
@ -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
|
||||
|
@ -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
|
||||
|
@ -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()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user