From d6a2bb3e570c29342b54cb9811a75225d69cbd69 Mon Sep 17 00:00:00 2001 From: GamakCZ Date: Sun, 15 Apr 2018 16:18:54 +0200 Subject: [PATCH] Fix #9 --- .../src/multiworld/command/subcommand/DeleteSubcommand.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MultiWorld/src/multiworld/command/subcommand/DeleteSubcommand.php b/MultiWorld/src/multiworld/command/subcommand/DeleteSubcommand.php index 20db76b7..aec786dc 100644 --- a/MultiWorld/src/multiworld/command/subcommand/DeleteSubcommand.php +++ b/MultiWorld/src/multiworld/command/subcommand/DeleteSubcommand.php @@ -29,7 +29,7 @@ public function executeSub(CommandSender $sender, array $args, string $name) { return; } - if(!$this->getServer()->getDefaultLevel()->getFolderName() == $args[0]) { + if(!$this->getServer()->getDefaultLevel()->getFolderName() == $this->getServer()->getLevelByName($args[0])->getFolderName()) { $sender->sendMessage("§cCould not remove default level!"); return; }