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

Call to a member function isWandEnabled() on null - Wand tool #40

Closed
Artistic-Waffle opened this issue Jan 8, 2018 · 3 comments
Closed

Comments

@Artistic-Waffle
Copy link

Artistic-Waffle commented Jan 8, 2018

[14:08:03] [Server thread/CRITICAL]: Error: "Call to a member function isWandEnabled() on null" (EXCEPTION) in "MagicWE2_dev-97.phar/src/xenialdan/MagicWE2/EventListener" at line 90
[14:08:03] [Server thread/DEBUG]: #0 MagicWE2_dev-97.phar/src/xenialdan/MagicWE2/EventListener(36): xenialdan\MagicWE2\EventListener->onRightClickBlock(pocketmine\event\player\PlayerInteractEvent object)
[14:08:03] [Server thread/DEBUG]: #1 src/pocketmine/plugin/MethodEventExecutor(38): xenialdan\MagicWE2\EventListener->onInteract(pocketmine\event\player\PlayerInteractEvent object)
[14:08:03] [Server thread/DEBUG]: #2 src/pocketmine/plugin/RegisteredListener(98): pocketmine\plugin\MethodEventExecutor->execute(xenialdan\MagicWE2\EventListener object, pocketmine\event\player\PlayerInteractEvent object)
[14:08:03] [Server thread/DEBUG]: #3 src/pocketmine/plugin/PluginManager(721): pocketmine\plugin\RegisteredListener->callEvent(pocketmine\event\player\PlayerInteractEvent object)
[14:08:03] [Server thread/DEBUG]: #4 src/pocketmine/level/Level(1897): pocketmine\plugin\PluginManager->callEvent(pocketmine\event\player\PlayerInteractEvent object)
[14:08:03] [Server thread/DEBUG]: #5 src/pocketmine/Player(2276): pocketmine\level\Level->useItemOn(pocketmine\math\Vector3 object, pocketmine\item\Axe object, integer 1, pocketmine\math\Vector3 object, pocketmine\Player object, boolean 1)
[14:08:03] [Server thread/DEBUG]: #6 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(132): pocketmine\Player->handleInventoryTransaction(pocketmine\network\mcpe\protocol\InventoryTransactionPacket object)
[14:08:03] [Server thread/DEBUG]: #7 src/pocketmine/network/mcpe/protocol/InventoryTransactionPacket(149): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleInventoryTransaction(pocketmine\network\mcpe\protocol\InventoryTransactionPacket object)
[14:08:03] [Server thread/DEBUG]: #8 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(92): pocketmine\network\mcpe\protocol\InventoryTransactionPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object)
[14:08:03] [Server thread/DEBUG]: #9 src/pocketmine/network/mcpe/protocol/BatchPacket(115): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\InventoryTransactionPacket object)
[14:08:03] [Server thread/DEBUG]: #10 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(92): pocketmine\network\mcpe\protocol\BatchPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object)
[14:08:03] [Server thread/DEBUG]: #11 src/pocketmine/Player(2964): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object)
[14:08:03] [Server thread/DEBUG]: #12 src/pocketmine/network/mcpe/RakLibInterface(143): pocketmine\Player->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object)
[14:08:03] [Server thread/DEBUG]: #13 vendor/pmmp/raklib/server/ServerHandler(99): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string 127.0.0.1:47521, raklib\protocol\EncapsulatedPacket object, integer 0)
[14:08:03] [Server thread/DEBUG]: #14 src/pocketmine/network/mcpe/RakLibInterface(82): raklib\server\ServerHandler->handlePacket()
[14:08:03] [Server thread/DEBUG]: #15 src/pocketmine/network/Network(89): pocketmine\network\mcpe\RakLibInterface->process()
[14:08:03] [Server thread/DEBUG]: #16 src/pocketmine/Server(2527): pocketmine\network\Network->processInterfaces()
[14:08:03] [Server thread/DEBUG]: #17 src/pocketmine/Server(2279): pocketmine\Server->tick()
[14:08:03] [Server thread/DEBUG]: #18 src/pocketmine/Server(2154): pocketmine\Server->tickProcessor()
[14:08:03] [Server thread/DEBUG]: #19 src/pocketmine/Server(1742): pocketmine\Server->start()
[14:08:03] [Server thread/DEBUG]: #20 src/pocketmine/PocketMine(554): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /home/marcus/factions/, string /home/marcus/factions/plugins/)

[14:08:03] [Server thread/DEBUG]: #21 /home/marcus/factions/PocketMine-MP.phar(1): require(string phar:///home/marcus/factions/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

  
@inxomnyaa
Copy link
Owner

Theoretically this should - in no case - be able to happen anymore.
You should have got an explicite message that you have no permissions to use we.session - please make sure you have the permission.
I'll investigate, and probably push a fix in 5 minutes.

@inxomnyaa inxomnyaa changed the title pleas fix Call to a member function isWandEnabled() on null - Wand tool Jan 8, 2018
@inxomnyaa
Copy link
Owner

1c2d2cd has a fix in it. I'll push the fix to master.

@inxomnyaa
Copy link
Owner

So again, do not forget to give WE users the permission
we.session ;)

inxomnyaa added a commit that referenced this issue Nov 30, 2018
* Add schematic loading/saving/reloading

* Ignore uploading schematic loading

* .gitignore is now working

* Irrelevant

* Version bump

* Fix #40 - xxx on null (no we.session perm), fix meta out of range on
rotate

* Try to use correct virion

* Fix UIs, Re-added Brush and Flood, added Cylinder

* Test-Fix poggit virion

* Revert "Test-Fix poggit virion"

This reverts commit 8ed3959.

* Hmm..
@sofe can you probably check why this antigen will show to have "No read access to repo xenialdan/customui" in https://poggit.pmmp.io/ci/thebigsmileXD/MagicWE2/MagicWE2/dev:128 ?

* Hmm..
@sofe can you probably check why this antigen will show to have "No read access to repo xenialdan/customui" in https://poggit.pmmp.io/ci/thebigsmileXD/MagicWE2/MagicWE2/dev:128 ?

* Update .gitignore

* Delete config.yml

* No 4.0.0 support anymore

* try-catch exceptions, remove schematic command
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants