Fix sandbox panel "ghost" button oversight.

Now defaults to ghost if you don't have aghost perms.
This commit is contained in:
Víctor Aguilera Puerto
2020-08-14 21:55:39 +02:00
parent 541ba64c80
commit 7cd32fe587

View File

@@ -129,7 +129,8 @@ namespace Content.Server.Sandbox
}
var player = _playerManager.GetSessionByChannel(message.MsgChannel);
_shell.ExecuteCommand(player, $"aghost");
_shell.ExecuteCommand(player, _conGroupController.CanCommand(player, "aghost") ? "aghost" : "ghost");
}
private void SandboxSuicideReceived(MsgSandboxSuicide message)