menu
#3550184 Undefined variable: SWname

Submitted by PocketMine-MP 3.11.3

General information

Version: 3.11.3
Git commit: 0d5704b1
Plugin involvement: Direct
Report date: 2020-01-14 05:20:56 +0000 UTC

System Information

PHP version: 7.3.13
Operating system: linux
System banner: Linux play.sylends.zone 4.15.0 #1 SMP Thu Jun 27 15:10:55 MSK 2019 x86_64

Error information

Warning: the SkyWars plugin was directly involved in this crash. Please contact the plugin author.
Message: Undefined variable: SWname
File: plugins/SkyWars_v0.0.1.phar/src/SkyWars/Commands
Line: #334
Error level: ErrorException
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
                $arena = $args[0];

if (!isset($this->getPlugin()->arenas[$arena])) {
$sender->sendMessage(TextFormat::RED . "Arena: " . TextFormat::YELLOW . $arena . TextFormat::RED . " doesn't exist.");
return false;
}

$sender->sendMessage(TextFormat::GREEN . "Deleting arena '" . $arena . "'...");

$this->getPlugin()->arenas[$SWname]->stop(true);
$this->getPlugin()->deleteAllSigns($arena);
unset($this->getPlugin()->arenas[$SWname]);

foreach (scandir($this->getPlugin()->getDataFolder() . "arenas/" . $arena) as $file) {
$file_path = $this->getPlugin()->getDataFolder() . "arenas/" . $arena . "/" . $file;
if ($file !== "." && $file !== ".." && is_file($file)) {
@unlink($file_path);
}
}

#0 plugins/SkyWars_v0.0.1.phar/src/SkyWars/Commands(334): pocketmine\utils\Utils::errorExceptionHandler(integer 8, string[26] Undefined variable: SWname, string[77] phar:///root/PoketmineS2/plugins/SkyWars_v0.0.1.phar/src/SkyWars/Commands.php, integer 334, array[5])
#1 src/pocketmine/command/SimpleCommandMap(270): SkyWars\Commands->execute(object pocketmine\command\ConsoleCommandSender, string[2] sw, array[1])
#2 src/pocketmine/Server(2026): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\command\ConsoleCommandSender, string[14] sw delete test)
#3 src/pocketmine/Server(1617): pocketmine\Server->dispatchCommand(object pocketmine\command\ConsoleCommandSender, string[14] sw delete test)
#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(2349): pocketmine\snooze\SleeperHandler->sleepUntil(double 1578979256.505)
#7 src/pocketmine/Server(2203): pocketmine\Server->tickProcessor()
#8 src/pocketmine/Server(1785): pocketmine\Server->start()
#9 src/pocketmine/PocketMine(268): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[18] /root/PoketmineS2/, string[26] /root/PoketmineS2/plugins/)
#10 src/pocketmine/PocketMine(291): pocketmine\server()
#11 (1): require(string[73] phar:///root/PoketmineS2/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show