File tree Expand file tree Collapse file tree 1 file changed +5
-14
lines changed
src/main/java/net/onelitefeather/antiredstoneclockremastered Expand file tree Collapse file tree 1 file changed +5
-14
lines changed Original file line number Diff line number Diff line change @@ -72,25 +72,21 @@ public final class AntiRedstoneClockRemastered extends JavaPlugin {
7272 public void onLoad () {
7373 saveDefaultConfig ();
7474 reloadConfig ();
75- // WorldGuard flag registration is handled during DI initialization
76- }
77-
78- @ Override
79- public void onEnable () {
80- // Initialize Guice injector
8175 injector = Guice .createInjector (
8276 new ServiceModule (this ),
8377 new ExternalSupportModule (this ),
8478 new CommandModule (),
8579 new ListenerModule ()
8680 );
87-
88- // Get services from injector
81+ this .worldGuardSupport = injector .getInstance (WorldGuardSupport .class );
82+ }
83+
84+ @ Override
85+ public void onEnable () {
8986 TranslationService translationService = injector .getInstance (TranslationService .class );
9087 this .redstoneClockService = injector .getInstance (RedstoneClockService .class );
9188 this .updateService = injector .getInstance (UpdateService .class );
9289 this .tps = injector .getInstance (CheckTPS .class );
93- this .worldGuardSupport = injector .getInstance (WorldGuardSupport .class );
9490 this .plotsquaredSupport = injector .getInstance (PlotsquaredSupport .class );
9591
9692 // Setup translations
@@ -227,11 +223,6 @@ private void registerEvents() {
227223 }
228224 }
229225
230- private void enableRedstoneClockService () {
231- // RedstoneClockService now provided via dependency injection
232- // using the interface-based architecture from the factory
233- }
234-
235226 private void enableTPSChecker () {
236227 this .tps .startCheck ();
237228 }
You can’t perform that action at this time.
0 commit comments