evtl fix payday

This commit is contained in:
hydrant
2020-04-05 15:20:50 +02:00
parent 840d77e9ce
commit 593fad138f
2 changed files with 28 additions and 27 deletions

View File

@@ -2719,9 +2719,12 @@ namespace ReallifeGamemode.Server.Commands
return;
}
foreach (var target in NAPI.Pools.GetAllPlayers().Select(c => c.GetUser()))
foreach (var target in NAPI.Pools.GetAllPlayers())
{
Economy.SetPaycheck(target.Player, target.Wage);
if (target.IsLoggedIn())
{
Economy.SetPaycheck(target);
}
}
ChatService.SendMessage(player, "~b~[ADMIN]~s~ Du hast ein Payday gedroppt.");