diff --git a/buildnumber.properties b/buildnumber.properties index b111fa41..f0131a05 100644 --- a/buildnumber.properties +++ b/buildnumber.properties @@ -1,3 +1,3 @@ #Build Number for ANT. Do not edit! -#Tue Apr 15 16:43:28 CEST 2014 -build.number=763 +#Thu Apr 17 18:28:38 CEST 2014 +build.number=765 diff --git a/src/me/StevenLawson/TotalFreedomMod/TFM_ServerInterface.java b/src/me/StevenLawson/TotalFreedomMod/TFM_ServerInterface.java index 60e13552..39411ad8 100644 --- a/src/me/StevenLawson/TotalFreedomMod/TFM_ServerInterface.java +++ b/src/me/StevenLawson/TotalFreedomMod/TFM_ServerInterface.java @@ -1,5 +1,6 @@ package me.StevenLawson.TotalFreedomMod; +import java.io.IOException; import me.StevenLawson.TotalFreedomMod.Config.TFM_ConfigEntry; import java.text.SimpleDateFormat; import java.util.Arrays; @@ -34,7 +35,16 @@ public class TFM_ServerInterface { MinecraftServer.getServer().getPlayerList().getWhitelist().remove(player); } - MinecraftServer.getServer().getPlayerList().getWhitelist().save(); + + try + { + MinecraftServer.getServer().getPlayerList().getWhitelist().save(); + } + catch (Exception ex) + { + TFM_Log.warning("Could not purge the whitelist!"); + TFM_Log.warning(ex); + } return size; }