PocketMine-MP Crash Dump Sat Mar 11 12:57:32 UTC 2023
PocketMine-MP version: 5.0.0-BETA1 [Protocol 567]
Git commit: 9e329d55a8d25b5857cfcb882d5ea383b4ec3e6f
PHP version: 8.0.28
OS: Linux, linux
THIS CRASH WAS CAUSED BY A PLUGIN
BAD PLUGIN: Shield
Error: Declaration of JavierLeon9966\Shield\item\Shield::onDestroyBlock(pocketmine\block\Block $block): bool must be compatible with pocketmine\item\Item::onDestroyBlock(pocketmine\block\Block $block, array &$returnedItems): bool
File: plugins/Shield-patch-1/src/JavierLeon9966/Shield/item/Shield
Line: 20
Type: E_COMPILE_ERROR
Backtrace:
Code:
[11]
[12] public function getMaxStackSize(): int{
[13] return 1;
[14] }
[15]
[16] public function getMaxDurability(): int{
[17] return 337;
[18] }
[19]
[20] public function onDestroyBlock(Block $block): bool{
[21] if(!$block->getBreakInfo()->breaksInstantly()){
[22] return $this->applyDamage(2);
[23] }
[24] return false;
[25] }
[26] }
Loaded plugins:
DevTools 1.17.0+dev by PocketMine Team for API(s) 5.0.0
Shield 1.14.0 by JavierLeon9966 for API(s) 5.0.0