File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
src/main/java/net/hypixel/modapi/handler Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 44import net .hypixel .modapi .packet .impl .clientbound .ClientboundLocationPacket ;
55import net .hypixel .modapi .packet .impl .clientbound .ClientboundPartyInfoPacket ;
66import net .hypixel .modapi .packet .impl .clientbound .ClientboundPingPacket ;
7+ import net .hypixel .modapi .packet .impl .clientbound .ClientboundPlayerInfoPacket ;
78
89public interface ClientboundPacketHandler extends PacketHandler {
910
@@ -19,6 +20,10 @@ default void handle(HypixelPacket packet) {
1920 if (packet instanceof ClientboundPartyInfoPacket ) {
2021 onPartyInfoPacket ((ClientboundPartyInfoPacket ) packet );
2122 }
23+
24+ if (packet instanceof ClientboundPlayerInfoPacket ) {
25+ onPlayerInfoPacket ((ClientboundPlayerInfoPacket ) packet );
26+ }
2227 }
2328
2429 default void onPingPacket (ClientboundPingPacket packet ) {
@@ -30,4 +35,6 @@ default void onLocationPacket(ClientboundLocationPacket packet) {
3035 default void onPartyInfoPacket (ClientboundPartyInfoPacket packet ) {
3136 }
3237
38+ default void onPlayerInfoPacket (ClientboundPlayerInfoPacket packet ) {
39+ }
3340}
You can’t perform that action at this time.
0 commit comments