PocketMine Crash Archive

#29764825 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: Monday 15/03/2021 12:27:50
Attached Issue: None

System Information

PHP version: 5.6.6
Operating system: win
System banner: Windows NT DESKTOP-2616JO2 6.2 build 9200 (Windows 8 Home Premium Edition) i586

Error information

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

[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] 				}
[71]             }
[72]         }
[73] 	}
[74] 
#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/entity/Entity(395): pocketmine\entity\Living->kill()
#6 /src/pocketmine/entity/Living(109): pocketmine\entity\Entity->setHealth()
#7 /src/pocketmine/Player(2006): pocketmine\entity\Living->attack()
#8 /src/pocketmine/network/RakLibInterface(192): pocketmine\Player->handleDataPacket()
#9 /src/raklib/server/ServerHandler(92): pocketmine\network\RakLibInterface->handleEncapsulated()
#10 /src/pocketmine/network/RakLibInterface(137): raklib\server\ServerHandler->handlePacket()
#11 /src/pocketmine/Server(2216): pocketmine\network\RakLibInterface->process()
#12 /src/pocketmine/Server(2110): pocketmine\Server->tick()
#13 /src/pocketmine/Server(1986): pocketmine\Server->tickProcessor()
#14 /src/pocketmine/Server(1703): pocketmine\Server->start()
#15 /src/pocketmine/PocketMine(442): pocketmine\Server->__construct()
#16 (1): ()
#17 (0): ()

Loaded Plugins

NameVersionStateAuthor(s)
AlwaysSpawn2.1.3EnabledComedyman937
CapsLimit1.0.0EnabledPRO100KatYT
ChatCensor1.4EnabledEvolSoft
ClearLagg1.1.0EnabledLegendOfMCPE
CombatLogger1.0.0EnabledPRO100KatYT
CustomAlerts1.2EnabledEvolSoft
CustomRanks1.0.0Enabledshoghicp
EssentialsPE1.0.2EnabledPRO100KatYT
iProtector3.1aEnabledLDX
ItemCasePE1.0.2Enabledaliuly
KeepInventory1.2.0Enabledboybook
KillMoney1.1.0EnabledTopic
NoAdvertisingPE1.0.1EnabledPRO100KatYT
NoVoid0.3EnabledPRO100KatYT
SimpleAuth1.6.0EnabledPocketMine Team, shoghicp
SimpleMessages1.2EnabledPRO100KatYT
TimeCommander2EnabledLDX
WorldBorder1.1.0EnabledPRO100KatYT
WorldEditArt1.0.0_beta_dev_#048EnabledPEMapModder
WorldProtect2.2.0EnabledPRO100KatYT
BattleKits1.0.4EnabledFalkirks

Server Settings [toggle]

NameValue
type0
server-nameMinecraft: PE Server
server-port19132
gamemode0
max-players20
spawn-protection-1
whitelistoff
enable-queryon
enable-rconoff
descriptionServer made using PocketMine-MP
motdWelcome @player to this server!
server-typenormal
memory-limit256M
last-updateoff
announce-player-achievementson
view-distance8
allow-flightoff
spawn-animalsoff
spawn-mobsoff
hardcoreoff
pvpon
difficulty1
generator-settings
level-nameworld
level-seed
level-typeDEFAULT
rcon.password******
auto-saveon
white-listoff
force-gamemodeoff
settings.shutdown-messageServer zostal wylaczony
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.monsters0
spawn-limits.animals0
spawn-limits.water-animals0
spawn-limits.ambient0
auto-report.enabledtrue
auto-report.send-codetrue
auto-report.send-settingstrue
auto-report.send-phpinfotrue
auto-report.hostcrash.pocketmine.net
auto-updater.enabledfalse
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