RuneHive-Game
Loading...
Searching...
No Matches
UnusedPacketListener.java
Go to the documentation of this file.
1package com.runehive.net.packet.in;
2
3import com.runehive.game.world.entity.mob.player.Player;
4import com.runehive.net.packet.GamePacket;
5import com.runehive.net.packet.PacketListener;
6import com.runehive.net.packet.PacketListenerMeta;
7
8@PacketListenerMeta({3, 35, 36, 58, 77, 78, 85, 86, 156, 200, 226, 238, 230})
9public class UnusedPacketListener implements PacketListener {
10
11 @Override
12 public void handlePacket(Player player, GamePacket packet) {
13// if (player.debug)
14// player.send(new SendMessage("[UnusedPacketListener] Opcode: " + packet.getOpcode()));
15 }
16}
This class represents a character controlled by a player.
Definition Player.java:125
Represents a single game packet.
void handlePacket(Player player, GamePacket packet)
Handles the packet that has just been received.
An annotation that describes what client -> server packets a PacketListener can listen to.