Skip to content

Commit

Permalink
feat: continue to load for first running
Browse files Browse the repository at this point in the history
This let user can use /swmhook add command to add world in-game.
  • Loading branch information
HappyAreaBean committed Jan 27, 2023
1 parent a9dedfb commit 1dd61c0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/main/java/cc/happyareabean/swmhook/SWMHook.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,11 @@ public void onEnable() {

if (worldsList.getWorlds().size() == 1) {
if (worldsList.getWorlds().get(0).getTemplateName().equalsIgnoreCase("default")) {
log("This look like is your first time running SWMHook");
log("SWMHook will not load anything until you configure your worlds.yml properly!");
Bukkit.getPluginManager().disablePlugin(this);
return;
log("====================================================================");
log("Look like this is your first time running SWMHook.");
log("SWMHook will not load anything until you configure your 'worlds.yml' properly!");
log("You can get started by editing 'worlds.yml' or using /swmhook add to add a world!");
log("====================================================================");
}
}

Expand Down

0 comments on commit 1dd61c0

Please sign in to comment.