File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
src/main/java/net/onelitefeather/antiredstoneclockremastered Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 55import com .google .inject .Stage ;
66import net .kyori .adventure .text .Component ;
77import net .kyori .adventure .text .minimessage .MiniMessage ;
8+ import net .onelitefeather .antiredstoneclockremastered .api .PlotsquaredSupport ;
89import net .onelitefeather .antiredstoneclockremastered .injection .MetricsModule ;
910import net .onelitefeather .antiredstoneclockremastered .injection .CommandFrameworkModule ;
1011import net .onelitefeather .antiredstoneclockremastered .injection .CommandModule ;
1819import org .bukkit .plugin .java .JavaPlugin ;
1920
2021import java .util .Arrays ;
22+ import java .util .Optional ;
2123
2224public final class AntiRedstoneClockRemastered extends JavaPlugin {
2325
@@ -46,6 +48,7 @@ public void onLoad() {
4648 public void onEnable () {
4749 injector .getInstance (TranslationModule .class );
4850 injector .getInstance (CheckTPS .class ).startCheck ();
51+ Optional .ofNullable (injector .getInstance (PlotsquaredSupport .class )).ifPresent (PlotsquaredSupport ::init );
4952 donationInformation ();
5053 injector .getInstance (UpdateService .class ).schedule ();
5154 injector .getInstance (UpdateService .class ).run ();
Original file line number Diff line number Diff line change @@ -88,8 +88,6 @@ public PlotsquaredSupport providePlotsquaredSupport(AntiRedstoneClockRemastered
8888 LOGGER .info ("Thanks to hold your software up-to date <3" );
8989 support = new PlotSquaredModernSupport ();
9090 }
91-
92- support .init ();
9391 return support ;
9492 }
9593}
You can’t perform that action at this time.
0 commit comments