Search in sources :

Example 1 with PlanBungeeEnableEvent

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

the class BungeeListenerSystem method callEnableEvent.

@Override
public void callEnableEvent(PlanPlugin plugin) {
    boolean isEnabled = plugin.isSystemEnabled();
    PlanBungeeEnableEvent event = new PlanBungeeEnableEvent(isEnabled);
    ((PlanBungee) plugin).getProxy().getPluginManager().callEvent(event);
    CapabilitySvc.notifyAboutEnable(isEnabled);
}
Also used : PlanBungee(com.djrapitops.plan.PlanBungee) PlanBungeeEnableEvent(com.djrapitops.plan.api.events.PlanBungeeEnableEvent)

Aggregations

PlanBungee (com.djrapitops.plan.PlanBungee)1 PlanBungeeEnableEvent (com.djrapitops.plan.api.events.PlanBungeeEnableEvent)1