From 08ba991bdc8115dec46a315fc8d3fb0fc9036164 Mon Sep 17 00:00:00 2001 From: hydrant Date: Sat, 20 Oct 2018 18:18:37 +0200 Subject: [PATCH] Fixed /setmoney --- Server/Commands/Admin.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Server/Commands/Admin.cs b/Server/Commands/Admin.cs index a47d5106..15bb7c1d 100644 --- a/Server/Commands/Admin.cs +++ b/Server/Commands/Admin.cs @@ -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