forked from LogBlock/LogBlock
Split long chat lines (for example from command blocks)
This commit is contained in:
@ -384,6 +384,10 @@ public class Consumer extends Thread {
|
|||||||
if (hiddenPlayers.contains(player.getName().toLowerCase())) {
|
if (hiddenPlayers.contains(player.getName().toLowerCase())) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
while(message.length() > 256) {
|
||||||
|
addQueueLast(new ChatRow(player, message.substring(0, 256)));
|
||||||
|
message = message.substring(256);
|
||||||
|
}
|
||||||
addQueueLast(new ChatRow(player, message));
|
addQueueLast(new ChatRow(player, message));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user