mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2024-11-10 06:34:16 +00:00
...
This commit is contained in:
parent
b9b311e40e
commit
65afa28d30
2 changed files with 6 additions and 1 deletions
|
@ -23,5 +23,7 @@
|
|||
"RCON_password": "super_secret_password",
|
||||
"RCON_port": 25575,
|
||||
|
||||
"admin_pass": null,
|
||||
|
||||
"master_server_url": "http://saumasterserver.servegame.com:7080"
|
||||
}
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue