This commit is contained in:
Wilee999 2014-02-19 11:28:09 -08:00
parent 1c14889bdf
commit fbca5f0527

View File

@ -6,7 +6,6 @@ import java.util.Iterator;
import java.util.List; import java.util.List;
import java.util.Map.Entry; import java.util.Map.Entry;
import java.util.regex.Pattern; import java.util.regex.Pattern;
import java.util.logging.Logger;
import me.StevenLawson.TotalFreedomMod.*; import me.StevenLawson.TotalFreedomMod.*;
import me.StevenLawson.TotalFreedomMod.Commands.Command_landmine; import me.StevenLawson.TotalFreedomMod.Commands.Command_landmine;
import me.StevenLawson.TotalFreedomMod.TFM_RollbackManager.RollbackEntry; import me.StevenLawson.TotalFreedomMod.TFM_RollbackManager.RollbackEntry;
@ -34,8 +33,6 @@ public class TFM_PlayerListener implements Listener
{ {
private static final List<String> BLOCKED_MUTED_CMDS = Arrays.asList(StringUtils.split("say,me,msg,m,tell,r,reply,mail,email", ",")); private static final List<String> BLOCKED_MUTED_CMDS = Arrays.asList(StringUtils.split("say,me,msg,m,tell,r,reply,mail,email", ","));
private static final int MSG_PER_HEARTBEAT = 10; private static final int MSG_PER_HEARTBEAT = 10;
public static final Logger log = Bukkit.getLogger();
@EventHandler(priority = EventPriority.HIGH) @EventHandler(priority = EventPriority.HIGH)
public void onPlayerInteract(PlayerInteractEvent event) public void onPlayerInteract(PlayerInteractEvent event)
@ -665,7 +662,7 @@ public class TFM_PlayerListener implements Listener
} }
// Log player quitting, because 1.7 doesn't do this // Log player quitting, because 1.7 doesn't do this
log.info("[EXIT] " + player.getName() + " left the game."); TFM_Log.info("[EXIT] " + player.getName() + " left the game.", true);
} }
@EventHandler(priority = EventPriority.MONITOR) @EventHandler(priority = EventPriority.MONITOR)
@ -685,7 +682,7 @@ public class TFM_PlayerListener implements Listener
} }
// Log player quitting, because 1.7 doesn't do this // Log player quitting, because 1.7 doesn't do this
log.info("[EXIT] " + player.getName() + " left the game."); TFM_Log.info("[EXIT] " + player.getName() + " left the game.", true);
} }
@EventHandler(priority = EventPriority.MONITOR) @EventHandler(priority = EventPriority.MONITOR)
@ -699,7 +696,7 @@ public class TFM_PlayerListener implements Listener
final String IP = player.getAddress().getAddress().getHostAddress().trim(); final String IP = player.getAddress().getAddress().getHostAddress().trim();
// Log join message, as 1.7 doesn't log it anymore // Log join message, as 1.7 doesn't log it anymore
log.info("[JOIN] " + player.getName() + " joined the game with IP address: " + IP); TFM_Log.info("[JOIN] " + player.getName() + " joined the game with IP address: " + IP, true);
TFM_UserList.getInstance(TotalFreedomMod.plugin).addUser(player); TFM_UserList.getInstance(TotalFreedomMod.plugin).addUser(player);