diff options
author | Shane Freeder <[email protected]> | 2019-10-18 17:40:48 +0100 |
---|---|---|
committer | Shane Freeder <[email protected]> | 2019-10-18 17:40:48 +0100 |
commit | cc0aeb737a80cdcacb3115bfc59b23f810c661db (patch) | |
tree | 6334b1213804523362a5cecc0bda068d64135ab7 | |
parent | 0f2ea04c1c14d386bd9b9285a6a529266c43c8e6 (diff) | |
download | Paper-cc0aeb737a80cdcacb3115bfc59b23f810c661db.tar.gz Paper-cc0aeb737a80cdcacb3115bfc59b23f810c661db.zip |
Doubles the custom payload size limit imposed by bukkit, also creates a system
property to allow customizing the size `paper.maxCustomChannelName`
-rw-r--r-- | Spigot-API-Patches/0186-Increase-custom-payload-channel-message-size.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Spigot-API-Patches/0186-Increase-custom-payload-channel-message-size.patch b/Spigot-API-Patches/0186-Increase-custom-payload-channel-message-size.patch new file mode 100644 index 0000000000..e556e86376 --- /dev/null +++ b/Spigot-API-Patches/0186-Increase-custom-payload-channel-message-size.patch @@ -0,0 +1,24 @@ +From fe4413704ee328c31901a2083a7d812d02bef2e0 Mon Sep 17 00:00:00 2001 +From: Shane Freeder <[email protected]> +Date: Fri, 18 Oct 2019 17:39:05 +0100 +Subject: [PATCH] Increase custom payload channel message size + +Doubles the custom payload size limit imposed by bukkit, also creates a system +property to allow customizing the size `paper.maxCustomChannelName` + +diff --git a/src/main/java/org/bukkit/plugin/messaging/Messenger.java b/src/main/java/org/bukkit/plugin/messaging/Messenger.java +index ea9b525f..682c7718 100644 +--- a/src/main/java/org/bukkit/plugin/messaging/Messenger.java ++++ b/src/main/java/org/bukkit/plugin/messaging/Messenger.java +@@ -24,7 +24,7 @@ public interface Messenger { + /** + * Represents the largest size that a Plugin Channel may be. + */ +- public static final int MAX_CHANNEL_SIZE = 32; ++ public static final int MAX_CHANNEL_SIZE = Integer.getInteger("paper.maxCustomChannelName", 64); // Paper + + /** + * Checks if the specified channel is a reserved name. +-- +2.23.0 + |