You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Medium changes, added player info and changelog adaption
- Added `chatBoxMessageSize` configuration option to limit message length.
- Added checks in Chat Box methods to prevent messages exceeding the limit.
- Included UUID and name data in Player Detector `morePlayerInformation`.
- Adjusted default chemical filter count to 1000 mB.
Copy file name to clipboardExpand all lines: src/main/java/de/srendi/advancedperipherals/common/addons/computercraft/peripheral/PlayerDetectorPeripheral.java
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -259,6 +259,8 @@ public final Map<String, Object> getPlayerPos(IArguments arguments) throws LuaEx
259
259
info.put("y", Math.floor(y * unit) / unit);
260
260
info.put("z", Math.floor(z * unit) / unit);
261
261
if (APConfig.PERIPHERALS_CONFIG.morePlayerInformation.get()) {
chatBoxMaxRange = builder.comment("Defines the maximal range of the chat box in blocks. -1 for infinite. If the range is not -1, players in other dimensions won't able to receive messages").defineInRange("chatBoxMaxRange", -1, -1, 30000000);
150
+
chatBoxMessageSize = builder.comment("Defines the maximal number of characters in a message. Depending on the modpack and server, too large messages can't unexpectedly disconnect players").defineInRange("chatBoxMessageSize", 1024, -0, 8192);
149
151
chatBoxMultiDimensional = builder.comment("If true, the chat box is able to send messages to other dimensions than its own").define("chatBoxMultiDimensional", true);
150
152
chatBoxPreventRunCommand = builder.comment("If true, the chat box cannot use 'run_command' action").define("chatBoxPreventRunCommand", false);
151
153
chatBoxWrapCommand = builder.comment("If true, the chat box will wrap and execute 'run_command' or 'suggest_command' action with zero permission, in order to prevent operators accidently run dangerous commands.").define("chatBoxWrapCommand", true);
0 commit comments