menu
#10626432 Call to undefined method Heady\spawn\Main::teleportToWorldSpawn()

Submitted by PocketMine-MP 5.13.0

General information

Version: 5.13.0
Git commit: f193a990
Plugin involvement: Direct
Report date: 2024-04-03 06:19:47 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 19 seconds

System Information

PHP version: 8.2.17
JIT status: Not available
Operating system: win
System banner: Windows NT SACHA 10.0 build 22631 (Windows 11) AMD64

Error information

Warning: the spawn plugin was directly involved in this crash. Please contact the plugin author.
Thread: Main
Message: Call to undefined method Heady\spawn\Main::teleportToWorldSpawn()
File: plugins/Spawn/src/Heady/spawn/main
Line: #19
Type: Error
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26

class Main extends PluginBase {

public function onEnable(): void {
$this->getLogger()->info("Plugin activé !");
}

public function onCommand(CommandSender $sender, Command $command, string $label, array $args): bool {
if(strtolower($command->getName()) === "spawn") {
$this->teleportToWorldSpawn($sender);
return true;
}
return false;
}

}

#0 pmsrc/src/command/PluginCommand(46): Heady\spawn\Main->onCommand(object pocketmine\player\Player#179298, object pocketmine\command\PluginCommand#45281, string[5] spawn, array[0])
#1 pmsrc/src/command/SimpleCommandMap(212): pocketmine\command\PluginCommand->execute(object pocketmine\player\Player#179298, string[5] spawn, array[0])
#2 pmsrc/src/Server(1431): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\player\Player#179298, string[5] spawn)
#3 pmsrc/src/player/Player(1516): pocketmine\Server->dispatchCommand(object pocketmine\player\Player#179298, string[5] spawn)
#4 pmsrc/src/network/mcpe/handler/InGamePacketHandler(819): pocketmine\player\Player->chat(string[6] /spawn)
#5 pmsrc/vendor/pocketmine/bedrock-protocol/src/CommandRequestPacket(55): pocketmine\network\mcpe\handler\InGamePacketHandler->handleCommandRequest(object pocketmine\network\mcpe\protocol\CommandRequestPacket#131713)
#6 pmsrc/src/network/mcpe/NetworkSession(456): pocketmine\network\mcpe\protocol\CommandRequestPacket->handle(object pocketmine\network\mcpe\handler\InGamePacketHandler#90528)
#7 pmsrc/src/network/mcpe/NetworkSession(394): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\CommandRequestPacket#131713, string[28] M./spawn..H..O..Z_hJ../....L)
#8 pmsrc/src/network/mcpe/raklib/RakLibInterface(214): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[30] ..M./spawn..H..O..Z_hJ../....L)
#9 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(40): pocketmine\network\mcpe\raklib\RakLibInterface->onPacketReceive(int 0, string[39] ..i.d...e..9...*.*..t/...(..s..;E.....r)
#10 pmsrc/src/network/mcpe/raklib/RakLibInterface(107): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#179806)
#11 pmsrc/src/TimeTrackingSleeperHandler(58): pocketmine\network\mcpe\raklib\RakLibInterface->pocketmine\network\mcpe\raklib\{closure}()
#12 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(120): pocketmine\TimeTrackingSleeperHandler->pocketmine\{closure}()
#13 pmsrc/src/TimeTrackingSleeperHandler(77): pocketmine\snooze\SleeperHandler->processNotifications()
#14 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(79): pocketmine\TimeTrackingSleeperHandler->processNotifications()
#15 pmsrc/src/Server(1696): pocketmine\snooze\SleeperHandler->sleepUntil(float 1712125187.3863)
#16 pmsrc/src/Server(1066): pocketmine\Server->tickProcessor()
#17 pmsrc/src/PocketMine(350): pocketmine\Server->__construct(object pocketmine\thread\ThreadSafeClassLoader#6, object pocketmine\utils\MainLogger#3, string[36] C:\Users\sevra\OneDrive\Bureau\DKPO\, string[44] C:\Users\sevra\OneDrive\Bureau\DKPO\plugins\)
#18 pmsrc/src/PocketMine(373): pocketmine\server()
#19 pmsrc(11): require(string[80] phar://C:/Users/sevra/OneDrive/Bureau/DKPO/PocketMine-MP.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies

Installed PHP Extensions

  • Show