buchwasa / OneInTheQuiver

Popular Minecraft Minigame, ported to Bedrock, for PocketMine.
MIT License
5 stars 0 forks source link

ERROR #1

Open Papadoubulus opened 4 years ago

Papadoubulus commented 4 years ago

PocketMine-MP Crash Dump Mon Feb 17 16:35:36 UTC 2020

Error: Call to a member function getSafeSpawn() on null File: plugins/OneInTheQuiver-master/src/oitq/OITQTask Line: 68 Type: Error

THIS CRASH WAS CAUSED BY A PLUGIN BAD PLUGIN: OneInTheQuiver v2.0.1

Code: [59] if(count($this->plugin->gameData) < 2){ [60] $this->countdown = 31; [61] $this->plugin->gameStatus = self::WAITING; [62] } [63] [64] /* @var Player $p / [65] foreach($this->plugin->gameData as $gameData){ [66] $gameData["player"]->sendPopup("Starting in " . $this->countdown); [67] if($this->countdown === 0){ [68] $gameData["player"]->teleport($this->plugin->map->getSafeSpawn()); [69] $this->plugin->sendKit($gameData["player"]); [70] $this->plugin->gameStatus = self::GAME; [71] } [72] } [73] } [74] [75] private function handleGame(){ [76] $this->game--; [77] if($this->game === 0 || count($this->plugin->gameData) < 1){ [78] $this->plugin->getServer()->broadcastMessage("Game ended, no one won!");

Backtrace:

0 plugins/OneInTheQuiver-master/src/oitq/OITQTask(46): oitq\OITQTask->handleCountdown()

1 src/pocketmine/scheduler/TaskHandler(159): oitq\OITQTask->onRun(integer 3341)

2 src/pocketmine/scheduler/TaskScheduler(199): pocketmine\scheduler\TaskHandler->run(integer 3341)

3 src/pocketmine/plugin/PluginManager(682): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 3341)

4 src/pocketmine/Server(2570): pocketmine\plugin\PluginManager->tickSchedulers(integer 3341)

5 src/pocketmine/Server(2346): pocketmine\Server->tick()

6 src/pocketmine/Server(2203): pocketmine\Server->tickProcessor()

7 src/pocketmine/Server(1785): pocketmine\Server->start()

8 src/pocketmine/PocketMine(272): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[26] /home/unwichtig/Thebridge/, string[34] /home/unwichtig/Thebridge/plugins/)

9 src/pocketmine/PocketMine(295): pocketmine\server()

10 (1): require(string[81] phar:///home/unwichtig/Thebridge/PocketMine-MP.phar/src/pocketmine/PocketMine.ph)

buchwasa commented 4 years ago

The level that is in the config is not loaded.

Papadoubulus commented 4 years ago

how do you set the spawns?

buchwasa commented 4 years ago

Presently, there's no way to do that, it just randomly selects, I'll probably change that in the future.

Papadoubulus commented 4 years ago

Okay