Merge pull request #140 from Wilee999/patch-5

Changed to raw logger output on join/quit messages.
This commit is contained in:
Steven Lawson 2014-02-19 14:33:50 -05:00
commit d05f8b7169

View File

@ -662,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
TFM_Log.info(player.getName() + " left the game."); TFM_Log.info("[EXIT] " + player.getName() + " left the game.", true);
} }
@EventHandler(priority = EventPriority.MONITOR) @EventHandler(priority = EventPriority.MONITOR)
@ -680,6 +680,9 @@ public class TFM_PlayerListener implements Listener
playerdata.regenerateHistory(); playerdata.regenerateHistory();
playerdata.clearHistory(); playerdata.clearHistory();
} }
// Log player quitting, because 1.7 doesn't do this
TFM_Log.info("[EXIT] " + player.getName() + " left the game.", true);
} }
@EventHandler(priority = EventPriority.MONITOR) @EventHandler(priority = EventPriority.MONITOR)
@ -693,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
TFM_Log.info(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);