Log IP addresses in join messages.

This will make finding a player's IP address after a crash much easier.
This commit is contained in:
ImALuckyGuy 2014-01-15 18:45:18 -06:00
parent e5902fc5e8
commit a395904c43

View File

@ -690,9 +690,10 @@ public class TFM_PlayerListener implements Listener
final Player player = event.getPlayer();
final TFM_PlayerData playerdata = TFM_PlayerData.getPlayerData(player);
playerdata.setSuperadminIdVerified(null);
final String IP = player.getAddress().getAddress().getHostAddress().trim();
// Log join message, as 1.7 doesn't log it anymore
TFM_Log.info(player.getName() + " joined the game.");
TFM_Log.info(player.getName() + " joined the game with IP address " + IP);
TFM_UserList.getInstance(TotalFreedomMod.plugin).addUser(player);