Search in sources :

Example 1 with PlanVelocityEnableEvent

use of com.djrapitops.plan.api.events.PlanVelocityEnableEvent in project Plan by plan-player-analytics.

the class VelocityListenerSystem method callEnableEvent.

@Override
public void callEnableEvent(PlanPlugin plugin) {
    boolean isEnabled = plugin.isSystemEnabled();
    PlanVelocityEnableEvent event = new PlanVelocityEnableEvent(isEnabled);
    ((PlanVelocity) plugin).getProxy().getEventManager().fireAndForget(event);
    CapabilitySvc.notifyAboutEnable(isEnabled);
}
Also used : PlanVelocityEnableEvent(com.djrapitops.plan.api.events.PlanVelocityEnableEvent) PlanVelocity(com.djrapitops.plan.PlanVelocity)

Aggregations

PlanVelocity (com.djrapitops.plan.PlanVelocity)1 PlanVelocityEnableEvent (com.djrapitops.plan.api.events.PlanVelocityEnableEvent)1