From 270a3a66ce385790181a5c8296335933f2b631cc Mon Sep 17 00:00:00 2001 From: md_5 Date: Sun, 9 Oct 2016 14:00:04 +1100 Subject: [PATCH] SPIGOT-2717: /execute over RCON --- nms-patches/CommandExecute.patch | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/nms-patches/CommandExecute.patch b/nms-patches/CommandExecute.patch index 8651d1a239..582c9a25b0 100644 --- a/nms-patches/CommandExecute.patch +++ b/nms-patches/CommandExecute.patch @@ -23,7 +23,7 @@ public String getName() { return entity.getName(); } -@@ -100,25 +107,57 @@ +@@ -100,25 +107,59 @@ return entity.h(); } }; @@ -37,7 +37,9 @@ + ICommandListener listener = icommandlistener; + while (sender == null) { + if (listener instanceof DedicatedServer) { -+ sender = minecraftserver.server.getConsoleSender(); ++ sender = minecraftserver.console; ++ } else if (listener instanceof RemoteControlCommandListener) { ++ sender = minecraftserver.remoteConsole; + } else if (listener instanceof CommandBlockListenerAbstract) { + sender = ((CommandBlockListenerAbstract) listener).sender; + } else if (listener instanceof ProxyListener) {