Skip to content

Commit 62d442b

Browse files
committed
Make SimpleTextManager loading after configuration loaded
1 parent 575731b commit 62d442b

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/main/java/org/maxgamer/quickshop/QuickShop.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -584,14 +584,15 @@ public final void onLoad() {
584584
instance = this;
585585
Util.setPlugin(this);
586586
this.onLoadCalled = true;
587-
getLogger().info("QuickShop " + getFork() + " - Early boot step - Booting up...");
587+
getLogger().info("QuickShop " + getFork() + " - Early boot step - Booting up");
588588
//BEWARE THESE ONLY RUN ONCE
589-
this.textManager = new SimpleTextManager(this);
590589
this.buildInfo = new BuildInfo(getResource("BUILDINFO"));
591590
runtimeCheck(EnvCheckEntry.Stage.ON_LOAD);
592591
getLogger().info("Reading the configuration...");
593592
this.initConfiguration();
594593
this.bootError = null;
594+
getLogger().info("Loading messages translation over-the-air (this may need take a while).");
595+
this.textManager = new SimpleTextManager(this);
595596
getLogger().info("Loading up integration modules.");
596597
this.integrationHelper = new SimpleIntegrationManager(this);
597598
this.integrationHelper.callIntegrationsLoad(IntegrateStage.onLoadBegin);
@@ -603,7 +604,7 @@ public final void onLoad() {
603604
}
604605
}
605606
this.integrationHelper.callIntegrationsLoad(IntegrateStage.onLoadAfter);
606-
getLogger().info("QuickShop " + getFork() + " - Early boot step - Booted up...");
607+
getLogger().info("QuickShop " + getFork() + " - Early boot step - Complete");
607608
}
608609

609610
@Override

src/main/java/org/maxgamer/quickshop/localization/text/SimpleTextManager.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ public class SimpleTextManager implements TextManager, Reloadable {
6363
public SimpleTextManager(QuickShop plugin) {
6464
this.plugin = plugin;
6565
plugin.getReloadManager().register(this);
66+
plugin.getLogger().info("Translation over-the-air platform selected: Crowdin");
6667
this.distribution = new CrowdinOTA(plugin);
6768
load();
6869

0 commit comments

Comments
 (0)