Merge pull request #128 from ImALuckyGuy/patch-2

Log IP addresses in join messages.
This commit is contained in:
Jerom van der Sar 2014-01-18 06:30:01 -08:00
commit 67d8bfce09

View File

@ -690,9 +690,10 @@ public class TFM_PlayerListener implements Listener
final Player player = event.getPlayer(); final Player player = event.getPlayer();
final TFM_PlayerData playerdata = TFM_PlayerData.getPlayerData(player); final TFM_PlayerData playerdata = TFM_PlayerData.getPlayerData(player);
playerdata.setSuperadminIdVerified(null); playerdata.setSuperadminIdVerified(null);
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."); TFM_Log.info(player.getName() + " joined the game with IP address: " + IP);
TFM_UserList.getInstance(TotalFreedomMod.plugin).addUser(player); TFM_UserList.getInstance(TotalFreedomMod.plugin).addUser(player);