menu
#284 Too few arguments to function pocketmine\network\mcpe\protocol\types\AbilitiesLayer::__construct(), 4 passed in /home/anmine/servers/s99/plugins/AnanasKing/src/themestl/ananasking/AnanasKing.php on line 184 and exactly 5 expected

Submitted by PocketMine-MP 5.25.1+dev.2091

General information

Version: 5.25.1+dev.2091
Git commit: 361776de
Plugin involvement: Indirect
Report date: 2025-02-19 13:50:13 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 2 seconds

System Information

PHP version: 8.3.4
JIT status: Not available
Operating system: linux
System banner: Linux anmine.ru 5.10.0-32-amd64 #1 SMP Debian 5.10.223-1 (2024-08-10) x86_64

Error information

Warning: the AnanasKing plugin was indirectly involved in this crash. This may be a false positive. Please contact the plugin author before opening a bug ticket.
Thread: Main
Message: Too few arguments to function pocketmine\network\mcpe\protocol\types\AbilitiesLayer::__construct(), 4 passed in /home/anmine/servers/s99/plugins/AnanasKing/src/themestl/ananasking/AnanasKing.php on line 184 and exactly 5 expected
File: pmsrc/vendor/nethergamesmc/bedrock-protocol/src/types/AbilitiesLayer
Line: #57
Type: ArgumentCountError
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
	public const ABILITY_PRIVILEGED_BUILDER = 18;
public const ABILITY_VERTICAL_FLY_SPEED = 19;

public const NUMBER_OF_ABILITIES = 20;

/**
* @param bool[] $boolAbilities
* @phpstan-param array<self::ABILITY_*, bool> $boolAbilities
*/
public function __construct(
private int $layerId,
private array $boolAbilities,
private ?float $flySpeed,
private ?float $verticalFlySpeed,
private ?float $walkSpeed
){}

public function getLayerId() : int{ return $this->layerId; }

/**
#0 plugins/AnanasKing/src/themestl/ananasking/AnanasKing(184): pocketmine\network\mcpe\protocol\types\AbilitiesLayer->__construct(int 1, array[20], float 0, float 0)
#1 plugins/AnanasKing/src/themestl/ananasking/AnanasKing(88): themestl\ananasking\AnanasKing::makePKS()
#2 pmsrc/src/plugin/PluginBase(119): themestl\ananasking\AnanasKing->onEnable()
#3 pmsrc/src/plugin/PluginManager(463): pocketmine\plugin\PluginBase->onEnableStateChange(true)
#4 pmsrc/src/Server(1507): pocketmine\plugin\PluginManager->enablePlugin(object themestl\ananasking\AnanasKing#81465)
#5 pmsrc/src/Server(1124): pocketmine\Server->enablePlugins(object pocketmine\plugin\PluginEnableOrder#62544)
#6 pmsrc/src/PocketMine(360): pocketmine\Server->__construct(object pocketmine\thread\ThreadSafeClassLoader#2, object pocketmine\utils\MainLogger#6, string[25] /home/anmine/servers/s99/, string[33] /home/anmine/servers/s99/plugins/)
#7 pmsrc/src/PocketMine(383): pocketmine\server()
#8 pmsrc(170): require(string[72] phar:///tmp/PocketMine-MP-phar-cache.0/PMMPoKyEKt.tar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies

Installed PHP Extensions

  • Show