PocketMine Crash Archive

#29775583 Undefined call error by Thirst plugin

Submitted by PocketMine-MP 1.6
Warning! This crash was caused by the Thirst plugin. Please contact the original plugin author.

General information

Version: 1.6
API version: 1.13.0
Caused by a Plugin: YES
Report date: Saturday 05/02/2022 14:48:43
Attached Issue: None

System Information

PHP version: 5.6.4
Operating system: win
System banner: Windows NT WIN-B7HPC3GNDL4 6.2 build 9200 (Windows Server 2012 Datacenter Edition) i586

Error information

Call to undefined method pocketmine\event\player\PlayerDeathEvent::getPlayer()
File: /Thirst_v1.0.0.phar/src/Thirst/Main
Line: #55
Error level:

[46]     {
[47]         $this->getServer()->getPluginManager()->registerEvents($this, $this);
[48]         @mkdir($this->getDataFolder());
[49]         $this->tip = new Config($this->getDataFolder() . "PlayerIn.yml", Config::YAML, array());
[50]         $this->world = new Config($this->getDataFolder()."Worlds.yml", Config::YAML, array("worlds"=>array()));
[51]         $this->getLogger()->info("Water 加载完成!");
[52]     }
[53]     public function onDeath(PlayerDeathEvent $event)
[54]     {
[55]         if(in_array($event->getPlayer()->getLevel()->getFolderName(),$this->world->get("worlds")))
[56]         {
[57]             $player = $event->getPlayer();
[58]             $name = $player->getName();
[59]             $this->tip->set($name,[
[60]                 "Thirst"=>$this->Thirst,
[61]                 "ThirstCount"=>$this->ThirstCount,
[62]             ]);
[63]             $this->tip->save();
[64]         }
[65]     }
#0 /src/pocketmine/Server(0): pocketmine\Server->crashDump(boolean)
#1 /src/pocketmine/plugin/MethodEventExecutor(36): Thirst\Main->onDeath(boolean)
#2 /src/pocketmine/plugin/RegisteredListener(96): pocketmine\plugin\MethodEventExecutor->execute(boolean)
#3 /src/pocketmine/plugin/PluginManager(673): pocketmine\plugin\RegisteredListener->callEvent(boolean)
#4 /src/pocketmine/Player(3335): pocketmine\plugin\PluginManager->callEvent(boolean)
#5 /src/pocketmine/entity/Entity(654): pocketmine\Player->kill(boolean)
#6 /src/pocketmine/entity/Living(67): pocketmine\entity\Entity->setHealth(boolean)
#7 /src/pocketmine/Player(3365): pocketmine\entity\Living->setHealth(boolean)
#8 /src/pocketmine/entity/Entity(613): pocketmine\Player->setHealth(boolean)
#9 /src/pocketmine/entity/Living(106): pocketmine\entity\Entity->attack(boolean)
#10 /src/pocketmine/Player(3425): pocketmine\entity\Living->attack(boolean)
#11 /src/pocketmine/Player(1574): pocketmine\Player->attack(boolean)
#12 /src/pocketmine/level/Level(698): pocketmine\Player->onUpdate(boolean)
#13 /src/pocketmine/Server(2353): pocketmine\level\Level->doTick(boolean)
#14 /src/pocketmine/Server(2525): pocketmine\Server->checkTickUpdates(boolean)
#15 /src/pocketmine/Server(2233): pocketmine\Server->tick(boolean)
#16 /src/pocketmine/Server(2111): pocketmine\Server->tickProcessor(boolean)
#17 /src/pocketmine/Server(1711): pocketmine\Server->start(boolean)
#18 /src/pocketmine/PocketMine(464): pocketmine\Server->__construct(boolean)
#19 (1): (boolean)
#20 (0): (boolean)

Loaded Plugins

NameVersionStateAuthor(s)
EntityManager2.4 BetaEnabled우유맛비누
Thirst1.0.0EnabledSpiderman
Farms1.0-non-alphaEnabledhm
AshMan1.0.1EnabledFENGberd,Alcatraz_Du
Protection1.8.3Enabledzzx

Server Settings [toggle]

NameValue
motd§cRita§a3§e生存服务器
server-port10199
white-listoff
announce-player-achievementson
spawn-protection0
max-players999999999999999999999999999999999999999
allow-flightoff
spawn-animalson
spawn-mobson
gamemode0
force-gamemodeoff
hardcoreoff
pvpon
difficulty1
generator-settings
level-namesc
level-seed
level-typeDEFAULT
enable-queryon
enable-rconoff
rcon.password******
auto-saveon
settings.languagechs
settings.force-languagefalse
settings.shutdown-messageServer closed
settings.query-pluginstrue
settings.deprecated-verbosetrue
settings.enable-profilingfalse
settings.profile-report-trigger20
settings.async-workersauto
memory.global-limit512
memory.main-limit320
memory.check-rate20
memory.continuous-triggertrue
memory.continuous-trigger-rate30
memory.garbage-collection.period36000
memory.garbage-collection.collect-async-workertrue
memory.garbage-collection.low-memory-triggertrue
memory.max-chunks.trigger-limit96
memory.max-chunks.trigger-chunk-collecttrue
memory.max-chunks.low-memory-triggertrue
memory.world-caches.disable-chunk-cachetrue
memory.world-caches.low-memory-triggertrue
network.batch-threshold256
network.compression-level7
network.async-compressionfalse
network.upnp-forwardingfalse
debug.level1
debug.commandsfalse
level-settings.default-formatmcregion
level-settings.convert-formatfalse
level-settings.auto-tick-ratetrue
level-settings.auto-tick-rate-limit20
level-settings.base-tick-rate1
level-settings.always-tick-playersfalse
chunk-sending.per-tick4
chunk-sending.max-chunks192
chunk-sending.spawn-threshold56
chunk-sending.cache-chunksfalse
chunk-ticking.per-tick40
chunk-ticking.tick-radius3
chunk-ticking.light-updatesfalse
chunk-ticking.clear-tick-listtrue
chunk-generation.queue-size8
chunk-generation.population-queue-size8
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-phpinfofalse
auto-report.hostcrash.pocketmine.net
anonymous-statistics.enabledtrue
anonymous-statistics.hoststats.pocketmine.net
auto-updater.enabledtrue
auto-updater.on-update.warn-consoletrue
auto-updater.on-update.warn-opstrue
auto-updater.preferred-channelbeta
auto-updater.suggest-channelstrue
auto-updater.hostwww.pocketmine.net
aliases
worlds
Find duplicates  |   Download