mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-14 19:55:52 -07:00
Compensate for sendMessage losing its 'unintended splitting on existing newlines'-feature
By: Erik Broes <erikbroes@grum.nl>
This commit is contained in:
@@ -38,7 +38,9 @@ public final class PluginCommand extends Command {
|
||||
}
|
||||
|
||||
if (!success && usageMessage.length() > 0) {
|
||||
sender.sendMessage(usageMessage.replace("<command>", commandLabel));
|
||||
for (String line: usageMessage.replace("<command>", commandLabel).split("\n")) {
|
||||
sender.sendMessage( line );
|
||||
}
|
||||
}
|
||||
|
||||
return success;
|
||||
|
Reference in New Issue
Block a user