Prefix player join/exit.

This commit is contained in:
Wilee999 2014-02-19 10:10:29 -08:00
parent 114372194a
commit 1c14889bdf

View File

@ -665,7 +665,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(player.getName() + " left the game."); log.info("[EXIT] " + player.getName() + " left the game.");
} }
@EventHandler(priority = EventPriority.MONITOR) @EventHandler(priority = EventPriority.MONITOR)
@ -685,7 +685,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(player.getName() + " left the game."); log.info("[EXIT] " + player.getName() + " left the game.");
} }
@EventHandler(priority = EventPriority.MONITOR) @EventHandler(priority = EventPriority.MONITOR)
@ -699,7 +699,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(player.getName() + " joined the game with IP address: " + IP); log.info("[JOIN] " + player.getName() + " joined the game with IP address: " + IP);
TFM_UserList.getInstance(TotalFreedomMod.plugin).addUser(player); TFM_UserList.getInstance(TotalFreedomMod.plugin).addUser(player);