menu
#4531712 Call to a member function getSpawnLocation() on null

Submitted by PocketMine-MP 3.15.0

General information

Version: 3.15.0
Git commit: a498b041
Plugin involvement: Direct
Report date: 2020-09-16 10:58:34 +0000 UTC

System Information

PHP version: 7.3.14
Operating system: linux
System banner: Linux c739cf602156 4.4.0-164-generic #192-Ubuntu SMP Fri Sep 13 12:02:50 UTC 2019 x86_64

Error information

Warning: the 1vs1 plugin was directly involved in this crash. Please contact the plugin author.
Message: Call to a member function getSpawnLocation() on null
File: plugins/1vs1.phar/src/vixikhd/onevsone/arena/ArenaScheduler
Line: #104
Error level: Error
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
                break;
case Arena::PHASE_RESTART:
$this->plugin->broadcastMessage("┬ža> Restarting in {$this->restartTime} sec.", Arena::MSG_TIP);
$this->restartTime--;

switch ($this->restartTime) {
case 0:

foreach ($this->plugin->players as $player) {
$player->teleport($this->plugin->plugin->getServer()->getDefaultLevel()->getSpawnLocation());

$player->getInventory()->clearAll();
$player->getArmorInventory()->clearAll();
$player->getCursorInventory()->clearAll();

$player->setFood(20);
$player->setHealth(20);

$player->setGamemode($this->plugin->plugin->getServer()->getDefaultGamemode());
}
#0 src/pocketmine/scheduler/TaskHandler(137): vixikhd\onevsone\arena\ArenaScheduler->onRun(integer 28541)
#1 src/pocketmine/scheduler/TaskScheduler(179): pocketmine\scheduler\TaskHandler->run(integer 28541)
#2 src/pocketmine/plugin/PluginManager(654): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 28541)
#3 src/pocketmine/Server(2391): pocketmine\plugin\PluginManager->tickSchedulers(integer 28541)
#4 src/pocketmine/Server(2154): pocketmine\Server->tick()
#5 src/pocketmine/Server(1994): pocketmine\Server->tickProcessor()
#6 src/pocketmine/Server(1588): pocketmine\Server->start()
#7 src/pocketmine/PocketMine(273): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[8] /server/, string[16] /server/plugins/)
#8 src/pocketmine/PocketMine(304): pocketmine\server()
#9 (11): require(string[56] phar:///server/server.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies