Skip to content

Commit

Permalink
Order is very important
Browse files Browse the repository at this point in the history
  • Loading branch information
DSH105 committed Feb 19, 2014
1 parent 2bee09d commit b3be4e7
Showing 1 changed file with 19 additions and 21 deletions.
40 changes: 19 additions & 21 deletions src/main/java/io/github/dsh105/echopet/config/ConfigOptions.java
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,25 @@ public void setDefaults() {
set("sql.username", "none");
set("sql.password", "none");

set("petNames.My Pet", "allow");

set("autoSave", true, "If true, EchoPet will autosave all pet data to prevent data", "loss in the event of a server crash.");
set("autoSaveTimer", 180, "Interval between autosave of pet data (in seconds).");
set("loadSavedPets", true, "Auto-load pets from last session");
set("multiworldLoadOverride", true, "When true, if -loadSavedPets-", "is set to false, Pets will", "still be loaded when", "players switch worlds");

set("sendLoadMessage", true, "Send message that pet was loaded if -loadSavedPets- is true");
set("sendForceMessage", true, "For all data values forced, EchoPet will notify the player", "(if set to true).");

set("worlds." + Bukkit.getWorlds().get(0).getName(), true);
set("worlds.enableByDefault", true);

if (config.getConfigurationSection("worldguard.regions") == null) {
set("worldguard.regions.echopet", true);
}
set("worldguard.regions.allowByDefault", true);
set("worldguard.regionEnterCheck", true);

set("petSelector.allowDrop", true);
set("petSelector.giveOnJoin.enable", false);
set("petSelector.giveOnJoin.usePerm", false);
Expand All @@ -112,27 +131,6 @@ public void setDefaults() {
}
}

set("petNames.My Pet", "allow");

set("autoSave", true, "If true, EchoPet will autosave all pet data to prevent data", "loss in the event of a server crash.");
set("autoSaveTimer", 180, "Interval between autosave of pet data (in seconds).");
set("loadSavedPets", true, "Auto-load pets from last session");
set("multiworldLoadOverride", true, "When true, if -loadSavedPets-", "is set to false, Pets will", "still be loaded when", "players switch worlds");

set("sendLoadMessage", true, "Send message that pet was loaded if -loadSavedPets- is true");
set("sendForceMessage", true, "For all data values forced, EchoPet will notify the player", "(if set to true).");

set("worlds." + Bukkit.getWorlds().get(0).getName(), true);
set("worlds.enableByDefault", true);

if (config.getConfigurationSection("worldguard.regions") == null) {
set("worldguard.regions.echopet", true);
}
set("worldguard.regions.allowByDefault", true);
set("worldguard.regionEnterCheck", true);



for (PetType petType : PetType.values()) {
set("pets." + petType.toString().toLowerCase().replace("_", " ") + ".enable", true);
set("pets." + petType.toString().toLowerCase().replace("_", " ") + ".tagVisible", true);
Expand Down

0 comments on commit b3be4e7

Please sign in to comment.