mirror of
https://github.com/BentoBoxWorld/Challenges.git
synced 2025-01-06 08:18:42 +01:00
Add ability to move free challenges from start of the list to end of it.
This commit is contained in:
parent
8143059e17
commit
d902e4b615
@ -37,6 +37,10 @@ public class Settings implements DataObject
|
|||||||
@ConfigComment("Add enchanted glow to completed challenges")
|
@ConfigComment("Add enchanted glow to completed challenges")
|
||||||
private boolean addCompletedGlow = true;
|
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("")
|
||||||
@ConfigComment("This list stores GameModes in which Challenges addon should not work.")
|
@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:")
|
@ConfigComment("To disable addon it is necessary to write its name in new line that starts with -. Example:")
|
||||||
@ -109,6 +113,15 @@ public class Settings implements DataObject
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return freeChallengesFirst value.
|
||||||
|
*/
|
||||||
|
public boolean isFreeChallengesFirst()
|
||||||
|
{
|
||||||
|
return this.freeChallengesFirst;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setUniqueId(String uniqueId)
|
public void setUniqueId(String uniqueId)
|
||||||
{
|
{
|
||||||
@ -159,4 +172,13 @@ public class Settings implements DataObject
|
|||||||
{
|
{
|
||||||
this.disabledGameModes = disabledGameModes;
|
this.disabledGameModes = disabledGameModes;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param freeChallengesFirst new freeChallengesFirst value.
|
||||||
|
*/
|
||||||
|
public void setFreeChallengesFirst(boolean freeChallengesFirst)
|
||||||
|
{
|
||||||
|
this.freeChallengesFirst = freeChallengesFirst;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user