Skip to content

Commit

Permalink
I guess defaults are removed when checking config or something?
Browse files Browse the repository at this point in the history
  • Loading branch information
RoboMWM committed Mar 17, 2018
1 parent d939065 commit 20f45f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/robomwm/customemotes/CustomEmotes.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ public void onEnable()
for (String emoteCode : emoteYaml.getKeys(false))
for (String emote : emoteYaml.getStringList(emoteCode))
put(emoteCode, emote);
getConfig().addDefault("promptToAdd", true);
if (getConfig().getBoolean("firstrun", true))
{
getConfig().set("firstrun", false);
Expand Down Expand Up @@ -113,6 +112,7 @@ public void onEnable()
put(":(", "☹");
saveEmotes();
}
getConfig().addDefault("promptToAdd", true);
getConfig().options().copyDefaults();
saveConfig();
getServer().getPluginManager().registerEvents(this, this);
Expand Down

0 comments on commit 20f45f7

Please sign in to comment.