diff --git a/protocol/src/main/java/net/md_5/bungee/protocol/packet/PluginMessage.java b/protocol/src/main/java/net/md_5/bungee/protocol/packet/PluginMessage.java index 8d4eacbc..a71cc710 100644 --- a/protocol/src/main/java/net/md_5/bungee/protocol/packet/PluginMessage.java +++ b/protocol/src/main/java/net/md_5/bungee/protocol/packet/PluginMessage.java @@ -45,7 +45,7 @@ public class PluginMessage extends DefinedPacket return tag; } - return "bungeecord:legacy/" + tag.toLowerCase( Locale.ROOT ); + return "legacy:" + tag.toLowerCase( Locale.ROOT ); } }; public static final Predicate SHOULD_RELAY = new Predicate() diff --git a/protocol/src/test/java/net/md_5/bungee/protocol/packet/PluginMessageTest.java b/protocol/src/test/java/net/md_5/bungee/protocol/packet/PluginMessageTest.java index 75442169..00a897a2 100644 --- a/protocol/src/test/java/net/md_5/bungee/protocol/packet/PluginMessageTest.java +++ b/protocol/src/test/java/net/md_5/bungee/protocol/packet/PluginMessageTest.java @@ -11,7 +11,7 @@ public class PluginMessageTest { Assert.assertEquals( "bungeecord:main", PluginMessage.MODERNISE.apply( "BungeeCord" ) ); Assert.assertEquals( "BungeeCord", PluginMessage.MODERNISE.apply( "bungeecord:main" ) ); - Assert.assertEquals( "bungeecord:legacy/foo", PluginMessage.MODERNISE.apply( "FoO" ) ); + Assert.assertEquals( "legacy:foo", PluginMessage.MODERNISE.apply( "FoO" ) ); Assert.assertEquals( "foo:bar", PluginMessage.MODERNISE.apply( "foo:bar" ) ); } }