mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-01 17:01:56 +01:00
Doubles the custom payload size limit imposed by bukkit, also creates a system
property to allow customizing the size `paper.maxCustomChannelName`
This commit is contained in:
parent
546dddce10
commit
905ce4d1d9
1 changed files with 22 additions and 0 deletions
|
@ -0,0 +1,22 @@
|
|||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
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
|
||||
index ea9b525f..682c7718 100644
|
||||
--- a/src/main/java/org/bukkit/plugin/messaging/Messenger.java
|
||||
+++ b/src/main/java/org/bukkit/plugin/messaging/Messenger.java
|
||||
@@ -0,0 +0,0 @@ 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.
|
||||
--
|
Loading…
Reference in a new issue