inxomnyaa / MagicWE

Lag free asynchronous world editor for PMMP with plenty of options
https://poggit.pmmp.io/ci/inxomnyaa/MagicWE
GNU General Public License v3.0
101 stars 83 forks source link

[10.1.1] Cannot set the position #219

Closed Nerahikada closed 3 years ago

Nerahikada commented 3 years ago

Description

Using the //pos1 //pos2 command gives an error, and the wand tool also gives an error.

Log

plugin version: dev431 Console output:

[Server thread/NOTICE]: [MWE2] CustomUI NOT found, can NOT use ui-based commands
[Server thread/NOTICE]: [MWE2] Scoreboard API NOT found, can NOT use scoreboards
...
[01:30:08.379] [Server thread/CRITICAL]: Error: "Call to a member function handleScoreboard() on null" (EXCEPTION) in "plugins/MagicWE2_dev-431.phar/src/xenialdan/MagicWE2/EventListener" at line 341
[01:30:08.379] [Server thread/CRITICAL]: #0 src/event/RegisteredListener(75): xenialdan\MagicWE2\EventListener->onSelectionChange(object xenialdan\MagicWE2\event\MWESelectionChangeEvent)
[01:30:08.381] [Server thread/CRITICAL]: #1 src/event/Event(62): pocketmine\event\RegisteredListener->callEvent(object xenialdan\MagicWE2\event\MWESelectionChangeEvent)
[01:30:08.383] [Server thread/CRITICAL]: #2 plugins/MagicWE2_dev-431.phar/src/xenialdan/MagicWE2/selection/Selection(94): pocketmine\event\Event->call()
[01:30:08.385] [Server thread/CRITICAL]: #3 plugins/MagicWE2_dev-431.phar/src/xenialdan/MagicWE2/selection/Selection(123): xenialdan\MagicWE2\selection\Selection->setWorld(object pocketmine\world\World)
[01:30:08.388] [Server thread/CRITICAL]: #4 plugins/MagicWE2_dev-431.phar/src/xenialdan/MagicWE2/commands/selection/Pos1Command(61): xenialdan\MagicWE2\selection\Selection->setPos1(object pocketmine\world\Position)
[01:30:08.390] [Server thread/CRITICAL]: #5 plugins/MagicWE2_dev-431.phar/src/xenialdan/MagicWE2/libs/CortexPE/Commando/BaseCommand(143): xenialdan\MagicWE2\commands\selection\Pos1Command->onRun(object pocketmine\player\Player, string[5] /pos1, array[0])
[01:30:08.392] [Server thread/CRITICAL]: #6 src/command/SimpleCommandMap(244): xenialdan\MagicWE2\libs\CortexPE\Commando\BaseCommand->execute(object pocketmine\player\Player, string[5] /pos1, array[0])
[01:30:08.393] [Server thread/CRITICAL]: #7 src/Server(1309): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\player\Player, string[5] /pos1)
[01:30:08.393] [Server thread/CRITICAL]: #8 src/player/Player(1363): pocketmine\Server->dispatchCommand(object pocketmine\player\Player, string[5] /pos1)
[01:30:08.394] [Server thread/CRITICAL]: #9 src/network/mcpe/handler/InGamePacketHandler(680): pocketmine\player\Player->chat(string[6] //pos1)
[01:30:08.395] [Server thread/CRITICAL]: #10 src/network/mcpe/protocol/CommandRequestPacket(54): pocketmine\network\mcpe\handler\InGamePacketHandler->handleCommandRequest(object pocketmine\network\mcpe\protocol\CommandRequestPacket)
[01:30:08.396] [Server thread/CRITICAL]: #11 src/network/mcpe/NetworkSession(394): pocketmine\network\mcpe\protocol\CommandRequestPacket->handle(object pocketmine\network\mcpe\handler\InGamePacketHandler)
[01:30:08.397] [Server thread/CRITICAL]: #12 src/network/mcpe/NetworkSession(353): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\CommandRequestPacket)
[01:30:08.398] [Server thread/CRITICAL]: #13 src/network/mcpe/raklib/RakLibInterface(186): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[31] ..e.././6d..........>o...8.....)
[01:30:08.399] [Server thread/CRITICAL]: #14 vendor/pocketmine/raklib/src/server/ipc/RakLibToUserThreadMessageReceiver(43): pocketmine\network\mcpe\raklib\RakLibInterface->handleEncapsulated(integer 0, string[40] ......E]..a.E...f..#.C...`.K..&...u.`...)
[01:30:08.402] [Server thread/CRITICAL]: #15 src/network/mcpe/raklib/RakLibInterface(120): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface)
[01:30:08.403] [Server thread/CRITICAL]: #16 vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\raklib\RakLibInterface->pocketmine\network\mcpe\raklib\{closure}()
[01:30:08.404] [Server thread/CRITICAL]: #17 vendor/pocketmine/snooze/src/SleeperHandler(85): pocketmine\snooze\SleeperHandler->processNotifications()
[01:30:08.405] [Server thread/CRITICAL]: #18 src/Server(1543): pocketmine\snooze\SleeperHandler->sleepUntil(double 1607189408.3989)
[01:30:08.405] [Server thread/CRITICAL]: #19 src/Server(1093): pocketmine\Server->tickProcessor()
[01:30:08.406] [Server thread/CRITICAL]: #20 src/PocketMine(246): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[9] F:\pmmp4\, string[17] F:\pmmp4\plugins\)
[01:30:08.408] [Server thread/CRITICAL]: #21 src/PocketMine(271): pocketmine\server()

MagicWE2 v10.1.1 Information
Website https://github.com/thebigsmileXD/MagicWE2
Version 10.1.1
Plugin API Version 4.0.0
Authors XenialDan
Enabled Yes
Uses UI Yes
Phar No
PMMP Protocol Version v1.16.100
PMMP Version 4.0.0+dev
PMMP API Version 4.0.0
inxomnyaa commented 3 years ago

Are you sure you have the permissions? sounds like the session was not created

Nerahikada commented 3 years ago

I seem to have permissions. (Result of using the /listperm command) image

inxomnyaa commented 3 years ago

You need we.session

Nerahikada commented 3 years ago

The debug message shows that the session seems to have been created.

[02:17:11.774] [Server thread/DEBUG]: [MWE2] Created new session for player Nerahikada
inxomnyaa commented 3 years ago

wait we.session IS true, oops. can you try deleting the folder in plugin_data and reloading the server

Nerahikada commented 3 years ago

It may have something to do with the scoreboard API not being loaded. https://github.com/thebigsmileXD/MagicWE2/blob/0e9dc26bf2708b68725474b222aa9edb4712d247/src/xenialdan/MagicWE2/EventListener.php#L341

Edit: I found the scoreboard API in src/xenialdan/MagicWE2/libs/jackmd/scorefactory/ScoreFactory.php.

inxomnyaa commented 3 years ago

lenses?

Nerahikada commented 3 years ago

I've deleted all the data in plugin_data, but I still get the error.

inxomnyaa commented 3 years ago

scoreboard API not being loaded.

the debug should print this on server start

Nerahikada commented 3 years ago

the debug should print this on server start

[02:33:36.774] [Server thread/NOTICE]: [MWE2] CustomUI NOT found, can NOT use ui-based commands
[02:33:36.775] [Server thread/NOTICE]: [MWE2] Scoreboard API NOT found, can NOT use scoreboards
inxomnyaa commented 3 years ago

oh ribbit, i guess the class_exists in Loader is broken when virions are injected