Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

p claim does not work #183

Closed
DrakerZR opened this Issue Aug 10, 2018 · 1 comment

Comments

Projects
None yet
3 participants
@DrakerZR
Copy link

DrakerZR commented Aug 10, 2018

  • This issue isn't duplicated - you can check if it is by using the search bar located at the top left hand corner and select "Issues" on the left.
  • This issue includes appropriate markdown for sections - e.g. code blocks for crash dumps.
  • This issue is understandable - feel free to use your native language to write issues if you are not comfortable with English.

Issue description

I can't use /p claim.

Client information

PocketMine-MP Version: 3.1.3
Plugin Version: 1.3.6
PHP version: 7.2.1 (default)

Optional information

2018-08-10 [05:24:20] [Server thread/CRITICAL]: Unhandled exception executing command 'p claim' in plot: Argument 1 passed to pocketmine\Server::getLevelByName() must be of the type string, integer given, called in phar:///storage/sdcard0/PocketMine-MP/plugins/MyPlot.phar/src/MyPlot/subcommand/ClaimSubCommand.php on line 48
2018-08-10 [05:24:20] [Server thread/CRITICAL]: TypeError: "Argument 1 passed to pocketmine\Server::getLevelByName() must be of the type string, integer given, called in phar:///storage/sdcard0/PocketMine-MP/plugins/MyPlot.phar/src/MyPlot/subcommand/ClaimSubCommand.php on line 48" (EXCEPTION) in "src/pocketmine/Server" at line 963
2018-08-10 [05:24:20] [Server thread/DEBUG]: #0 MyPlot.phar/src/MyPlot/subcommand/ClaimSubCommand(48): pocketmine\Server->getLevelByName(integer 1)
2018-08-10 [05:24:20] [Server thread/DEBUG]: #1 MyPlot.phar/src/MyPlot/Commands(119): MyPlot\subcommand\ClaimSubCommand->execute(pocketmine\Player object, array Array())
2018-08-10 [05:24:20] [Server thread/DEBUG]: #2 src/pocketmine/command/SimpleCommandMap(258): MyPlot\Commands->execute(pocketmine\Player object, string p, array Array())
2018-08-10 [05:24:20] [Server thread/DEBUG]: #3 src/pocketmine/Server(1958): pocketmine\command\SimpleCommandMap->dispatch(pocketmine\Player object, string p claim)
2018-08-10 [05:24:20] [Server thread/DEBUG]: #4 src/pocketmine/Player(2187): pocketmine\Server->dispatchCommand(pocketmine\Player object, string p claim)
2018-08-10 [05:24:20] [Server thread/DEBUG]: #5 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(222): pocketmine\Player->chat(string /p claim)
2018-08-10 [05:24:20] [Server thread/DEBUG]: #6 src/pocketmine/network/mcpe/protocol/CommandRequestPacket(54): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleCommandRequest(pocketmine\network\mcpe\protocol\CommandRequestPacket object)
2018-08-10 [05:24:20] [Server thread/DEBUG]: #7 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(92): pocketmine\network\mcpe\protocol\CommandRequestPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object)
2018-08-10 [05:24:20] [Server thread/DEBUG]: #8 src/pocketmine/network/mcpe/protocol/BatchPacket(114): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\CommandRequestPacket object)
2018-08-10 [05:24:20] [Server thread/DEBUG]: #9 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(92): pocketmine\network\mcpe\protocol\BatchPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object)
2018-08-10 [05:24:20] [Server thread/DEBUG]: #10 src/pocketmine/Player(3033): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object)
2018-08-10 [05:24:20] [Server thread/DEBUG]: #11 src/pocketmine/network/mcpe/RakLibInterface(158): pocketmine\Player->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object)
2018-08-10 [05:24:20] [Server thread/DEBUG]: #12 vendor/pocketmine/raklib/src/server/ServerHandler(98): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string 192.168.43.129 37918, raklib\protocol\EncapsulatedPacket object, integer 0)
2018-08-10 [05:24:20] [Server thread/DEBUG]: #13 src/pocketmine/network/mcpe/RakLibInterface(103): raklib\server\ServerHandler->handlePacket()
2018-08-10 [05:24:20] [Server thread/DEBUG]: #14 src/pocketmine/network/Network(94): pocketmine\network\mcpe\RakLibInterface->process()
2018-08-10 [05:24:20] [Server thread/DEBUG]: #15 src/pocketmine/network/mcpe/RakLibInterface(80): pocketmine\network\Network->processInterface(pocketmine\network\mcpe\RakLibInterface object)
2018-08-10 [05:24:20] [Server thread/DEBUG]: #16 vendor/pocketmine/snooze/src/SleeperHandler(120): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe\{closure}()
2018-08-10 [05:24:20] [Server thread/DEBUG]: #17 vendor/pocketmine/snooze/src/SleeperHandler(82): pocketmine\snooze\SleeperHandler->processNotifications()
2018-08-10 [05:24:20] [Server thread/DEBUG]: #18 src/pocketmine/Server(2257): pocketmine\snooze\SleeperHandler->sleepUntil(double 1533878660.6533)
2018-08-10 [05:24:20] [Server thread/DEBUG]: #19 src/pocketmine/Server(2132): pocketmine\Server->tickProcessor()
2018-08-10 [05:24:20] [Server thread/DEBUG]: #20 src/pocketmine/Server(1713): pocketmine\Server->start()
2018-08-10 [05:24:20] [Server thread/DEBUG]: #21 src/pocketmine/PocketMine(237): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /storage/sdcard0/PocketMine-MP/, string /storage/sdcard0/PocketMine-MP/plugins/)
2018-08-10 [05:24:20] [Server thread/DEBUG]: #22 /storage/sdcard0/PocketMine-MP/PocketMine-MP.phar(1): require(string phar:///storage/sdcard0/PocketMine-MP/PocketMine-MP.phar/src/pocketmine/PocketMine.php)
@Aericio

This comment has been minimized.

Copy link
Collaborator

Aericio commented Sep 10, 2018

If you create a world that is an integer and try to claim a plot in that world, it causes this error.
image

[00:37:14] [Server thread/DEBUG]: [MyPlot] MyPlot level lol loaded!
[00:37:14] [Server thread/NOTICE]: Spawn terrain for level "lol" is being generated in the background
[00:37:16] [Server thread/DEBUG]: [MyPlot] Plot 6;6 has been cached
[00:37:20] [Server thread/DEBUG]: [MyPlot] Plot 6;6 has been cached
[00:37:28] [Server thread/INFO]: Preparing level "4"
[00:37:28] [Server thread/DEBUG]: [MyPlot] MyPlot level 4 loaded!
[00:37:28] [Server thread/NOTICE]: Spawn terrain for level "4" is being generated in the background
[00:37:36] [Server thread/DEBUG]: [MyPlot] Plot 6;6 has been cached
[00:37:36] [Server thread/CRITICAL]: Unhandled exception executing command 'p claim' in plot: Argument 1 passed to pocketmine\Server::getLevelByName() must be of the type string, integer given, called in C:\Users\nein\Desktop\Minecraft PE\plugins\MyPlot-master\src\MyPlot\subcommand\ClaimSubCommand.php on line 48
[00:37:36] [Server thread/CRITICAL]: TypeError: "Argument 1 passed to pocketmine\Server::getLevelByName() must be of the type string, integer given, called in C:\Users\nein\Desktop\Minecraft PE\plugins\MyPlot-master\src\MyPlot\subcommand\ClaimSubCommand.php on line 48" (EXCEPTION) in "src/pocketmine/Server" at line 966
[00:37:36] [Server thread/DEBUG]: #0 MyPlot-master/src/MyPlot/subcommand/ClaimSubCommand(48): pocketmine\Server->getLevelByName(integer 4)
[00:37:36] [Server thread/DEBUG]: #1 MyPlot-master/src/MyPlot/Commands(119): MyPlot\subcommand\ClaimSubCommand->execute(pocketmine\Player object, array Array())
[00:37:36] [Server thread/DEBUG]: #2 src/pocketmine/command/SimpleCommandMap(258): MyPlot\Commands->execute(pocketmine\Player object, string p, array Array())
[00:37:36] [Server thread/DEBUG]: #3 src/pocketmine/Server(1955): pocketmine\command\SimpleCommandMap->dispatch(pocketmine\Player object, string p claim)
[00:37:36] [Server thread/DEBUG]: #4 src/pocketmine/Player(2191): pocketmine\Server->dispatchCommand(pocketmine\Player object, string p claim)
[00:37:36] [Server thread/DEBUG]: #5 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(222): pocketmine\Player->chat(string /p claim)
[00:37:36] [Server thread/DEBUG]: #6 src/pocketmine/network/mcpe/protocol/CommandRequestPacket(54): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleCommandRequest(pocketmine\network\mcpe\protocol\CommandRequestPacket object)
[00:37:36] [Server thread/DEBUG]: #7 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(92): pocketmine\network\mcpe\protocol\CommandRequestPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object)
[00:37:36] [Server thread/DEBUG]: #8 src/pocketmine/network/mcpe/protocol/BatchPacket(114): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\CommandRequestPacket object)
[00:37:36] [Server thread/DEBUG]: #9 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(92): pocketmine\network\mcpe\protocol\BatchPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object)
[00:37:36] [Server thread/DEBUG]: #10 src/pocketmine/Player(3056): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object)
[00:37:36] [Server thread/DEBUG]: #11 src/pocketmine/network/mcpe/RakLibInterface(162): pocketmine\Player->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object)
[00:37:36] [Server thread/DEBUG]: #12 vendor/pocketmine/raklib/src/server/ServerHandler(98): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string 192.168.0.23 53556, raklib\protocol\EncapsulatedPacket object, integer 0)
[00:37:36] [Server thread/DEBUG]: #13 src/pocketmine/network/mcpe/RakLibInterface(103): raklib\server\ServerHandler->handlePacket()
[00:37:36] [Server thread/DEBUG]: #14 src/pocketmine/network/Network(94): pocketmine\network\mcpe\RakLibInterface->process()
[00:37:36] [Server thread/DEBUG]: #15 src/pocketmine/network/mcpe/RakLibInterface(80): pocketmine\network\Network->processInterface(pocketmine\network\mcpe\RakLibInterface object)
[00:37:36] [Server thread/DEBUG]: #16 vendor/pocketmine/snooze/src/SleeperHandler(120): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe\{closure}()
[00:37:36] [Server thread/DEBUG]: #17 vendor/pocketmine/snooze/src/SleeperHandler(82): pocketmine\snooze\SleeperHandler->processNotifications()
[00:37:36] [Server thread/DEBUG]: #18 src/pocketmine/Server(2259): pocketmine\snooze\SleeperHandler->sleepUntil(double 1536568656.7441)
[00:37:36] [Server thread/DEBUG]: #19 src/pocketmine/Server(2134): pocketmine\Server->tickProcessor()
[00:37:36] [Server thread/DEBUG]: #20 src/pocketmine/Server(1700): pocketmine\Server->start()
[00:37:36] [Server thread/DEBUG]: #21 src/pocketmine/PocketMine(243): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string C:\Users\nein\Desktop\Minecraft PE\, string C:\Users\nein\Desktop\Minecraft PE\plugins\)
[00:37:36] [Server thread/DEBUG]: #22 C:/Users/nein/Desktop/Minecraft PE/PocketMine-MP.phar(1): require(string phar://C:/Users/nein/Desktop/Minecraft PE/PocketMine-MP.phar/src/pocketmine/PocketMine.php)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.