Search in sources :

Example 1 with PlanBungee

use of com.djrapitops.plan.PlanBungee 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)

Example 2 with PlanBungee

use of com.djrapitops.plan.PlanBungee in project Plan by plan-player-analytics.

the class BungeeMockComponent method getPlanSystem.

public PlanSystem getPlanSystem() {
    if (component == null) {
        PlanBungee planMock = getPlanMock();
        component = DaggerPlanBungeeComponent.builder().plan(planMock).abstractionLayer(new TestPlatformAbstractionLayer(this.planMock)).build();
    }
    return component.system();
}
Also used : PlanBungee(com.djrapitops.plan.PlanBungee)

Aggregations

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