geforkt von Mirrors/Velocity
Correctly register Event handlers in the registeredHandlersByPlugin map
Dieser Commit ist enthalten in:
Ursprung
3ec67a7d4d
Commit
21a79d8142
@ -97,6 +97,8 @@ public class VelocityEventManager implements EventManager {
|
|||||||
Preconditions.checkNotNull(eventClass, "eventClass");
|
Preconditions.checkNotNull(eventClass, "eventClass");
|
||||||
Preconditions.checkNotNull(postOrder, "postOrder");
|
Preconditions.checkNotNull(postOrder, "postOrder");
|
||||||
Preconditions.checkNotNull(handler, "listener");
|
Preconditions.checkNotNull(handler, "listener");
|
||||||
|
|
||||||
|
registeredHandlersByPlugin.put(plugin, handler);
|
||||||
bus.register(eventClass, new KyoriToVelocityHandler<>(handler, postOrder));
|
bus.register(eventClass, new KyoriToVelocityHandler<>(handler, postOrder));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren