mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-23 19:15:32 +01:00
SPIGOT-2717: /execute over RCON
This commit is contained in:
parent
1cce906e11
commit
270a3a66ce
@ -23,7 +23,7 @@
|
|||||||
public String getName() {
|
public String getName() {
|
||||||
return entity.getName();
|
return entity.getName();
|
||||||
}
|
}
|
||||||
@@ -100,25 +107,57 @@
|
@@ -100,25 +107,59 @@
|
||||||
return entity.h();
|
return entity.h();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@ -37,7 +37,9 @@
|
|||||||
+ ICommandListener listener = icommandlistener;
|
+ ICommandListener listener = icommandlistener;
|
||||||
+ while (sender == null) {
|
+ while (sender == null) {
|
||||||
+ if (listener instanceof DedicatedServer) {
|
+ if (listener instanceof DedicatedServer) {
|
||||||
+ sender = minecraftserver.server.getConsoleSender();
|
+ sender = minecraftserver.console;
|
||||||
|
+ } else if (listener instanceof RemoteControlCommandListener) {
|
||||||
|
+ sender = minecraftserver.remoteConsole;
|
||||||
+ } else if (listener instanceof CommandBlockListenerAbstract) {
|
+ } else if (listener instanceof CommandBlockListenerAbstract) {
|
||||||
+ sender = ((CommandBlockListenerAbstract) listener).sender;
|
+ sender = ((CommandBlockListenerAbstract) listener).sender;
|
||||||
+ } else if (listener instanceof ProxyListener) {
|
+ } else if (listener instanceof ProxyListener) {
|
||||||
|
Loading…
Reference in New Issue
Block a user