We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0da38c commit 4a0f535Copy full SHA for 4a0f535
paper-server/src/main/java/com/destroystokyo/paper/console/PaperConsole.java
@@ -42,7 +42,15 @@ protected boolean isRunning() {
42
43
@Override
44
protected void runCommand(String command) {
45
- this.server.handleConsoleInput(command, this.server.createCommandSourceStack());
+ // terminals interpret pressing [enter] and pasting a multi-line string differently,
46
+ // the latter makes the line reader read it as a single line - and we don't want that
47
+ // https://github.com/PaperMC/Paper/issues/13006
48
+ for (String line : command.split("\n")) {
49
+ if (line.isEmpty()) {
50
+ continue;
51
+ }
52
+ this.server.handleConsoleInput(line, this.server.createCommandSourceStack());
53
54
}
55
56
0 commit comments