Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-18 12:30:06 +01:00
SPIGOT-2134: Use the correct listener in CommandExecute
Dieser Commit ist enthalten in:
Ursprung
935f18b476
Commit
ed60c01794
@ -41,7 +41,7 @@
|
|||||||
+ } 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) {
|
||||||
+ listener = ((ProxyListener) icommandlistener).base; // Search deeper
|
+ listener = ((ProxyListener) listener).base; // Search deeper
|
||||||
+ } else if (VanillaCommandWrapper.lastSender != null) {
|
+ } else if (VanillaCommandWrapper.lastSender != null) {
|
||||||
+ sender = VanillaCommandWrapper.lastSender;
|
+ sender = VanillaCommandWrapper.lastSender;
|
||||||
+ } else if (listener.f() != null) {
|
+ } else if (listener.f() != null) {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren