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);
}
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();
}
Aggregations