This commit is contained in:
in0finite 2022-04-22 16:16:57 +02:00
parent b9b311e40e
commit 65afa28d30
2 changed files with 6 additions and 1 deletions

View file

@ -23,5 +23,7 @@
"RCON_password": "super_secret_password",
"RCON_port": 25575,
"admin_pass": null,
"master_server_url": "http://saumasterserver.servegame.com:7080"
}

View file

@ -215,7 +215,10 @@ namespace SanAndreasUnity.Commands
public ProcessCommandResult ProcessCommandForPlayer(Player player, string command)
{
bool hasServerPermissions = player == Player.Local;
if (null == player)
throw new System.ArgumentNullException(nameof(player));
bool hasServerPermissions = player == Player.Local || player.IsServerAdmin;
return ProcessCommand(new ProcessCommandContext
{
command = command,