mirror of
https://github.com/TheDeus-Group/TFM-4.3-Reloaded.git
synced 2025-02-11 15:29:14 +00:00
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:
parent
e5902fc5e8
commit
a395904c43
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue