diff --git a/spigot/src/main/java/net/azisaba/azipluginmessaging/spigot/entity/PlayerImpl.java b/spigot/src/main/java/net/azisaba/azipluginmessaging/spigot/entity/PlayerImpl.java index fc70d51..2b5a79e 100644 --- a/spigot/src/main/java/net/azisaba/azipluginmessaging/spigot/entity/PlayerImpl.java +++ b/spigot/src/main/java/net/azisaba/azipluginmessaging/spigot/entity/PlayerImpl.java @@ -123,7 +123,7 @@ public static void sendPacketFromPlayer(@NotNull org.bukkit.entity.Player player try { player.sendPluginMessage(SpigotPlugin.plugin, Protocol.CHANNEL_ID, data); } catch (IllegalArgumentException e) { - if (!success) throw new RuntimeException("Both Protocol.LEGACY_CHANNEL_ID and Protocol.CHANNEL_ID failed to send packet", e); + if (!success) throw new RuntimeException("Failed to send packet", e); } } }