Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import com.google.inject.Stage;
import net.kyori.adventure.text.Component;
import net.kyori.adventure.text.minimessage.MiniMessage;
import net.onelitefeather.antiredstoneclockremastered.api.PlotsquaredSupport;
import net.onelitefeather.antiredstoneclockremastered.injection.MetricsModule;
import net.onelitefeather.antiredstoneclockremastered.injection.CommandFrameworkModule;
import net.onelitefeather.antiredstoneclockremastered.injection.CommandModule;
Expand All @@ -18,6 +19,7 @@
import org.bukkit.plugin.java.JavaPlugin;

import java.util.Arrays;
import java.util.Optional;

public final class AntiRedstoneClockRemastered extends JavaPlugin {

Expand Down Expand Up @@ -46,6 +48,7 @@ public void onLoad() {
public void onEnable() {
injector.getInstance(TranslationModule.class);
injector.getInstance(CheckTPS.class).startCheck();
Optional.ofNullable(injector.getInstance(PlotsquaredSupport.class)).ifPresent(PlotsquaredSupport::init);
donationInformation();
injector.getInstance(UpdateService.class).schedule();
injector.getInstance(UpdateService.class).run();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,6 @@ public PlotsquaredSupport providePlotsquaredSupport(AntiRedstoneClockRemastered
LOGGER.info("Thanks to hold your software up-to date <3");
support = new PlotSquaredModernSupport();
}

support.init();
return support;
}
}