menu
#7304729 Cannot assign pocketmine\scheduler\TaskHandler to property SandhyR\TheBridge\game\Game::$task of type ?pocketmine\scheduler\Task

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:20:32 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 0 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: Cannot assign pocketmine\scheduler\TaskHandler to property SandhyR\TheBridge\game\Game::$task of type ?pocketmine\scheduler\Task
File: plugins/OsmyTheBridge2.0.phar/src/SandhyR/TheBridge/game/Game
Line: #139
Error level: TypeError
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
    public function setWorld(World $world)
{
$this->arenainfo["worldname"] = $world->getDisplayName();
}

private function startArena()
{
$this->start = true;
$this->phase = "LOBBY";
$this->task = TheBridge::getInstance()->getScheduler()->scheduleRepeatingTask(new GameTask($this), 20);
}

/**
* @param bool $lobby
* @return bool
*/
public function isRunning(bool $lobby = true): bool
{
if ($lobby) {
return $this->start && $this->phase == "LOBBY";
#0 plugins/OsmyTheBridge2.0.phar/src/SandhyR/TheBridge/game/Game(94): SandhyR\TheBridge\game\Game->startArena()
#1 plugins/OsmyTheBridge2.0.phar/src/SandhyR/TheBridge/TheBridge(46): SandhyR\TheBridge\game\Game->__construct(object pocketmine\math\Vector3#30828, object pocketmine\math\Vector3#30827, object pocketmine\math\Vector3#30834, object pocketmine\math\Vector3#30835, string[4] TB-1, string[4] TB-1, object pocketmine\world\Position#30836)
#2 pmsrc/src/plugin/PluginBase(117): SandhyR\TheBridge\TheBridge->onEnable()
#3 pmsrc/src/plugin/PluginManager(448): pocketmine\plugin\PluginBase->onEnableStateChange(true)
#4 pmsrc/src/Server(1419): pocketmine\plugin\PluginManager->enablePlugin(object SandhyR\TheBridge\TheBridge#27155)
#5 pmsrc/src/Server(1024): pocketmine\Server->enablePlugins(object pocketmine\plugin\PluginEnableOrder#25764)
#6 pmsrc/src/PocketMine(304): pocketmine\Server->__construct(object BaseClassLoader#2, object pocketmine\utils\MainLogger#3, string[16] /home/container/, string[24] /home/container/plugins/)
#7 pmsrc/src/PocketMine(327): pocketmine\server()
#8 pmsrc(11): require(string[60] phar:///home/container/PocketMine-MP.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed PHP Extensions

  • Show