Skip to content

Instantly share code, notes, and snippets.

@Goblom
Created August 5, 2014 08:43
Show Gist options
  • Save Goblom/c680b4bf5c2108b117be to your computer and use it in GitHub Desktop.
Save Goblom/c680b4bf5c2108b117be to your computer and use it in GitHub Desktop.
Something funny Packeteer can do
@PacketHandler(type = PacketHandleType.INCOMING, forClass = "PacketPlayInUpdateSign")
public void onPlayInSignUpdate(PacketEvent event) {
Packet packet = event.getPacket();
String[] lines = packet.read("d", String[].class);
for (int i = 0; i < lines.length; i++) {
lines[i] = "rekt?";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment