Skip to content

Commit 3616ab3

Browse files
committed
Update - working
1 parent 3aefa03 commit 3616ab3

5 files changed

Lines changed: 11 additions & 5 deletions

File tree

plugin.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
name: BossBarAPI
2+
main: xenialdan\BossBarAPI\Main
3+
version: 1.0.0
4+
api: [2.0.0]
5+
load: POSTWORLD
6+
authors: [XenialDan]

src/xenialdan/BossBarAPI/BossEventPacket.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
namespace xenialdan\BossBarAPI;
44

55
use pocketmine\network\protocol\DataPacket;
6-
// include <rules/DataPacket.h>
6+
77
class BossEventPacket extends DataPacket{
8-
const NETWORK_ID = \pocketmine\network\protocol\Info::BOSS_EVENT_PACKET??0x4a; // set if not exists
8+
const NETWORK_ID = 0x4a;
99
public $eid;
1010
public $state;
1111

src/xenialdan/BossBarAPI/EventPacket.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use pocketmine\network\protocol\DataPacket;
66

77
class BossEventPacket extends DataPacket{
8-
const NETWORK_ID = \pocketmine\network\protocol\Info::EVENT_PACKET;
8+
const NETWORK_ID = 0x3f;
99
public $eid;
1010
public $varint1;
1111
public $state;

src/xenialdan/BossBarAPI/SetEntityDataPacket.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use pocketmine\utils\Binary;
66

77
class SetEntityDataPacket extends DataPacket{
8-
const NETWORK_ID = \pocketmine\network\protocol\Info::SET_ENTITY_DATA_PACKET??0x26;
8+
const NETWORK_ID = 0x26;
99
public $eid;
1010
public $metadata;
1111

src/xenialdan/BossBarAPI/UpdateAttributesPacket.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use pocketmine\network\protocol\DataPacket;
77

88
class UpdateAttributesPacket extends DataPacket{
9-
const NETWORK_ID = \pocketmine\network\protocol\Info::UPDATE_ATTRIBUTES_PACKET??0x1f; // set if not exists;
9+
const NETWORK_ID = 0x1f;
1010
public $entityId;
1111

1212
/** @var BossBarValues[] */

0 commit comments

Comments
 (0)