Search in sources :

Example 1 with PlanVelocity

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

Example 2 with PlanVelocity

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

the class VelocityMockComponent method getPlanSystem.

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

Aggregations

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