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