use of com.ichorpowered.guardian.event.GuardianStoppingEvent in project guardian by ichorpowered.
the class GamePluginFacet method shutdown.
public Boolean shutdown() {
PropertyInjector propertyInjector = this.plugin.getPropertyInjector();
propertyInjector.inject("state", GuardianState.STOPPING);
this.plugin.getEventBus().post(new GuardianStoppingEvent(this.plugin, Origin.source(this.plugin.getPluginContainer()).build()));
this.plugin.getSequenceTask().stop();
this.facetState = FacetState.STOP;
return true;
}
Aggregations