mirror of
https://github.com/PaperMC/Paper.git
synced 2025-04-01 04:01:45 +02:00
Don't process empty rcon commands (#12188)
This commit is contained in:
parent
b00875f86d
commit
ca2610904b
1 changed files with 3 additions and 1 deletions
|
@ -361,7 +361,7 @@
|
|||
}
|
||||
|
||||
@Override
|
||||
@@ -515,14 +_,52 @@
|
||||
@@ -515,14 +_,54 @@
|
||||
|
||||
@Override
|
||||
public String getPluginNames() {
|
||||
|
@ -402,6 +402,8 @@
|
|||
+ }
|
||||
+
|
||||
+ public String runCommand(RconConsoleSource rconConsoleSource, String s) {
|
||||
+ if (s.isBlank()) return ""; // Paper - Do not process empty rcon commands
|
||||
+
|
||||
+ rconConsoleSource.prepareForCommand();
|
||||
+ this.executeBlocking(() -> {
|
||||
+ CommandSourceStack wrapper = rconConsoleSource.createCommandSourceStack();
|
||||
|
|
Loading…
Add table
Reference in a new issue