mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-08 11:24:11 +01:00
15 lines
774 B
Diff
15 lines
774 B
Diff
|
--- a/net/minecraft/server/RemoteControlSession.java
|
||
|
+++ b/net/minecraft/server/RemoteControlSession.java
|
||
|
@@ -62,7 +62,10 @@
|
||
|
String s = StatusChallengeUtils.a(this.k, k, i);
|
||
|
|
||
|
try {
|
||
|
- this.a(l, this.b.executeRemoteCommand(s));
|
||
|
+ // CraftBukkit start
|
||
|
+ String result = this.b.executeRemoteCommand(s);
|
||
|
+ if (result != null) this.a(l, result);
|
||
|
+ // CraftBukkit end
|
||
|
} catch (Exception exception) {
|
||
|
this.a(l, "Error executing: " + s + " (" + exception.getMessage() + ")");
|
||
|
}
|