PocketMine Crash Archive

#29712979 Undefined call error by MicroBattles plugin

Submitted by PocketMine-Steadfast 1.5.1-hybrid
Warning! This crash was caused by the MicroBattles plugin. Please contact the original plugin author.

General information

Version: 1.5.1
API version: 1.12.0
Caused by a Plugin: YES
Report date: Wednesday 09/10/2019 15:01:19
Attached Issue: None

System Information

PHP version: 7.0.2
Operating system: linux
System banner: Linux dedi 3.10.0-957.5.1.el7.x86_64 #1 SMP Fri Feb 1 14:54:57 UTC 2019 x86_64

Error information

Call to a member function getInventory() on null
File: /MicroBattles_v1.1.phar/src/Server/Main
Line: #902
Error level: notice

[893] 
[894]                 break;
[895]             case "hub":
[896]                 if ($sender instanceof cbPlayer) {
[897] 
[898]                     if ($sender->getGamemode() != Player::SURVIVAL) {
[899]                         $sender->setGamemode(Player::SURVIVAL);
[900]                     }
[901]                     $player = $this->getServer()->getPlayer($sender->getName());
[902]                     $player->getInventory()->clearAll();
[903]                     $player->getInventory()->sendContents($player);
[904]                     $player->getInventory()->sendArmorContents($player);
[905]                     $player->removeAllEffects();
[906]                     $player->setHealth(20);
[907]                     $player->setFood(20);
[908]                     $player->setFoodEnabled(false);
[909]                     $sender->teleport($this->getServer()->getDefaultLevel()->getSpawnLocation());
[910]                     $sender->sendMessage(TextFormat::GREEN . "[MicroBattles] Teleported to the hub");
[911] 
[912]                     $this->regenerateDisplayName($sender);
#0 /src/pocketmine/command/SimpleCommandMap(246): pocketmine\command\PluginCommand->execute(Server\cbPlayer cbPlayer(2706), string hub, array Array())
#1 /src/pocketmine/Server(1958): pocketmine\command\SimpleCommandMap->dispatch(Server\cbPlayer cbPlayer(2706), string hub)
#2 /src/pocketmine/Player(5360): pocketmine\Server->dispatchCommand(Server\cbPlayer cbPlayer(2706), string hub)
#3 /src/pocketmine/Player(1573): pocketmine\Player->processCommand(string hub)
#4 /src/pocketmine/level/Level(596): pocketmine\Player->onUpdate(integer 91552)
#5 /src/pocketmine/Server(2351): pocketmine\level\Level->doTick(integer 91552)
#6 /src/pocketmine/Server(2455): pocketmine\Server->checkTickUpdates(integer 91552)
#7 /src/pocketmine/Server(2255): pocketmine\Server->tick(boolean)
#8 /src/pocketmine/Server(2129): pocketmine\Server->tickProcessor(boolean)
#9 /src/pocketmine/Server(1732): pocketmine\Server->start(boolean)
#10 /src/pocketmine/PocketMine(459): pocketmine\Server->__construct(pocketmine\CompatibleClassLoader object, pocketmine\utils\MainLogger object, string phar:///root/Server/PocketMine-MP.phar/, string /root/Server/, string /root/Server/plugins/)
#11 (1): require_once(string phar:///root/Server/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

NameVersionStateAuthor(s)
SimpleAuth1.7.1EnabledPocketMine Team, shoghicp
NoFlyHack1.0.0EnabledGuillaume351
MicroBattles1.1EnabledGuillaume351

Server Settings [toggle]

NameValue
motdCookie Build MicroBattles
server-port19132
white-listoff
announce-player-achievementsoff
spawn-protection-1
max-players80
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-saveoff
redstone-calculationoff
disable-logfileon
memory-limit3G
online-mode0
animals-limit0
mobs-limit0
auto-generateoff
save-player-dataoff
proxy-port10305
use-proxyoff
use-raklibon
view-distance8
time-updateon
use-encryptoff
settings.languageeng
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-limit3000M
memory.main-limit2000M
memory.main-hard-limit4096
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.chunk-radius4
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.assertions.warn-if-enabledtrue
debug.assertions.throw-exceptionfalse
debug.level1
debug.commandstrue
player.save-player-datafalse
player.anti-cheat.allow-movement-cheatstrue
player.anti-cheat.allow-instabreaktrue
level-settings.default-formatpmanvil
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.spawn-radius4
chunk-sending.cache-chunksfalse
chunk-sending.async-chunk-requestfalse
chunk-ticking.per-tick20
chunk-ticking.tick-radius1
chunk-ticking.light-updatesfalse
chunk-ticking.clear-tick-listtrue
chunk-ticking.disable-block-ticking
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
timings.hostmcpetimings.com
aliases
worlds
Find duplicates  |   Download