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
|
|
@ -13,6 +13,9 @@ This is the rolling changelog for TShock for Terraria. Use past tense when addin
|
|||
* If there is no section called "Upcoming changes" below this line, please add one with `## Upcoming changes` as the first line, and then a bulleted item directly after with the first change.
|
||||
|
||||
## Upcoming changes
|
||||
* Fixed the `/respawn` command to permit respawning players from the console. (@hakusaro, @Kojirremer)
|
||||
|
||||
## TShock 4.5.6
|
||||
* Updated Linux guide. (@NezbednikSK)
|
||||
* Fixed SendTileRectHandler not sending tile rect updates like Pylons/Mannequins to other clients. (@Stealownz)
|
||||
* Introduced `SoftcoreOnly` config option to allow only softcore characters to connect. (@drunderscore)
|
||||
|
|
|
|||
|
|
@ -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