Use shorter legacy prefix (doesn't really matter because no chance of such a plugin working)

This commit is contained in:
md_5 2018-07-23 14:29:05 +10:00
parent d2cf50f9ee
commit 6fadb4250c
2 changed files with 2 additions and 2 deletions

View File

@ -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<PluginMessage> SHOULD_RELAY = new Predicate<PluginMessage>()

View File

@ -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" ) );
}
}