Created
November 30, 2013 17:17
-
-
Save EricZeiberg/7721722 to your computer and use it in GitHub Desktop.
Chat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
public void onPacketReceive(PacketReceiveEvent event) { | |
Packet packet = event.getPacket(); | |
packet.accept(visitor); | |
if (packet.getId() == 3){ | |
PacketChat pc = (PacketChat) event.getPacket(); | |
if (pc.getMessage().equalsIgnoreCase("test message")){ | |
say("Recived"); | |
System.out.print("TESTTTYTT"); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment