diff options
author | md_5 <git@md-5.net> | 2016-10-09 14:00:04 +1100 |
---|---|---|
committer | md_5 <git@md-5.net> | 2016-10-09 14:00:04 +1100 |
commit | 270a3a66ce385790181a5c8296335933f2b631cc (patch) | |
tree | 6cc3d24174bae6a9b73b9aa72046a26e666cc14f /nms-patches | |
parent | 1cce906e11b61a10236e103238183ba95d82de59 (diff) | |
download | craftbukkit-270a3a66ce385790181a5c8296335933f2b631cc.tar craftbukkit-270a3a66ce385790181a5c8296335933f2b631cc.tar.gz craftbukkit-270a3a66ce385790181a5c8296335933f2b631cc.tar.lz craftbukkit-270a3a66ce385790181a5c8296335933f2b631cc.tar.xz craftbukkit-270a3a66ce385790181a5c8296335933f2b631cc.zip |
SPIGOT-2717: /execute over RCON
Diffstat (limited to 'nms-patches')
-rw-r--r-- | nms-patches/CommandExecute.patch | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/nms-patches/CommandExecute.patch b/nms-patches/CommandExecute.patch index 8651d1a2..582c9a25 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) { |