menu
#7304662 Call to undefined method SandhyR\TheBridge\task\GameTask::cancel()

Submitted by PocketMine-MP 4.6.1

General information

Version: 4.6.1
Git commit: b20e0453
Plugin involvement: Direct
Report date: 2022-08-06 01:04:00 +0000 UTC
Server uptime: 0 days 0 hours 24 minutes 15 seconds

System Information

PHP version: 8.0.19
Operating system: linux
System banner: Linux 1426fd33-030e-49a7-a928-23f9ea5fae7e 4.18.0-372.13.1.el8_6.x86_64 #1 SMP Wed Jun 29 17:21:09 UTC 2022 x86_64

Error information

Warning: the OsmyTheBridge plugin was directly involved in this crash. Please contact the plugin author.
Message: Call to undefined method SandhyR\TheBridge\task\GameTask::cancel()
File: plugins/OsmyTheBridge2.0.phar/src/SandhyR/TheBridge/game/Game
Line: #388
Error level: Error
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
    }


/**
* @return void
*/
public function stop(): void
{
if ($this->task instanceof Task) {
$this->task->cancel();
}
//remove all placed block
foreach ($this->placedblock as $pos) {
Server::getInstance()->getWorldManager()->getWorldByName($this->arenainfo["worldname"])->setBlock($pos, VanillaBlocks::AIR());
}
foreach ($this->players as $player) {
if ($player->isOnline()) {
$player->getInventory()->clearAll();
$player->getArmorInventory()->clearAll();
$player->teleport($this->getHub());
#0 plugins/OsmyTheBridge2.0.phar/src/SandhyR/TheBridge/game/Game(595): SandhyR\TheBridge\game\Game->stop()
#1 plugins/OsmyTheBridge2.0.phar/src/SandhyR/TheBridge/game/Game(457): SandhyR\TheBridge\game\Game->restart()
#2 plugins/OsmyTheBridge2.0.phar/src/SandhyR/TheBridge/game/Game(378): SandhyR\TheBridge\game\Game->checkCountdown()
#3 plugins/OsmyTheBridge2.0.phar/src/SandhyR/TheBridge/command/subcommands/QuitSubCommand(32): SandhyR\TheBridge\game\Game->removePlayer(object pocketmine\player\Player#126432)
#4 plugins/OsmyTheBridge2.0.phar/src/SandhyR/TheBridge/libs/CortexPE/Commando/BaseCommand(140): SandhyR\TheBridge\command\subcommands\QuitSubCommand->onRun(object pocketmine\player\Player#126432, string[2] tb, array[0])
#5 pmsrc/src/command/SimpleCommandMap(205): SandhyR\TheBridge\libs\CortexPE\Commando\BaseCommand->execute(object pocketmine\player\Player#126432, string[2] tb, array[0])
#6 pmsrc/src/Server(1446): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\player\Player#126432, string[7] tb quit)
#7 plugins/OSMYCore v2.2.6.phar/src/osmy/Loader(379): pocketmine\Server->dispatchCommand(object pocketmine\player\Player#126432, string[7] tb quit)
#8 pmsrc/src/command/PluginCommand(50): osmy\Loader->onCommand(object pocketmine\player\Player#126432, object pocketmine\command\PluginCommand#27177, string[3] hub, array[0])
#9 pmsrc/src/command/SimpleCommandMap(205): pocketmine\command\PluginCommand->execute(object pocketmine\player\Player#126432, string[3] hub, array[0])
#10 pmsrc/src/Server(1446): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\player\Player#126432, string[3] hub)
#11 pmsrc/src/player/Player(1410): pocketmine\Server->dispatchCommand(object pocketmine\player\Player#126432, string[3] hub)
#12 pmsrc/src/network/mcpe/handler/InGamePacketHandler(736): pocketmine\player\Player->chat(string[4] /hub)
#13 pmsrc/vendor/pocketmine/bedrock-protocol/src/CommandRequestPacket(51): pocketmine\network\mcpe\handler\InGamePacketHandler->handleCommandRequest(object pocketmine\network\mcpe\protocol\CommandRequestPacket#132154)
#14 pmsrc/src/network/mcpe/NetworkSession(394): pocketmine\network\mcpe\protocol\CommandRequestPacket->handle(object pocketmine\network\mcpe\handler\InGamePacketHandler#137042)
#15 pmsrc/src/network/mcpe/NetworkSession(357): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\CommandRequestPacket#132154, string[25] M./hub..M...$H.....!.a...)
#16 pmsrc/src/network/mcpe/raklib/RakLibInterface(182): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[74] ..e..(Mb.....N.c...go*.J\..`>.Q#........./[email protected])
#17 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(42): pocketmine\network\mcpe\raklib\RakLibInterface->onPacketReceive(int 0, string[83] ...u8..q..c....i.jN!X.f.%V...Z<..j.*..0X\i..C^..q..k....]uE.]R.?....Df...2....A.)
#18 pmsrc/src/network/mcpe/raklib/RakLibInterface(112): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#31286)
#19 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\raklib\RakLibInterface->pocketmine\network\mcpe\raklib\{closure}()
#20 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(82): pocketmine\snooze\SleeperHandler->processNotifications()
#21 pmsrc/src/Server(1703): pocketmine\snooze\SleeperHandler->sleepUntil(float 1659747840.0454)
#22 pmsrc/src/Server(1063): pocketmine\Server->tickProcessor()
#23 pmsrc/src/PocketMine(304): pocketmine\Server->__construct(object BaseClassLoader#2, object pocketmine\utils\MainLogger#3, string[16] /home/container/, string[24] /home/container/plugins/)
#24 pmsrc/src/PocketMine(327): pocketmine\server()
#25 pmsrc(11): require(string[60] phar:///home/container/PocketMine-MP.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed PHP Extensions

  • Show