2020-04-27 09:34:45 +02:00
|
|
|
From c936544e4c982dd62d8d17df2cee9e194963ba0b Mon Sep 17 00:00:00 2001
|
2019-10-18 18:40:48 +02:00
|
|
|
From: Shane Freeder <theboyetronic@gmail.com>
|
|
|
|
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
|
2020-04-27 09:34:45 +02:00
|
|
|
index 9d2c68c8..682c7718 100644
|
2019-10-18 18:40:48 +02:00
|
|
|
--- 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.
|
|
|
|
*/
|
2020-04-27 09:34:45 +02:00
|
|
|
- public static final int MAX_CHANNEL_SIZE = 64;
|
2019-10-18 18:40:48 +02:00
|
|
|
+ public static final int MAX_CHANNEL_SIZE = Integer.getInteger("paper.maxCustomChannelName", 64); // Paper
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Checks if the specified channel is a reserved name.
|
|
|
|
--
|
2020-04-27 09:34:45 +02:00
|
|
|
2.26.2
|
2019-10-18 18:40:48 +02:00
|
|
|
|