ProtectSpawn also uses more logical logic statement

This commit is contained in:
Lucas Nicodemus 2015-02-28 00:56:53 -07:00
parent 2736ef8af2
commit b133d6c470

View file

@ -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")));
}