menu
#2907693 Undefined property: ZulfahmiFjr\HealthBar\Main::$clientdata

Submitted by PocketMine-MP 3.9.5

General information

Version: 3.9.5
Git commit: f0539f48
Plugin involvement: Direct
Report date: 2019-10-10 02:52:04 +0000 UTC

System Information

PHP version: 7.3.9
Operating system: linux
System banner: Linux 80f419b8-5ec3-49d1-bd8c-7d741ccca916 4.15.0-65-generic #74-Ubuntu SMP Tue Sep 17 17:06:04 UTC 2019 x86_64

Error information

Warning: the HealthBar plugin was directly involved in this crash. Please contact the plugin author.
Message: Undefined property: ZulfahmiFjr\HealthBar\Main::$clientdata
File: plugins/HealthBar_v1.phar/src/ZulfahmiFjr/HealthBar/Main
Line: #42
Error level: ErrorException
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
     if($pk instanceof LoginPacket){
$data = $pk->clientData;
$this->clientdata[$pk->username] = $data;
}
}

#=========================================================================================================================#

public function getDeviceOS($name){
return $this->clientdata[$name]["DeviceOS"];
}

#=========================================================================================================================#

public function getOS($os){
switch($os){
case "1": return "Android";
case "2": return "iOS";
case "3": return "OSX";
case "4": return "FireOS";
#0 plugins/HealthBar_v1.phar/src/ZulfahmiFjr/HealthBar/Main(42): pocketmine\utils\Utils::errorExceptionHandler(integer 8, string[59] Undefined property: ZulfahmiFjr\HealthBar\Main::$clientdata, string[83] phar:///home/container/plugins/HealthBar_v1.phar/src/ZulfahmiFjr/HealthBar/Main., integer 42, array[1])
#1 plugins/HealthBar_v1.phar/src/ZulfahmiFjr/HealthBar/Task/HealthBar(30): ZulfahmiFjr\HealthBar\Main->getDeviceOS(string[11] rifatfaiz94)
#2 src/pocketmine/scheduler/TaskHandler(159): ZulfahmiFjr\HealthBar\Task\HealthBar->onRun(integer 9416)
#3 src/pocketmine/scheduler/TaskScheduler(199): pocketmine\scheduler\TaskHandler->run(integer 9416)
#4 src/pocketmine/plugin/PluginManager(681): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 9416)
#5 src/pocketmine/Server(2570): pocketmine\plugin\PluginManager->tickSchedulers(integer 9416)
#6 src/pocketmine/Server(2346): pocketmine\Server->tick()
#7 src/pocketmine/Server(2206): pocketmine\Server->tickProcessor()
#8 src/pocketmine/Server(1784): pocketmine\Server->start()
#9 src/pocketmine/PocketMine(275): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /home/container/, string[24] /home/container/plugins/)
#10 src/pocketmine/PocketMine(299): pocketmine\server()
#11 (1): require(string[71] phar:///home/container/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show