Compensate for sendMessage losing its 'unintended splitting on existing newlines'-feature
By: Erik Broes <erikbroes@grum.nl>
This commit is contained in:
parent
56aa606e2b
commit
b191786a1b
1 changed files with 3 additions and 1 deletions
|
@ -38,7 +38,9 @@ public final class PluginCommand extends Command {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!success && usageMessage.length() > 0) {
|
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;
|
return success;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue