Allow compiling for Spigot 1.7.8

This commit is contained in:
unknown 2014-04-17 18:29:08 +02:00
parent 3371f54c06
commit 0e9044ffc3
2 changed files with 13 additions and 3 deletions

View File

@ -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

View File

@ -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;
}