ThunderDoesPlugins / StaffChat

An Advance staff chat plugins for your staff members
ISC License
13 stars 9 forks source link

pmmp 4.0.0 crash #10

Open jaylac2000 opened 2 years ago

jaylac2000 commented 2 years ago

using .hello or /staffchat say hello crashes

[20:04:01.757] [Server thread/CRITICAL]: Error: "Call to undefined method Thunder33345\StaffChat\Commands\StaffChatCommand::playerBroadcast()" (EXCEPTION) in "plugins/StaffChat.phar/src/Thunder33345/StaffChat/Commands/StaffChatCommand" at line 187 --- Stack trace ---

0 plugins/StaffChat.phar/src/Thunder33345/StaffChat/Commands/StaffChatCommand(59): Thunder33345\StaffChat\Commands\StaffChatCommand->consoleBroadcast(object pocketmine\player\Player#25557, string[2] hi)

1 pmsrc/src/command/SimpleCommandMap(220): Thunder33345\StaffChat\Commands\StaffChatCommand->execute(object pocketmine\player\Player#25557, string[9] staffchat, array[1])

2 pmsrc/src/Server(1394): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\player\Player#25557, string[16] staffchat say hi)

3 pmsrc/src/player/Player(1337): pocketmine\Server->dispatchCommand(object pocketmine\player\Player#25557, string[16] staffchat say hi)

4 pmsrc/src/network/mcpe/handler/InGamePacketHandler(688): pocketmine\player\Player->chat(string[17] /staffchat say hi)

5 pmsrc/vendor/pocketmine/bedrock-protocol/src/CommandRequestPacket(60): pocketmine\network\mcpe\handler\InGamePacketHandler->handleCommandRequest(object pocketmine\network\mcpe\protocol\CommandRequestPacket#116404)

6 pmsrc/src/network/mcpe/NetworkSession(395): pocketmine\network\mcpe\protocol\CommandRequestPacket->handle(object pocketmine\network\mcpe\handler\InGamePacketHandler#92452)

7 pmsrc/src/network/mcpe/NetworkSession(358): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\CommandRequestPacket#116404, string[38] M./staffchat say hi..In*...z...:......)

8 pmsrc/src/network/mcpe/raklib/RakLibInterface(192): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[42] S.../.ILKK.H,Q(N.T..d.......p.......|.....)

9 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(42): pocketmine\network\mcpe\raklib\RakLibInterface->onPacketReceive(integer 0, string[51] ............mfe.[..!Z.....k..,.(.,d.....0...g.YH.^)

10 pmsrc/src/network/mcpe/raklib/RakLibInterface(122): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#24077)

11 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\raklib\RakLibInterface->pocketmine\network\mcpe\raklib{closure}()

12 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(82): pocketmine\snooze\SleeperHandler->processNotifications()

13 pmsrc/src/Server(1645): pocketmine\snooze\SleeperHandler->sleepUntil(double 1638421441.756)

14 pmsrc/src/Server(1034): pocketmine\Server->tickProcessor()

15 pmsrc/src/PocketMine(301): pocketmine\Server->__construct(object BaseClassLoader#2, object pocketmine\utils\MainLogger#3, string[31] C:\MCPE Servers\Skyblock 4.0.0\, string[39] C:\MCPE Servers\Skyblock 4.0.0\plugins)

16 pmsrc/src/PocketMine(324): pocketmine\server()

17 pmsrc(11): require(string[75] phar://C:/MCPE Servers/Skyblock 4.0.0/PocketMine-MP.phar/src/PocketMine.php)

--- End of exception information --- [20:04:01.761] [Server thread/EMERGENCY]: An unrecoverable error has occurred and the server has crashed. Creating a crash dump [20:04:01.779] [Server thread/EMERGENCY]: Please upload the "C:/MCPE Servers/Skyblock 4.0.0/crashdumps/Wed_Dec_1-20.04.01-AKST_2021.log" file to the Crash Archive and submit the link to the Bug Reporting page. Give as much info as you can. [20:04:01.785] [Server thread/EMERGENCY]: Forcing server shutdown

Thunder33345 commented 2 years ago

hello there next time please specify the branch and version you are using, it helps weed out any unnecessary guess work @Vecnavium seems like you forgot to change references, that should have been this-plugin-broadcast... since you split it into a command https://github.com/ThunderDoesPlugins/StaffChat/blob/PM4-Development/src/Thunder33345/StaffChat/Commands/StaffChatCommand.php#L193

Thunder33345 commented 2 years ago

seems like /sc say is bugged, you should be able to keep using the plugin if you avoid the subcommand

the condition cant be triggered any other way except for using that subcommand, the rest should be fine

Vecnavium commented 2 years ago

I havent gotten the time to finish fully updating it to API 4.0.0, I will try and have it completed this weekend or if I am not going to my girl's house ill be doing it the next day if I manage to finish it

I dont expect any of its features to be working till I update it so if it works then thats a surprise

GamerMJay commented 2 years ago

@Vecnavium Hey, can you fixed this?