mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-26 02:47:44 +01:00
SPIGOT-3717: Fix some RCON commands
This commit is contained in:
parent
45c83860e1
commit
8c37e2ebda
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user