From 7edda9f3da9b8f7ebe827cf5617b64fba208f1a3 Mon Sep 17 00:00:00 2001 From: BlueTree242 Date: Mon, 22 Apr 2024 10:39:34 +0200 Subject: [PATCH] Rename to ServerCustomPayloadEvent --- ...rCustomPayloadEvent.java => ServerCustomPayloadEvent.java} | 4 ++-- .../translator/protocol/java/JavaCustomPayloadTranslator.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) rename api/src/main/java/org/geysermc/geyser/api/event/java/{GeyserCustomPayloadEvent.java => ServerCustomPayloadEvent.java} (94%) diff --git a/api/src/main/java/org/geysermc/geyser/api/event/java/GeyserCustomPayloadEvent.java b/api/src/main/java/org/geysermc/geyser/api/event/java/ServerCustomPayloadEvent.java similarity index 94% rename from api/src/main/java/org/geysermc/geyser/api/event/java/GeyserCustomPayloadEvent.java rename to api/src/main/java/org/geysermc/geyser/api/event/java/ServerCustomPayloadEvent.java index 92f9899c7..bd87e3819 100644 --- a/api/src/main/java/org/geysermc/geyser/api/event/java/GeyserCustomPayloadEvent.java +++ b/api/src/main/java/org/geysermc/geyser/api/event/java/ServerCustomPayloadEvent.java @@ -35,12 +35,12 @@ import org.geysermc.geyser.api.event.connection.ConnectionEvent; * This event is not called when a built-in supported custom payload * such as floodgate is received. */ -public class GeyserCustomPayloadEvent extends ConnectionEvent { +public class ServerCustomPayloadEvent extends ConnectionEvent { private final String channel; private final byte[] data; - public GeyserCustomPayloadEvent(@NonNull GeyserConnection connection, @NonNull String channel, byte[] data) { + public ServerCustomPayloadEvent(@NonNull GeyserConnection connection, @NonNull String channel, byte[] data) { super(connection); this.channel = channel; this.data = data; diff --git a/core/src/main/java/org/geysermc/geyser/translator/protocol/java/JavaCustomPayloadTranslator.java b/core/src/main/java/org/geysermc/geyser/translator/protocol/java/JavaCustomPayloadTranslator.java index a3fddb211..59054bee7 100644 --- a/core/src/main/java/org/geysermc/geyser/translator/protocol/java/JavaCustomPayloadTranslator.java +++ b/core/src/main/java/org/geysermc/geyser/translator/protocol/java/JavaCustomPayloadTranslator.java @@ -42,7 +42,7 @@ import org.geysermc.erosion.packet.geyserbound.GeyserboundPacket; import org.geysermc.floodgate.pluginmessage.PluginMessageChannels; import org.geysermc.geyser.GeyserImpl; import org.geysermc.geyser.GeyserLogger; -import org.geysermc.geyser.api.event.java.GeyserCustomPayloadEvent; +import org.geysermc.geyser.api.event.java.ServerCustomPayloadEvent; import org.geysermc.geyser.session.GeyserSession; import org.geysermc.geyser.translator.protocol.PacketTranslator; import org.geysermc.geyser.translator.protocol.Translator; @@ -142,7 +142,7 @@ public class JavaCustomPayloadTranslator extends PacketTranslator