Set true custom payload channel size limit

This fixes compatibility with some mods that are sending very long channel names. Also gives developers the ability to send longer channel names.
This commit is contained in:
Shane Freeder 2019-10-18 17:39:05 +01:00
parent 9fc26a2efb
commit 2cee31307e

View file

@ -24,7 +24,7 @@ public interface Messenger {
/**
* Represents the largest size that a Plugin Channel may be.
*/
public static final int MAX_CHANNEL_SIZE = 64;
public static final int MAX_CHANNEL_SIZE = Integer.getInteger("paper.maxCustomChannelName", java.lang.Short.MAX_VALUE); // Paper - set true max channel size
/**
* Checks if the specified channel is a reserved name.