Move server interface where it belongs.

This commit is contained in:
Steven Lawson 2013-07-04 12:22:02 -04:00
parent 0dca359e4c
commit 391e417882
4 changed files with 11 additions and 7 deletions

View File

@ -1,5 +1,5 @@
#Wed, 03 Jul 2013 22:54:08 -0400
#Thu, 04 Jul 2013 12:21:05 -0400
program.VERSION=2.20
program.BUILDNUM=259
program.BUILDDATE=07/03/2013 10\:54 PM
program.BUILDNUM=261
program.BUILDDATE=07/04/2013 12\:21 PM

View File

@ -1,3 +1,3 @@
#Build Number for ANT. Do not edit!
#Wed Jul 03 22:54:08 EDT 2013
build.number=260
#Thu Jul 04 12:21:05 EDT 2013
build.number=262

View File

@ -7,7 +7,6 @@ import java.util.List;
import java.util.Map.Entry;
import java.util.regex.Pattern;
import me.StevenLawson.TotalFreedomMod.*;
import net.minecraft.server.v1_6_R1.MinecraftServer;
import org.apache.commons.lang.StringUtils;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
@ -763,7 +762,7 @@ public class TFM_PlayerListener implements Listener
//event.setMotd(ChatColor.translateAlternateColorCodes('&', event.getMotd()));
event.setMotd(TFM_Util.randomChatColor() + "Total" + TFM_Util.randomChatColor() + "Freedom " + ChatColor.DARK_GRAY
+ "-" + TFM_Util.randomChatColor() + " Bukkit v" + String.valueOf(MinecraftServer.getServer().getVersion()));
+ "-" + TFM_Util.randomChatColor() + " Bukkit v" + TFM_ServerInterface.getVersion());
if (TFM_ServerInterface.isIPBanned(event.getAddress().getHostAddress()))
{

View File

@ -317,4 +317,9 @@ public class TFM_ServerInterface
}
}
}
public static String getVersion()
{
return MinecraftServer.getServer().getVersion();
}
}