mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-06 07:02:18 -07:00
Don't process empty rcon commands (#12188)
This commit is contained in:
@@ -361,7 +361,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -515,14 +_,52 @@
|
@@ -515,14 +_,54 @@
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getPluginNames() {
|
public String getPluginNames() {
|
||||||
@@ -402,6 +402,8 @@
|
|||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
+ public String runCommand(RconConsoleSource rconConsoleSource, String s) {
|
+ public String runCommand(RconConsoleSource rconConsoleSource, String s) {
|
||||||
|
+ if (s.isBlank()) return ""; // Paper - Do not process empty rcon commands
|
||||||
|
+
|
||||||
+ rconConsoleSource.prepareForCommand();
|
+ rconConsoleSource.prepareForCommand();
|
||||||
+ this.executeBlocking(() -> {
|
+ this.executeBlocking(() -> {
|
||||||
+ CommandSourceStack wrapper = rconConsoleSource.createCommandSourceStack();
|
+ CommandSourceStack wrapper = rconConsoleSource.createCommandSourceStack();
|
||||||
|
Reference in New Issue
Block a user