Fix respawning players from the server console
This commit is contained in:
parent
35db1cc372
commit
614211d7a1
2 changed files with 4 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue