Some cleanups to commands.

This commit is contained in:
hondacrx
2022-06-07 17:49:43 -04:00
parent 22e3faa502
commit 3e0f40be0c
12 changed files with 132 additions and 42 deletions
+2 -2
View File
@@ -364,13 +364,13 @@ namespace Game.Chat
static bool SetClosed(CommandHandler handler, StringArguments args)
{
string arg1 = args.NextString();
if (arg1.Equals("on"))
if (arg1.Equals("on", StringComparison.OrdinalIgnoreCase))
{
handler.SendSysMessage(CypherStrings.WorldClosed);
Global.WorldMgr.SetClosed(true);
return true;
}
else if (arg1.Equals("off"))
else if (arg1.Equals("off", StringComparison.OrdinalIgnoreCase))
{
handler.SendSysMessage(CypherStrings.WorldOpened);
Global.WorldMgr.SetClosed(false);