Fix respawning players from the server console

This commit is contained in:
Lucas Nicodemus 2021-11-21 16:35:47 -08:00
parent 35db1cc372
commit 614211d7a1
2 changed files with 4 additions and 1 deletions

View file

@ -5793,7 +5793,7 @@ namespace TShockAPI
private static void Respawn(CommandArgs args)
{
if (!args.Player.RealPlayer)
if (!args.Player.RealPlayer && args.Parameters.Count == 0)
{
args.Player.SendErrorMessage("You can't respawn the server console!");
return;