Fixed /setmoney

This commit is contained in:
hydrant
2018-10-20 18:18:37 +02:00
parent c2740d0c64
commit 0c408bcfc8

View File

@@ -1241,7 +1241,13 @@ namespace reallife_gamemode.Server.Commands
return; return;
} }
Client target = ClientService.GetClientByName(receiver); Client target = ClientService.GetClientByName(receiver);
target.SetSharedData("money", amount); if(target == null || !target.IsLoggedIn())
{
ChatService.PlayerNotFound(player);
return;
}
target.GetUser().GetUserBankAccount().Balance = amount;
} }
//TODO //TODO