mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-11 18:22:08 -07:00
Server Commands and Remote Commands are now Cancellable.
This commit is contained in:
14
nms-patches/RemoteControlSession.patch
Normal file
14
nms-patches/RemoteControlSession.patch
Normal file
@@ -0,0 +1,14 @@
|
||||
--- 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() + ")");
|
||||
}
|
Reference in New Issue
Block a user