menu
#2471333 Call to undefined method KaitoDoDo\SkyWarsTeam\GameSender::getOwner()

Submitted by PocketMine-MP 3.8.4

General information

Version: 3.8.4
Git commit: a42f68d3
Plugin involvement: Direct
Report date: 2019-06-12 15:09:10 +0000 UTC

System Information

PHP version: 7.2.16
Operating system: linux
System banner: Linux play.terranite.ga 2.6.32-042stab138.1 #1 SMP Wed May 15 09:33:10 MSK 2019 x86_64

Error information

Warning: the SkyWarsTeamDoDo plugin was directly involved in this crash. Please contact the plugin author.
Message: Call to undefined method KaitoDoDo\SkyWarsTeam\GameSender::getOwner()
File: plugins/SkyWarsTeam.phar/src/KaitoDoDo/SkyWarsTeam/Resetmap
Line: #18
Error level: Error
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
    public $main;

public function __construct(GameSender $main){
$this->main = $main;
}

public function reload($lev)
{
$name = $lev->getFolderName();
if ($this->main->getOwner()->getServer()->isLevelLoaded($name))
{
$this->main->getOwner()->getServer()->unloadLevel($this->main->getOwner()->getServer()->getLevelByName($name));
}
$zip = new \ZipArchive;
$zip->open($this->main->getOwner()->getDataFolder() . 'arenas/' . $name . '.zip');
$zip->extractTo($this->main->getOwner()->getServer()->getDataPath() . 'worlds');
$zip->close();
unset($zip);
$this->main->getOwner()->getServer()->loadLevel($name);
return true;
#0 plugins/SkyWarsTeam.phar/src/KaitoDoDo/SkyWarsTeam/SkyWarsTeam(910): KaitoDoDo\SkyWarsTeam\Resetmap->reload(object pocketmine\level\Level)
#1 src/pocketmine/scheduler/TaskHandler(159): KaitoDoDo\SkyWarsTeam\GameSender->onRun(integer 55196)
#2 src/pocketmine/scheduler/TaskScheduler(199): pocketmine\scheduler\TaskHandler->run(integer 55196)
#3 src/pocketmine/plugin/PluginManager(689): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 55196)
#4 src/pocketmine/Server(2559): pocketmine\plugin\PluginManager->tickSchedulers(integer 55196)
#5 src/pocketmine/Server(2335): pocketmine\Server->tick()
#6 src/pocketmine/Server(2195): pocketmine\Server->tickProcessor()
#7 src/pocketmine/Server(1774): pocketmine\Server->start()
#8 src/pocketmine/PocketMine(266): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[13] /root/server/, string[21] /root/server/plugins/)
#9 (1): require(string[68] phar:///root/server/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show