From 0e9044ffc3e65f46717aa2015b7ed4c83e7bc3b2 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 17 Apr 2014 18:29:08 +0200 Subject: [PATCH] Allow compiling for Spigot 1.7.8 --- buildnumber.properties | 4 ++-- .../TotalFreedomMod/TFM_ServerInterface.java | 12 +++++++++++- 2 files changed, 13 insertions(+), 3 deletions(-) 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; }