SPIGOT-3717: Fix some RCON commands

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot 2017-12-26 07:28:56 +11:00
parent 02b4af5356
commit 8560cbd06a

View file

@ -184,7 +184,7 @@
+ if (listener instanceof DedicatedServer) { + if (listener instanceof DedicatedServer) {
+ sender = ((DedicatedServer) listener).console; + sender = ((DedicatedServer) listener).console;
+ } else if (listener instanceof RemoteControlCommandListener) { + } else if (listener instanceof RemoteControlCommandListener) {
+ sender = ((DedicatedServer) listener).remoteConsole; + sender = ((RemoteControlCommandListener) listener).C_().remoteConsole;
+ } else if (listener instanceof CommandBlockListenerAbstract) { + } else if (listener instanceof CommandBlockListenerAbstract) {
+ sender = ((CommandBlockListenerAbstract) listener).sender; + sender = ((CommandBlockListenerAbstract) listener).sender;
+ } else if (listener instanceof CustomFunctionData.CustomFunctionListener) { + } else if (listener instanceof CustomFunctionData.CustomFunctionListener) {