Rewrite MessagingService message encoding, conform to new plugin message channel requirements

* This change isn't backwards compatible with previous builds, this version (& onwards) won't be able to "communicate" with old versions, and vice versa.

* MC 1.13 requires plugin message channel names to be namespaced, so 'lpuc' has been changed to 'luckperms:update'

* The channel names for Redis/Lily types have also changed, I've been wanting to change the encoded format to something a bit saner for a while, and this seemed like a good time. Changing the channel names a) keeps things consistent and b) means I don't have to worry about old versions interpreting the new format.
This commit is contained in:
Luck
2018-07-15 22:42:37 -07:00
Unverified
parent 08869da96e
commit 07469599bc
12 changed files with 236 additions and 233 deletions
@@ -48,7 +48,7 @@ import javax.annotation.Nonnull;
* An implementation of {@link Messenger} using the plugin messaging channels.
*/
public class BungeeMessenger implements Messenger, RawDataListener {
private static final String CHANNEL = "lpuc";
private static final String CHANNEL = "luckperms:update";
private final LPSpongePlugin plugin;
private final IncomingMessageConsumer consumer;