Fixed /setmoney

This commit is contained in:
hydrant
2018-10-20 18:18:37 +02:00
parent 04c41d78c1
commit 08ba991bdc

View File

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