menu
#3980961 Call to a member function getFolderName() on null

Submitted by PocketMine-MP 3.9.8

General information

Version: 3.9.8
Git commit: 6399dacb
Plugin involvement: Direct
Report date: 2020-03-25 22:02:33 +0000 UTC

System Information

PHP version: 7.3.14
Operating system: linux
System banner: Linux pikmine 4.15.0-91-generic #92-Ubuntu SMP Fri Feb 28 11:09:48 UTC 2020 x86_64

Error information

Warning: the MultiWorld plugin was directly involved in this crash. Please contact the plugin author.
Message: Call to a member function getFolderName() on null
File: plugins/MultiWorld.phar/src/czechpmdevs/multiworld/command/subcommand/DeleteSubcommand
Line: #57
Error level: Error
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
        }

if (!$this->getServer()->isLevelGenerated($args[0]) || !file_exists($this->getServer()->getDataPath() . "worlds/{$args[0]}")) {
$sender->sendMessage(MultiWorld::getPrefix() . str_replace("%1", $args[0], LanguageManager::getMsg($sender, "delete-levelnotexists")));
return;
}

if(!$this->getServer()->isLevelLoaded($args[0])) $this->getServer()->loadLevel($args[0]);

if ($this->getServer()->getDefaultLevel()->getFolderName() == $this->getServer()->getLevelByName($args[0])->getFolderName()) {
$sender->sendMessage("§cCould not remove default level!");
return;
}

$files = WorldManagementAPI::removeLevel($args[0]);
$sender->sendMessage(MultiWorld::getPrefix() . LanguageManager::getMsg($sender, "delete-done", [$files]));
}

/**
* @return Server $server
#0 plugins/MultiWorld.phar/src/czechpmdevs/multiworld/command/MultiWorldCommand(116): czechpmdevs\multiworld\command\subcommand\DeleteSubcommand->executeSub(object pocketmine\command\ConsoleCommandSender, array[1], string[6] delete)
#1 src/pocketmine/command/SimpleCommandMap(270): czechpmdevs\multiworld\command\MultiWorldCommand->execute(object pocketmine\command\ConsoleCommandSender, string[2] mw, array[1])
#2 src/pocketmine/Server(2025): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\command\ConsoleCommandSender, string[9] mw del xz)
#3 src/pocketmine/Server(1616): pocketmine\Server->dispatchCommand(object pocketmine\command\ConsoleCommandSender, string[9] mw del xz)
#4 vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\Server->pocketmine\{closure}()
#5 vendor/pocketmine/snooze/src/SleeperHandler(85): pocketmine\snooze\SleeperHandler->processNotifications()
#6 src/pocketmine/Server(2345): pocketmine\snooze\SleeperHandler->sleepUntil(double 1585173753.5347)
#7 src/pocketmine/Server(2202): pocketmine\Server->tickProcessor()
#8 src/pocketmine/Server(1784): pocketmine\Server->start()
#9 src/pocketmine/PocketMine(272): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[9] /root/g1/, string[17] /root/g1/plugins/)
#10 src/pocketmine/PocketMine(295): pocketmine\server()
#11 (1): require(string[64] phar:///root/g1/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show