mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-27 09:15:38 +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
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user