PocketMine Crash Archive

#29761977 Undefined call error by KillMoney plugin

Submitted by PocketMine-MP 1.4.1-980
Warning! This crash was caused by the KillMoney 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: Saturday 19/09/2020 19:34:05
Attached Issue: None

System Information

PHP version: 5.6.6
Operating system: win
System banner: Windows NT 172_21_0_3 6.2 build 9200 (Windows Server 2012 Datacenter Edition) i586

Error information

Call to a member function getDamager() on null
File: /KillMoney_v1.1.0.phar/src/KillMoney/KillMoney
Line: #60
Error level: E_ERROR

[51] 
[52] 	public function onDisable(){
[53] 		$this->getLogger()->info(TextFormat::RED."KillMoney unloaded!");
[54] 	}
[55] 
[56] 	public function onPlayerDeath(EntityDeathEvent $event){
[57] 		if(($this->economy == true) && ($this->config["enable"] == "true")){
[58]        		$entity = $event->getEntity();
[59]         	$cause = $entity->getLastDamageCause();
[60]             $killer = $cause->getDamager();
[61]             if($killer instanceof Player){
[62]             	$killer->sendMessage(str_replace(array("PocketMine-MP 1.4.1-980", ""), array($entity->getName(), $this->config["money"]), $this->config["message"]));
[63] 				if($this->config["economy-plugin"] == "Economy"){
[64] 					$this->getServer()->getPluginManager()->getPlugin("EconomyAPI")->addMoney($killer->getName(), $this->config["money"]);
[65] 				}elseif($this->config["economy-plugin"] == "PocketMoney"){
[66] 					$this->getServer()->getPluginManager()->getPlugin("PocketMoney")->grantMoney($killer->getName(), $this->config["money"]);
[67] 				}else{
[68] 					$this->economy = false;
[69] 					$this->getLogger()->info(TextFormat::RED."KillMoney Error");
[70] 				}
#0 /src/pocketmine/Server(0): pocketmine\Server->crashDump()
#1 /src/pocketmine/plugin/MethodEventExecutor(36): KillMoney\KillMoney->onPlayerDeath()
#2 /src/pocketmine/plugin/RegisteredListener(96): pocketmine\plugin\MethodEventExecutor->execute()
#3 /src/pocketmine/plugin/PluginManager(670): pocketmine\plugin\RegisteredListener->callEvent()
#4 /src/pocketmine/entity/Living(147): pocketmine\plugin\PluginManager->callEvent()
#5 /src/pocketmine/level/Level(1967): pocketmine\entity\Living->kill()
#6 /src/pocketmine/entity/Entity(1309): pocketmine\level\Level->removeEntity()
#7 /src/pocketmine/level/format/generic/BaseFullChunk(315): pocketmine\entity\Entity->close()
#8 /src/pocketmine/level/format/mcregion/McRegion(209): pocketmine\level\format\generic\BaseFullChunk->unload()
#9 /src/pocketmine/level/Level(2103): pocketmine\level\format\mcregion\McRegion->unloadChunk()
#10 /src/pocketmine/level/Level(2318): pocketmine\level\Level->unloadChunk()
#11 /src/pocketmine/level/Level(497): pocketmine\level\Level->unloadChunks()
#12 /src/pocketmine/Server(2124): pocketmine\level\Level->doTick()
#13 /src/pocketmine/Server(2224): pocketmine\Server->checkTickUpdates()
#14 /src/pocketmine/Server(2110): pocketmine\Server->tick()
#15 /src/pocketmine/Server(1986): pocketmine\Server->tickProcessor()
#16 /src/pocketmine/Server(1703): pocketmine\Server->start()
#17 /src/pocketmine/PocketMine(442): pocketmine\Server->__construct()
#18 (1): ()
#19 (0): ()

Loaded Plugins

NameVersionStateAuthor(s)
BackDeath1.0.0EnabledEkiFoX
ClearLagg1.1.0EnabledLegendOfMCPE
ColorText1.3.0EnabledHeromine
EconomyAirport2.0.0Enabledonebone
EconomyAPI2.0.2Enabledonebone
EconomyAuction2.0.0Enabledonebone
EconomyCasino2.0.0Enabledonebone
EconomyJob2.0.0Enabledonebone
EconomyLand2.0.3Enabledonebone
EconomyProperty2.0.0Enabledonebone
EconomySell2.0.1Enabledonebone
EconomyShop2.0.1Enabledonebone
EconomyTax2.0.1Enabledonebone
KillMoney1.1.0EnabledTopic
PeacefulSpawn2.5EnabledLDX
PocketMoney4.0.1EnabledMinecrafterJPN, MinecrafterJPN
RandomItem4.3EnabledLDX
ServerKits1.3EnabledEvolSoft
SimpleAuth1.6.0EnabledPocketMine Team, shoghicp
TimeCommander2.1EnabledLDX
TouchHome2EnabledLDX
ChestShop2.0.1EnabledMinecrafterJPN, MinecrafterJPN

Server Settings [toggle]

NameValue
type0
motd[服务器娘]欢迎来到蜂鸟的PE服务器!在这个服务器中,你可以随意建造,PVP,做任何你想做的事情。玩的开心!
server-port19132
memory-limit-1
white-listoff
announce-player-achievementson
spawn-protection-1
max-players20
allow-flighton
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