mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-27 01:05:38 +00:00
Merge pull request #128 from ImALuckyGuy/patch-2
Log IP addresses in join messages.
This commit is contained in:
commit
67d8bfce09
@ -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