Skip to content

Commit

Permalink
chore(bukkit): first load info
Browse files Browse the repository at this point in the history
  • Loading branch information
HaHaWTH committed Oct 2, 2024
1 parent 8c3c197 commit 164422d
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,12 @@ public static boolean isEventMode() {
return isEventMode;
}
private MyScheduledTask violationResetTask;
private boolean isFirstLoad;
@Override
public void onLoad() {
LOGGER = getLogger();
instance = this;
isFirstLoad = !getDataFolder().exists();
settingsManager = SettingsManagerBuilder
.withYamlFile(CONFIG_FILE)
.configurationData(PluginSettings.class)
Expand All @@ -121,6 +123,9 @@ public void onLoad() {

@Override
public void onEnable() {
if (isFirstLoad) {
LOGGER.info("Downloading required libraries, this may take minutes to complete.");
}
LOGGER.info("Loading libraries...");
long startTime = System.currentTimeMillis();
libraryService.loadRequired();
Expand Down

0 comments on commit 164422d

Please sign in to comment.