Skip to content

Commit

Permalink
Implement proper Config getters in ExpandedCompositeCommand class.
Browse files Browse the repository at this point in the history
  • Loading branch information
BONNe committed Jan 2, 2019
1 parent 6261309 commit 14b02e9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ protected UpdateMode getUpdateMode(List<String> args, int index, User user)
}
else
{
return Utils.parseStringToUpdateMode(this.addon.getConfig().getString("defaulttype"));
return this.addon.getSettings().getDefaultMode();
}
}

Expand Down Expand Up @@ -123,7 +123,7 @@ protected int getUpdateRange(List<String> args, int index, User user)
}
else
{
return this.addon.getConfig().getInt("defaultsize", 1);
return this.addon.getSettings().getDefaultSize();
}
}

Expand Down

0 comments on commit 14b02e9

Please sign in to comment.