ProtectSpawn also uses more logical logic statement
This commit is contained in:
parent
2736ef8af2
commit
b133d6c470
1 changed files with 1 additions and 1 deletions
|
|
@ -4257,7 +4257,7 @@ namespace TShockAPI
|
|||
|
||||
private static void ProtectSpawn(CommandArgs args)
|
||||
{
|
||||
TShock.Config.SpawnProtection = (TShock.Config.SpawnProtection == false);
|
||||
TShock.Config.SpawnProtection = !TShock.Config.SpawnProtection;
|
||||
TSPlayer.All.SendSuccessMessage(string.Format("Spawn is now {0}.", (TShock.Config.SpawnProtection ? "protected" : "open")));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue