From 512bc678fa8513277ca4a613d5ae8333241e6e4a Mon Sep 17 00:00:00 2001 From: Venom983 Date: Sat, 12 Sep 2015 20:01:39 -0400 Subject: [PATCH] Allowed use on current level if message is blank --- Commands/CmdUnload.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Commands/CmdUnload.cs b/Commands/CmdUnload.cs index 7e2ef5f4a..0fe5ca83d 100644 --- a/Commands/CmdUnload.cs +++ b/Commands/CmdUnload.cs @@ -43,7 +43,13 @@ namespace MCGalaxy.Commands { if (!level.Unload()) Player.SendMessage(p, "You cannot unload the main level."); return; - } + } + if (message == "") + { + level = p.level; + level.Unload(); + return; + } Player.SendMessage(p, "There is no level \"" + message + "\" loaded."); } @@ -53,4 +59,4 @@ namespace MCGalaxy.Commands Player.SendMessage(p, "/unload empty - Unloads an empty level."); } } -} \ No newline at end of file +}