mirror of
https://github.com/SpigotMC/BungeeCord.git
synced 2024-12-24 01:27:38 +01:00
Use shorter legacy prefix (doesn't really matter because no chance of such a plugin working)
This commit is contained in:
parent
d2cf50f9ee
commit
6fadb4250c
@ -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>()
|
||||
|
@ -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" ) );
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user