menu
#258 Typed static property phpmc\vanilla\items\NewItemTypeIds::$ELYTRA must not be accessed before initialization

Submitted by PocketMine-MP 5.20.1+dev

General information

Version: 5.20.1+dev
Git commit: 00000000
Plugin involvement: Direct
Report date: 2024-10-29 17:05:42 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 3 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 Vanilla plugin was directly involved in this crash. Please contact the plugin author.
Thread: Main
Message: Typed static property phpmc\vanilla\items\NewItemTypeIds::$ELYTRA must not be accessed before initialization
File: plugins/Vanilla/src/items/NewVanillaItems
Line: #26
Type: Error
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
 * @method static Fireworks FIREWORKS()
* @method static FishingRod FISHING_ROD()
*/
final class NewVanillaItems
{
use CloningRegistryTrait;

protected static function setup(): void
{
self::_registryRegister("elytra", new Elytra(new ItemIdentifier(NewItemTypeIds::$ELYTRA), "Elytra", new ArmorTypeInfo(0, 433, ArmorInventory::SLOT_CHEST, material: VanillaArmorMaterials::TURTLE()), [ItemEnchantmentTags::ELYTRA]));
self::_registryRegister("trident", new Trident(new ItemIdentifier(NewItemTypeIds::$TRIDENT), "Trident", [ItemEnchantmentTags::TRIDENT]));
self::_registryRegister("crossbow", new Crossbow(new ItemIdentifier(NewItemTypeIds::$CROSSBOW), "Crossbow", [ItemEnchantmentTags::CROSSBOW]));
self::_registryRegister("shield", new Shield(new ItemIdentifier(NewItemTypeIds::$SHIELD), "Shield", [ItemEnchantmentTags::SHIELD]));
self::_registryRegister("fireworks", new Fireworks(new ItemIdentifier(NewItemTypeIds::$FIREWORKS), "Fireworks"));
self::_registryRegister("fishing_rod", new FishingRod(new ItemIdentifier(NewItemTypeIds::$FISHING_ROD), "Fishing rod"));
}
}
#0 pmsrc/src/utils/RegistryTrait(83): phpmc\vanilla\items\NewVanillaItems::setup()
#1 pmsrc/src/utils/RegistryTrait(91): phpmc\vanilla\items\NewVanillaItems::checkInit()
#2 pmsrc/src/utils/RegistryTrait(125): phpmc\vanilla\items\NewVanillaItems::_registryFromString(string[6] ELYTRA)
#3 plugins/GoShop/src/corndan/GoShop/Shop(62): phpmc\vanilla\items\NewVanillaItems::__callStatic(string[6] ELYTRA, array[0])
#4 pmsrc/src/plugin/PluginBase(119): corndan\GoShop\Shop->onEnable()
#5 pmsrc/src/plugin/PluginManager(456): pocketmine\plugin\PluginBase->onEnableStateChange(true)
#6 pmsrc/src/Server(1465): pocketmine\plugin\PluginManager->enablePlugin(object corndan\GoShop\Shop#51046)
#7 pmsrc/src/Server(1086): pocketmine\Server->enablePlugins(object pocketmine\plugin\PluginEnableOrder#55813)
#8 pmsrc/src/PocketMine(355): pocketmine\Server->__construct(object pocketmine\thread\ThreadSafeClassLoader#3, object pocketmine\utils\MainLogger#6, string[25] /home/anmine/servers/s99/, string[33] /home/anmine/servers/s99/plugins/)
#9 pmsrc/src/PocketMine(378): pocketmine\server()

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies

Installed PHP Extensions

  • Show