Skip to content

Commit 7edda9f

Browse files
committed
Rename to ServerCustomPayloadEvent
1 parent bdb1aed commit 7edda9f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

api/src/main/java/org/geysermc/geyser/api/event/java/GeyserCustomPayloadEvent.java api/src/main/java/org/geysermc/geyser/api/event/java/ServerCustomPayloadEvent.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@
3535
* This event is not called when a built-in supported custom payload
3636
* such as floodgate is received.
3737
*/
38-
public class GeyserCustomPayloadEvent extends ConnectionEvent {
38+
public class ServerCustomPayloadEvent extends ConnectionEvent {
3939

4040
private final String channel;
4141
private final byte[] data;
4242

43-
public GeyserCustomPayloadEvent(@NonNull GeyserConnection connection, @NonNull String channel, byte[] data) {
43+
public ServerCustomPayloadEvent(@NonNull GeyserConnection connection, @NonNull String channel, byte[] data) {
4444
super(connection);
4545
this.channel = channel;
4646
this.data = data;

core/src/main/java/org/geysermc/geyser/translator/protocol/java/JavaCustomPayloadTranslator.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
import org.geysermc.floodgate.pluginmessage.PluginMessageChannels;
4343
import org.geysermc.geyser.GeyserImpl;
4444
import org.geysermc.geyser.GeyserLogger;
45-
import org.geysermc.geyser.api.event.java.GeyserCustomPayloadEvent;
45+
import org.geysermc.geyser.api.event.java.ServerCustomPayloadEvent;
4646
import org.geysermc.geyser.session.GeyserSession;
4747
import org.geysermc.geyser.translator.protocol.PacketTranslator;
4848
import org.geysermc.geyser.translator.protocol.Translator;
@@ -142,7 +142,7 @@ public void translate(GeyserSession session, ClientboundCustomPayloadPacket pack
142142
} else {
143143
var eventBus = session.getGeyser().eventBus();
144144

145-
var event = new GeyserCustomPayloadEvent(session, channel, packet.getData());
145+
var event = new ServerCustomPayloadEvent(session, channel, packet.getData());
146146
eventBus.fire(event);
147147
}
148148
}

0 commit comments

Comments
 (0)