PocketMine Crash Archive

#29764823 Undefined call error by PlayerStats plugin

Submitted by PocketMine-MP 1.4.1-980
Warning! This crash was caused by the PlayerStats 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 07:20:33
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 close() on null
File: /PlayerStats_v2.phar/src/PlayerStats/PlayerStats
Line: #82
Error level: E_ERROR

[73]         $resource = $this->getResource("mysql.sql");
[74]         $this->db->query(stream_get_contents($resource));
[75]         @fclose($resource);
[76]         $this->getLogger()->info("Done!");
[77]         $this->getLogger()->info("Successfully connected to MySQL server!");
[78]     }
[79] 
[80]     public function onDisable(){
[81]         $this->getLogger()->info(TextFormat::RED."- PlayerStats disabled !");
[82]     	$this->db->close();
[83]     }
[84] 
[85]     public function onCommand(CommandSender $sender,Command $command,$label,array $args){
[86]         if($sender instanceof Player){
[87]             if($command == "stats"){
[88]                 if(isset($args[1])){
[89]                     if($args[1] instanceof Player){
[90]                         $stats = $this->getAll($this->getServer()->getPlayer($args[1]));
[91]                         $kills = $stats["kills"]; $deaths = $stats["deaths"]; $chats = $stats["chats"]; $breaks = $stats["breaks"];
[92]                         $places = $stats["places"]; $kicks = $stats["kicked"]; $joins = $stats["joins"]; $quits = $stats["quits"];
#0 /src/pocketmine/Server(0): pocketmine\Server->crashDump()
#1 /src/pocketmine/plugin/PluginBase(88): PlayerStats\PlayerStats->onDisable()
#2 /src/pocketmine/plugin/PharPluginLoader(138): pocketmine\plugin\PluginBase->setEnabled()
#3 /src/pocketmine/plugin/PluginManager(633): pocketmine\plugin\PharPluginLoader->disablePlugin()
#4 /src/pocketmine/plugin/PluginManager(565): pocketmine\plugin\PluginManager->disablePlugin()
#5 /src/pocketmine/Server(1785): pocketmine\plugin\PluginManager->enablePlugin()
#6 /src/pocketmine/Server(1771): pocketmine\Server->enablePlugin()
#7 /src/pocketmine/Server(1701): pocketmine\Server->enablePlugins()
#8 /src/pocketmine/PocketMine(442): pocketmine\Server->__construct()
#9 (1): ()
#10 (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
HealthBar1.0.0EnabledPRO100KatYT
iProtector3.1aEnabledLDX
ItemCasePE1.0.2Enabledaliuly
KeepInventory1.2.0Enabledboybook
NoAdvertisingPE1.0.1EnabledPRO100KatYT
PlayerStats2Disabledxpyctum
SimpleAuth1.6.0EnabledPocketMine Team, shoghicp
Slapper1.0.1Disabledjojoe77777
TimeCommander2DisabledLDX
WorldBorder1.1.0DisabledPRO100KatYT
WorldEditArt1.0.0_beta_dev_#048DisabledPEMapModder
WorldProtect2.2.0EnabledPRO100KatYT
BattleKits1.0.4DisabledFalkirks

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