Skip to content

Commit

Permalink
Add ability to move free challenges from start of the list to end of it.
Browse files Browse the repository at this point in the history
  • Loading branch information
BONNe committed Jan 20, 2019
1 parent 8143059 commit d902e4b
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/main/java/world/bentobox/challenges/Settings.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ public class Settings implements DataObject
@ConfigComment("Add enchanted glow to completed challenges")
private boolean addCompletedGlow = true;

@ConfigComment("")
@ConfigComment("This indicate if free challenges must be at the start (true) or at the end (false) of list.")
private boolean freeChallengesFirst = true;

@ConfigComment("")
@ConfigComment("This list stores GameModes in which Challenges addon should not work.")
@ConfigComment("To disable addon it is necessary to write its name in new line that starts with -. Example:")
Expand Down Expand Up @@ -109,6 +113,15 @@ public Set<String> getDisabledGameModes()
}


/**
* @return freeChallengesFirst value.
*/
public boolean isFreeChallengesFirst()
{
return this.freeChallengesFirst;
}


@Override
public void setUniqueId(String uniqueId)
{
Expand Down Expand Up @@ -159,4 +172,13 @@ public void setDisabledGameModes(Set<String> disabledGameModes)
{
this.disabledGameModes = disabledGameModes;
}


/**
* @param freeChallengesFirst new freeChallengesFirst value.
*/
public void setFreeChallengesFirst(boolean freeChallengesFirst)
{
this.freeChallengesFirst = freeChallengesFirst;
}
}

0 comments on commit d902e4b

Please sign in to comment.