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

Is it a bug? #38

Closed NdaruAjaa closed 1 year ago

NdaruAjaa commented 1 year ago

After starting the server immediately crashes, is this a bug??

PocketMine-MP version: 5.1.2 [Protocol 589] Git commit: 7cd317bf398a017f7c690a475c5a67650c610323 PHP version: 8.1.19 OS: Linux, linux

A PLUGIN WAS INVOLVED IN THIS CRASH BAD PLUGIN: BetterBan

Error: Event handler supercrafter333\BetterBan\EventListener->onPreLogin() declares @handleCancelled for non-cancellable event of type pocketmine\event\player\PlayerPreLoginEvent File: pmsrc/src/plugin/PluginManager Line: 611 Type: pocketmine\plugin\PluginException Backtrace:

0 plugins/BetterBan.phar/src/supercrafter333/BetterBan/BetterBan(106): pocketmine\plugin\PluginManager->registerEvents(object supercrafter333\BetterBan\EventListener#60313, object supercrafter333\BetterBan\BetterBan#48615)

1 pmsrc/src/plugin/PluginBase(118): supercrafter333\BetterBan\BetterBan->onEnable()

2 pmsrc/src/plugin/PluginManager(454): pocketmine\plugin\PluginBase->onEnableStateChange(true)

3 pmsrc/src/Server(1388): pocketmine\plugin\PluginManager->enablePlugin(object supercrafter333\BetterBan\BetterBan#48615)

4 pmsrc/src/Server(1032): pocketmine\Server->enablePlugins(object pocketmine\plugin\PluginEnableOrder#40705)

5 pmsrc/src/PocketMine(334): pocketmine\Server->__construct(object pocketmine\thread\ThreadSafeClassLoader#6, object pocketmine\utils\MainLogger#3, string[16] /home/container/, string[24] /home/container/plugins/)

6 pmsrc/src/PocketMine(357): pocketmine\server()

7 pmsrc(11): require(string[60] phar:///home/container/PocketMine-MP.phar/src/PocketMine.php)