-
Notifications
You must be signed in to change notification settings - Fork 0
/
BrandSpoof.java
35 lines (26 loc) · 1.19 KB
/
BrandSpoof.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package co.earthme.wafkbot.core;
import com.github.steveice10.mc.protocol.packet.ingame.clientbound.ClientboundLoginPacket;
import com.github.steveice10.mc.protocol.packet.ingame.serverbound.ServerboundCustomPayloadPacket;
import com.github.steveice10.packetlib.Session;
import com.github.steveice10.packetlib.event.session.*;
import com.github.steveice10.packetlib.packet.Packet;
public class BrandSpoof implements SessionListener {
@Override
public void packetReceived(Session session, Packet packet) {
if (packet instanceof ClientboundLoginPacket){
session.send(new ServerboundCustomPayloadPacket("minecraft:brand","vanilla".getBytes()));
}
}
@Override
public void packetSending(PacketSendingEvent packetSendingEvent) {}
@Override
public void packetSent(Session session, Packet packet) {}
@Override
public void packetError(PacketErrorEvent packetErrorEvent) {}
@Override
public void connected(ConnectedEvent connectedEvent) {}
@Override
public void disconnecting(DisconnectingEvent disconnectingEvent) {}
@Override
public void disconnected(DisconnectedEvent disconnectedEvent) {}
}