supercrafter333 / BetterBan

A plugin for PocketMine-MP to simply ban players for a certain period of time.
Apache License 2.0
16 stars 8 forks source link

[BUG:] Error #7

Closed PushkarOP closed 3 years ago

PushkarOP commented 3 years ago

Bug: Discord Webhook api

Informations

BetterBan Version: [2.0.0] Server-OS: [Linux Ubuntu 20.04] PHP Version: [7.3.0] PocketMine-MP Version: [3.19.0]

2021-06-19 [02:24:29] [Server thread/CRITICAL]: Error: "Class 'CortexPE\DiscordWebhookAPI\Webhook' not found" (EXCEPTION) in "plugins/BetterBan.phar/src/supercrafter333/BetterBan/BetterBan" at line 275 2021-06-19 [02:24:29] [Server thread/CRITICAL]: #0 plugins/BetterBan.phar/src/supercrafter333/BetterBan/Events/BBBanEvent(111): supercrafter333\BetterBan\BetterBan->sendBanMessageToDC(string[7] CONSOLE, string[1] 1, string[0] ) 2021-06-19 [02:24:29] [Server thread/CRITICAL]: #1 plugins/BetterBan.phar/src/supercrafter333/BetterBan/EventListener(16): supercrafter333\BetterBan\Events\BBBanEvent->sendDiscordWebhookMessage() 2021-06-19 [02:24:29] [Server thread/CRITICAL]: #2 pmsrc/src/pocketmine/plugin/MethodEventExecutor(42): supercrafter333\BetterBan\EventListener->onBBBan(object supercrafter333\BetterBan\Events\BBBanEvent) 2021-06-19 [02:24:29] [Server thread/CRITICAL]: #3 pmsrc/src/pocketmine/plugin/RegisteredListener(80): pocketmine\plugin\MethodEventExecutor->execute(object supercrafter333\BetterBan\EventListener, object supercrafter333\BetterBan\Events\BBBanEvent) 2021-06-19 [02:24:29] [Server thread/CRITICAL]: #4 pmsrc/src/pocketmine/event/Event(88): pocketmine\plugin\RegisteredListener->callEvent(object supercrafter333\BetterBan\Events\BBBanEvent) 2021-06-19 [02:24:29] [Server thread/CRITICAL]: #5 plugins/BetterBan.phar/src/supercrafter333/BetterBan/Commands/BanCommand(93): pocketmine\event\Event->call() 2021-06-19 [02:24:29] [Server thread/CRITICAL]: #6 pmsrc/src/pocketmine/command/SimpleCommandMap(248): supercrafter333\BetterBan\Commands\BanCommand->execute(object pocketmine\command\ConsoleCommandSender, string[3] ban, array[2]) 2021-06-19 [02:24:29] [Server thread/CRITICAL]: #7 pmsrc/src/pocketmine/Server(1809): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\command\ConsoleCommandSender, string[11] ban 1 hi 1d) 2021-06-19 [02:24:29] [Server thread/CRITICAL]: #8 pmsrc/src/pocketmine/Server(1422): pocketmine\Server->dispatchCommand(object pocketmine\command\ConsoleCommandSender, string[11] ban 1 hi 1d) 2021-06-19 [02:24:29] [Server thread/CRITICAL]: #9 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(113): pocketmine\Server->pocketmine{closure}() 2021-06-19 [02:24:29] [Server thread/CRITICAL]: #10 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(75): pocketmine\snooze\SleeperHandler->processNotifications() 2021-06-19 [02:24:29] [Server thread/CRITICAL]: #11 pmsrc/src/pocketmine/Server(2155): pocketmine\snooze\SleeperHandler->sleepUntil(double 1624069469.3332) 2021-06-19 [02:24:29] [Server thread/CRITICAL]: #12 pmsrc/src/pocketmine/Server(1992): pocketmine\Server->tickProcessor() 2021-06-19 [02:24:29] [Server thread/CRITICAL]: #13 pmsrc/src/pocketmine/Server(1586): pocketmine\Server->start() 2021-06-19 [02:24:29] [Server thread/CRITICAL]: #14 pmsrc/src/pocketmine/PocketMine(291): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/) 2021-06-19 [02:24:29] [Server thread/CRITICAL]: #15 pmsrc/src/pocketmine/PocketMine(321): pocketmine\server() 2021-06-19 [02:24:29] [Server thread/CRITICAL]: #16 pmsrc(11): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php) 2021-06-19 [02:24:29] [Server thread/EMERGENCY]: An unrecoverable error has occurred and the server has crashed. Creating a crash dump 2021-06-19 [02:24:29] [Server thread/EMERGENCY]: Please upload the "/home/container/crashdumps/Sat_Jun_19-02.24.29-UTC_2021.log" file to the Crash Archive and submit the link to the Bug Reporting page. Give as much info as you can. [Console Error:]

readjustment instructions

[I've done...] [1. ...] [2. ...] [3. ...]

fix suggestions [optional]

[Your suggestion]

supercrafter333 commented 3 years ago

Please download BetterBan from Poggit.