PocketMine Crash Archive

#29781711 Undefined call error by Animal plugin

Submitted by PocketMine-MP 1.4.1-980
Warning! This crash was caused by the Animal plugin. Please contact the original plugin author.

General information

Version: 1.4.1-980
API version: 1.11.0
Caused by a Plugin: YES
Report date: Friday 02/09/2022 16:37:50
Attached Issue: None

System Information

PHP version: 5.6.6
Operating system: win
System banner: Windows NT GL4QAGB21EKB83C 6.1 build 7601 (Windows Server 2008 R2 Enterprise Edition Service Pack 1) i586

Error information

Call to undefined method pocketmine\item\Item::addCreativeItem()
File: /011mob.phar/src/Animal/Animal
Line: #75
Error level: E_ERROR

[66] 	public $hatred_Entity = 5;
[67] 	public $birth = 30;
[68] 	public $birth_r = 30;
[69] 
[70] 	public function onLoad(){
[71] 		$this->getLogger()->info(TextFormat::YELLOW."动物插件加载中!");
[72] 	}
[73]    	
[74] 	public function onEnable(){
[75] 		Item::addCreativeItem(Item::get(Item::SPAWN_EGG, 12)); //猪
[76] 		Item::addCreativeItem(Item::get(Item::SPAWN_EGG, 13)); //羊
[77] 		Item::addCreativeItem(Item::get(Item::SPAWN_EGG, 14)); //狼
[78] 		Item::addCreativeItem(Item::get(Item::SPAWN_EGG, 11)); //牛
[79] 		Item::addCreativeItem(Item::get(Item::SPAWN_EGG, 35)); //蜘蛛
[80] 		Item::addCreativeItem(Item::get(Item::SPAWN_EGG, 37)); //史莱姆
[81] 		Item::addCreativeItem(Item::get(Item::SPAWN_EGG, 10)); //鸡
[82] 		Item::addCreativeItem(Item::get(Item::SPAWN_EGG, 16)); //蘑菇牛	
[83] 		Item::addCreativeItem(Item::get(Item::SPAWN_EGG, 38)); //小黑
[84] 		Item::addCreativeItem(Item::get(Item::WOODEN_HOE, 0));
[85] 		Item::addCreativeItem(Item::get(Item::WOODEN_SHOVEL, 0));
#0 /src/pocketmine/Server(0): pocketmine\Server->crashDump()
#1 /src/pocketmine/plugin/PluginBase(86): Animal\Animal->onEnable()
#2 /src/pocketmine/plugin/PharPluginLoader(123): pocketmine\plugin\PluginBase->setEnabled()
#3 /src/pocketmine/plugin/PluginManager(559): pocketmine\plugin\PharPluginLoader->enablePlugin()
#4 /src/pocketmine/Server(1785): pocketmine\plugin\PluginManager->enablePlugin()
#5 /src/pocketmine/Server(1771): pocketmine\Server->enablePlugin()
#6 /src/pocketmine/Server(1701): pocketmine\Server->enablePlugins()
#7 /src/pocketmine/PocketMine(442): pocketmine\Server->__construct()
#8 (1): ()
#9 (0): ()

Loaded Plugins

NameVersionStateAuthor(s)
Animal0.0.2Enabled
BanItem2.2DisabledLDX
ClearLagg1.1.0DisabledLegendOfMCPE
EconomyAirport2.0.0Disabledonebone
EconomyAPI2.0.2Disabledonebone
EconomyAuction2.0.0Disabledonebone
EconomyCasino2.0.0Disabledonebone
EconomyJob2.0.0Disabledonebone
EconomyLand2.0.3Disabledonebone
EconomyProperty2.0.0Disabledonebone
EconomySell2.0.1Disabledonebone
EconomyShop2.0.1Disabledonebone
EconomyTax2.0.1Disabledonebone
EssentialsPE1.0.2DisabledLegendsOfMCPE Team
KeepInventory1.2.0Disabledboybook
NoExplode1Disabled
PeacefulSpawn2.5DisabledLDX
PocketMoney4.0.1DisabledMinecrafterJPN, MinecrafterJPN
QRcraft1.0.4DisabledClodyx
RandomItem4.3DisabledLDX
ServerKits1.3EnabledEvolSoft
SimpleAuth1.6.0EnabledPocketMine Team, shoghicp
SwaggyArmor1Disabled
TimeCommander2.1DisabledLDX
TouchHome2DisabledLDX
BigBrother1.4.0-betaEnabledshoghicp

Server Settings [toggle]

NameValue
motdMinecraft: PE Server
server-port19132
memory-limit-1
white-listoff
announce-player-achievementson
spawn-protection16
max-players20
allow-flightoff
spawn-animalson
spawn-mobson
gamemode0
force-gamemodeoff
hardcoreoff
pvpon
difficulty1
generator-settings
level-nameworld
level-seed
level-typeDEFAULT
enable-queryon
enable-rconoff
rcon.password******
auto-saveon
settings.shutdown-messageServer closed
settings.query-pluginstrue
settings.deprecated-verbosetrue
settings.enable-profilingfalse
settings.advanced-cachefalse
settings.upnp-forwardingfalse
settings.send-usagetrue
settings.async-workers1
debug.level1
debug.commandsfalse
level-settings.default-formatmcregion
level-settings.convert-formatfalse
chunk-sending.per-tick4
chunk-sending.compression-level8
chunk-sending.max-chunks256
chunk-ticking.per-tick260
chunk-ticking.tick-radius4
chunk-ticking.light-updatesfalse
chunk-ticking.clear-tick-listfalse
chunk-generation.use-asynctrue
chunk-generation.per-tick1
chunk-gc.period-in-ticks600
ticks-per.animal-spawns400
ticks-per.monster-spawns1
ticks-per.autosave6000
ticks-per.cache-cleanup900
spawn-limits.monsters70
spawn-limits.animals15
spawn-limits.water-animals5
spawn-limits.ambient15
auto-report.enabledtrue
auto-report.send-codetrue
auto-report.send-settingstrue
auto-report.send-phpinfotrue
auto-report.hostcrash.pocketmine.net
auto-updater.enabledtrue
auto-updater.on-update.warn-consoletrue
auto-updater.on-update.warn-opstrue
auto-updater.preferred-channelstable
auto-updater.suggest-channelstrue
auto-updater.hostwww.pocketmine.net
aliases
worlds
Find duplicates  |   Download