LegendsOfMCPE submitted a new plugin: HealthBar - View other players' health! Read more about this plugin...
This is just as... promotion? xD jk They really work together, I adapt the codes to listen changes, not directly from the other plugin, but yes across the PocketMine API checkout previous commits of MoreHealth and Healthbar, you may see them
what is it?? Spoiler: [CRITICAL] [CRITICAL] Could not pass event pocketmine\event\entity\EntityDamageEvent to HealthBar v1.0.0: Argument 1 passed to HealthBar\EventHandler:nAttack() must be an instance of pocketmine\event\entity\EntityDamageByEntityEvent, instance of pocketmine\event\entity\EntityDamageEvent given, called in phar://C:/Users/hp/Desktop/MC/PocketMine-MP/PocketMine-MP.phar/src/pocketmine/plugin/MethodEventExecutor.php on line 36 and defined on HealthBar\EventHandler
Do you know why sometimes the player name is not visible, but only the health bar is? Using PocketMineBeta #936 and Healthbar 1.0.0 Also... 21.01 21:38:53 [Server] NOTICE InvalidArgumentException: "Argument 1 passed to HealthBar\EventHandler:nAttack() must be an instance of pocketmine\event\entity\EntityDamageByEntityEvent, instance of pocketmine\event\entity\EntityDamageEvent given, called in phar:///jar/pocketmine.phar/src/pocketmine/plugin/MethodEventExecutor.php on line 36 and defined" (E_RECOVERABLE_ERROR) in "/HealthBar.phar/src/HealthBar/EventHandler" at line 60 21.01 21:38:53 [Server] CRITICAL Could not pass event pocketmine\event\entity\EntityDamageEvent to HealthBar v1.0.0: Argument 1 passed to HealthBar\EventHandler:nAttack() must be an instance of pocketmine\event\entity\EntityDamageByEntityEvent, instance of pocketmine\event\entity\EntityDamageEvent given, called in phar:///jar/pocketmine.phar/src/pocketmine/plugin/MethodEventExecutor.php on line 36 and defined on HealthBar\EventHandler
The plugin crash in my server 05.11 05:50:26 [Server] Server thread/INFO Disabling HealthBar v1.0.0 05.11 05:50:26 [Server] Server thread/CRITICAL pocketmine\utils\PluginException: "pocketmine\event\entity\EntityDamageByEntityEvent does not have a handler list" (EXCEPTION) in "/jar/pocketmine_php5/src/pocketmine/plugin/PluginManager" at line 759 05.11 05:50:26 [Server] Server thread/INFO Enabling HealthBar v1.0.0