Core/logs: added xp info on login & logout

Port From (https://github.com/TrinityCore/TrinityCore/commit/bb24c6a11b2410f6dd4ef34f2b7fb87e4b01ba37)
This commit is contained in:
hondacrx
2021-01-19 13:52:16 -05:00
parent fc475c4338
commit 2d2392d6bb
3 changed files with 5 additions and 4 deletions
+1 -2
View File
@@ -202,8 +202,7 @@ namespace Game
// e.g if he got disconnected during a transfer to another map
// calls to GetMap in this case may cause crashes
GetPlayer().CleanupsBeforeDelete();
Log.outInfo(LogFilter.Player, "Account: {0} (IP: {1}) Logout Character:[{2}] (GUID: {3}) Level: {4}",
GetAccountId(), GetRemoteAddress(), _player.GetName(), _player.GetGUID().ToString(), _player.GetLevel());
Log.outInfo(LogFilter.Player, $"Account: {GetAccountId()} (IP: {GetRemoteAddress()}) Logout Character:[{_player.GetName()}] ({_player.GetGUID()}) Level: {_player.GetLevel()}, XP: {_player.GetXP()}/{_player.GetXPForNextLevel()} ({_player.GetXPForNextLevel() - _player.GetXP()} left)");
Map map = GetPlayer().GetMap();
if (map != null)