Skip to content

Commit

Permalink
Add listener service
Browse files Browse the repository at this point in the history
  • Loading branch information
oh-noey committed Sep 1, 2024
1 parent 878884e commit a965688
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import net.countercraft.movecraft.features.fading.WreckManager;
import net.countercraft.movecraft.features.status.StatusManager;
import net.countercraft.movecraft.features.status.StatusSign;
import net.countercraft.movecraft.lifecycle.ListenerLifecycleService;
import net.countercraft.movecraft.lifecycle.ServiceHost;
import net.countercraft.movecraft.lifecycle.WorkerServiceHost;
import net.countercraft.movecraft.listener.*;
Expand Down Expand Up @@ -142,6 +143,7 @@ public void onEnable() {

// Lifecycle management
injector.register(WorkerServiceHost.class);
injector.register(ListenerLifecycleService.class);
injector.getInstance(ServiceHost.class).startAll();

logger.info("[V %s] has been enabled.".formatted(getDescription().getVersion()));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,4 @@ public void scheduleUpdates(@NotNull UpdateCommand... updates){
public void scheduleUpdates(@NotNull Collection<UpdateCommand> updates){
this.updates.addAll(updates);
}

private static class MapUpdateManagerHolder {
private static final MapUpdateManager INSTANCE = new MapUpdateManager();
}

}

0 comments on commit a965688

Please sign in to comment.