mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-30 10:05:59 +00:00
Merge pull request #118 from Wilee999/pull3
Log player joins and player leaves for telnet
This commit is contained in:
commit
1330d2b3af
@ -660,6 +660,9 @@ public class TFM_PlayerListener implements Listener
|
|||||||
playerdata.regenerateHistory();
|
playerdata.regenerateHistory();
|
||||||
playerdata.clearHistory();
|
playerdata.clearHistory();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Log player quitting, because 1.7 doesn't do this
|
||||||
|
TFM_Log.info(player.getName() + " left the game.");
|
||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler(priority = EventPriority.MONITOR)
|
@EventHandler(priority = EventPriority.MONITOR)
|
||||||
@ -688,6 +691,9 @@ public class TFM_PlayerListener implements Listener
|
|||||||
final TFM_PlayerData playerdata = TFM_PlayerData.getPlayerData(player);
|
final TFM_PlayerData playerdata = TFM_PlayerData.getPlayerData(player);
|
||||||
playerdata.setSuperadminIdVerified(null);
|
playerdata.setSuperadminIdVerified(null);
|
||||||
|
|
||||||
|
// Log join message, as 1.7 doesn't log it anymore
|
||||||
|
TFM_Log.info(player.getName() + " joined the game.");
|
||||||
|
|
||||||
TFM_UserList.getInstance(TotalFreedomMod.plugin).addUser(player);
|
TFM_UserList.getInstance(TotalFreedomMod.plugin).addUser(player);
|
||||||
|
|
||||||
final boolean impostor = TFM_SuperadminList.isSuperadminImpostor(player);
|
final boolean impostor = TFM_SuperadminList.isSuperadminImpostor(player);
|
||||||
|
Loading…
Reference in New Issue
Block a user