3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-18 04:20:08 +01:00

SPIGOT-2717: /execute over RCON

Dieser Commit ist enthalten in:
md_5 2016-10-09 14:00:04 +11:00
Ursprung 1cce906e11
Commit 270a3a66ce

Datei anzeigen

@ -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) {