Fixed /setmoney
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user