Shelly7w7 / VanillaCoordinates

Show Vanilla coordinates in a server by simply typing the command!
GNU General Public License v3.0
4 stars 6 forks source link

The plugin is crashing with the newest pocketmine version #3

Closed osiefart closed 2 years ago

osiefart commented 3 years ago

PocketMine-MP Crash Dump Thu Apr 8 06:33:41 UTC 2021

Error: Call to undefined method pocketmine\command\ConsoleCommandSender::dataPacket() File: plugins/VanillaCoordinates.phar/src/shelly7w7/VanillaCoordinates/command/CoordinateCommand Line: 37 Type: Error

THIS CRASH WAS CAUSED BY A PLUGIN BAD PLUGIN: VanillaCoordinates v1.0.0

Code: [28] return true; [29] } [30] [31] if (isset($args[0])) { [32] switch ($args[0]) { [33] [34] case "on": [35] $pk = new GameRulesChangedPacket(); [36] $pk->gameRules = ["showcoordinates" => [1, true]]; [37] $sender->dataPacket($pk); [38] $sender->sendMessage($this->plugin->config->get("turned-on")); [39] break; [40] [41] case "off": [42] $pk = new GameRulesChangedPacket(); [43] $pk->gameRules = ["showcoordinates" => [1, false]]; [44] $sender->dataPacket($pk); [45] $sender->sendMessage($this->plugin->config->get("turned-off")); [46] [47] }

Backtrace:

0 pmsrc/src/pocketmine/command/SimpleCommandMap(248): shelly7w7\VanillaCoordinates\command\CoordinateCommand->execute(object pocketmine\command\ConsoleCommandSender, string[11] coordinates, array[1])

1 pmsrc/src/pocketmine/Server(1809): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\command\ConsoleCommandSender, string[14] coordinates on)

2 pmsrc/src/pocketmine/Server(1422): pocketmine\Server->dispatchCommand(object pocketmine\command\ConsoleCommandSender, string[14] coordinates on)

3 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(113): pocketmine\Server->pocketmine{closure}()

4 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(75): pocketmine\snooze\SleeperHandler->processNotifications()

5 pmsrc/src/pocketmine/Server(2155): pocketmine\snooze\SleeperHandler->sleepUntil(double 1617863621.0128)

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

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

8 pmsrc/src/pocketmine/PocketMine(291): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[6] /data/, string[9] /plugins/)

9 pmsrc/src/pocketmine/PocketMine(321): pocketmine\server()

10 pmsrc(11): require(string[67] phar:///pocketmine/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

PocketMine-MP version: 3.19.0 [Protocol 431] Git commit: b307cd0aa15b76cfe41d2a649d14b3aa6fb78f64 uname -a: Linux 960aa0d4cdaf 4.19.121-linuxkit #1 SMP Thu Jan 21 15:36:34 UTC 2021 x86_64 PHP Version: 7.4.16 Zend version: 3.4.0 OS : Linux, linux Composer libraries:

Loaded plugins: VanillaCoordinates 1.0.0 by Shelly7w7 for API(s) 3.0.0

[06:33:40] [Server thread/CRITICAL]: Error: "Call to undefined method pocketmine\command\ConsoleCommandSender::dataPacket()" (EXCEPTION) in "plugins/VanillaCoordinates.phar/src/shelly7w7/VanillaCoordinates/command/CoordinateCommand" at line 37 [06:33:41] [Server thread/CRITICAL]: #0 pmsrc/src/pocketmine/command/SimpleCommandMap(248): shelly7w7\VanillaCoordinates\command\CoordinateCommand->execute(object pocketmine\command\ConsoleCommandSender, string[11] coordinates, array[1]) [06:33:41] [Server thread/CRITICAL]: #1 pmsrc/src/pocketmine/Server(1809): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\command\ConsoleCommandSender, string[14] coordinates on) [06:33:41] [Server thread/CRITICAL]: #2 pmsrc/src/pocketmine/Server(1422): pocketmine\Server->dispatchCommand(object pocketmine\command\ConsoleCommandSender, string[14] coordinates on) [06:33:41] [Server thread/CRITICAL]: #3 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(113): pocketmine\Server->pocketmine{closure}() [06:33:41] [Server thread/CRITICAL]: #4 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(75): pocketmine\snooze\SleeperHandler->processNotifications() [06:33:41] [Server thread/CRITICAL]: #5 pmsrc/src/pocketmine/Server(2155): pocketmine\snooze\SleeperHandler->sleepUntil(double 1617863621.0128) [06:33:41] [Server thread/CRITICAL]: #6 pmsrc/src/pocketmine/Server(1992): pocketmine\Server->tickProcessor() [06:33:41] [Server thread/CRITICAL]: #7 pmsrc/src/pocketmine/Server(1586): pocketmine\Server->start() [06:33:41] [Server thread/CRITICAL]: #8 pmsrc/src/pocketmine/PocketMine(291): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[6] /data/, string[9] /plugins/) [06:33:41] [Server thread/CRITICAL]: #9 pmsrc/src/pocketmine/PocketMine(321): pocketmine\server() [06:33:41] [Server thread/CRITICAL]: #10 pmsrc(11): require(string[67] phar:///pocketmine/PocketMine-MP.phar/src/pocketmine/PocketMine.php) [06:33:41] [Server thread/EMERGENCY]: An unrecoverable error has occurred and the server has crashed. Creating a crash dump [06:33:41] [Server thread/EMERGENCY]: Please upload the "/data/crashdumps/Thu_Apr_8-06.33.41-UTC_2021.log" file to the Crash Archive and submit the link to the Bug Reporting page. Give as much info as you can. [06:33:41] [Server thread/EMERGENCY]: The crash dump has been automatically submitted to the Crash Archive. You can view it on https://crash.pmmp.io/view/4874084 or use the ID #4874084.

Shelly7w7 commented 2 years ago

Fixed