mirror of
https://github.com/BentoBoxWorld/Challenges.git
synced 2024-12-30 21:07:47 +01:00
Update Settings file.
Remove unused parts.
This commit is contained in:
parent
bfc5cefd69
commit
c8177adb9e
@ -1,9 +1,7 @@
|
||||
package world.bentobox.challenges.config;
|
||||
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
||||
import org.bukkit.Material;
|
||||
@ -13,13 +11,8 @@ import world.bentobox.bentobox.api.configuration.ConfigComment;
|
||||
import world.bentobox.bentobox.api.configuration.ConfigEntry;
|
||||
import world.bentobox.bentobox.api.configuration.ConfigObject;
|
||||
import world.bentobox.bentobox.api.configuration.StoreAt;
|
||||
import world.bentobox.bentobox.database.objects.adapters.Adapter;
|
||||
import world.bentobox.challenges.config.SettingsUtils.ChallengeLore;
|
||||
import world.bentobox.challenges.config.SettingsUtils.GuiMode;
|
||||
import world.bentobox.challenges.config.SettingsUtils.LevelLore;
|
||||
import world.bentobox.challenges.config.SettingsUtils.VisibilityMode;
|
||||
import world.bentobox.challenges.database.object.adapters.ChallengeLoreAdapter;
|
||||
import world.bentobox.challenges.database.object.adapters.LevelLoreAdapter;
|
||||
|
||||
|
||||
@StoreAt(filename="config.yml", path="addons/Challenges")
|
||||
@ -99,58 +92,6 @@ public class Settings implements ConfigObject
|
||||
@ConfigEntry(path = "gui-settings.locked-level-icon")
|
||||
private ItemStack lockedLevelIcon = new ItemStack(Material.BOOK);
|
||||
|
||||
@ConfigComment("")
|
||||
@ConfigComment("This indicate if free challenges must be at the start (true) or at the end (false) of list.")
|
||||
@ConfigEntry(path = "gui-settings.free-challenges-first")
|
||||
private boolean freeChallengesFirst = true;
|
||||
|
||||
@ConfigComment("")
|
||||
@ConfigComment("This allows to change lore description line length. By default it is 25, but some server")
|
||||
@ConfigComment("owners may like it to be larger.")
|
||||
@ConfigEntry(path = "gui-settings.lore-length")
|
||||
private int loreLineLength = 25;
|
||||
|
||||
@ConfigComment("")
|
||||
@ConfigComment("This string allows to change element order in Challenge description. Each letter represents")
|
||||
@ConfigComment("one object from challenge description. If letter is not used, then its represented part")
|
||||
@ConfigComment("will not be in description. If use any letter that is not recognized, then it will be")
|
||||
@ConfigComment("ignored. Some strings can be customized via lang file under 'challenges.gui.challenge-description'.")
|
||||
@ConfigComment("List of values and their meaning: ")
|
||||
@ConfigComment(" - LEVEL - Level String: '*.level'")
|
||||
@ConfigComment(" - STATUS - Status String: '*.completed'")
|
||||
@ConfigComment(" - COUNT - Times String: '*.completed-times', '*.completed-times-of' or '*.maxed-reached'")
|
||||
@ConfigComment(" - DESCRIPTION - Description String: defined in challenge object - challenge.description")
|
||||
@ConfigComment(" - WARNINGS - Warning String: '*.warning-items-take', '*.objects-close-by', '*.warning-entities-kill', '*.warning-blocks-remove'")
|
||||
@ConfigComment(" - ENVIRONMENT - Environment String: defined in challenge object - challenge.environment")
|
||||
@ConfigComment(" - REQUIREMENTS - Requirement String: '*.required-level', '*.required-money', '*.required-experience' and items, blocks or entities")
|
||||
@ConfigComment(" - REWARD_TEXT - Reward String: message that is defined in challenge.rewardTest and challenge.repeatRewardText")
|
||||
@ConfigComment(" - REWARD_OTHER - Reward extra String: '*.experience-reward', '*.money-reward', '*.not-repeatable'")
|
||||
@ConfigComment(" - REWARD_ITEMS - Reward Items: List of items that will be rewarded.")
|
||||
@ConfigComment(" - REWARD_COMMANDS - Reward Commands: List of commands that will be rewarded.")
|
||||
@ConfigComment("Requirement and reward items, blocks and entities that are defined in challenge and can be customized under 'challenges.gui.item-description.*'")
|
||||
@ConfigEntry(path = "gui-settings.challenge-lore")
|
||||
@Adapter(ChallengeLoreAdapter.class)
|
||||
private List<ChallengeLore> challengeLoreMessage = Arrays.asList(ChallengeLore.values());
|
||||
|
||||
@ConfigComment("")
|
||||
@ConfigComment("This string allows to change element order in Level description. Each letter represents")
|
||||
@ConfigComment("one object from level description. If letter is not used, then its represented part")
|
||||
@ConfigComment("will not be in description. If use any letter that is not recognized, then it will be")
|
||||
@ConfigComment("ignored. Some strings can be customized via lang file under 'challenges.gui.level-description'.")
|
||||
@ConfigComment("List of values and their meaning: ")
|
||||
@ConfigComment(" - LEVEL_STATUS - Status String: '*.completed'")
|
||||
@ConfigComment(" - CHALLENGE_COUNT - Count of completed challenges String: '*.completed-challenges-of'")
|
||||
@ConfigComment(" - UNLOCK_MESSAGE - Description String: defined in level object - challengeLevel.unlockMessage")
|
||||
@ConfigComment(" - WAIVER_AMOUNT - WaiverAmount String: '*.waver-amount'")
|
||||
@ConfigComment(" - LEVEL_REWARD_TEXT - Reward String: message that is defined in challengeLevel.rewardText.")
|
||||
@ConfigComment(" - LEVEL_REWARD_OTHER - Reward extra String: '*.experience-reward', '*.money-reward'")
|
||||
@ConfigComment(" - LEVEL_REWARD_ITEMS - Reward Items: List of items that will be rewarded.")
|
||||
@ConfigComment(" - LEVEL_REWARD_COMMANDS - Reward Commands: List of commands that will be rewarded.")
|
||||
@ConfigComment("Reward items that are defined in challenge level and can be customized under 'challenges.gui.item-description.*'")
|
||||
@ConfigEntry(path = "gui-settings.level-lore")
|
||||
@Adapter(LevelLoreAdapter.class)
|
||||
private List<LevelLore> levelLoreMessage = Arrays.asList(LevelLore.values());
|
||||
|
||||
@ConfigComment("")
|
||||
@ConfigComment("This indicate if challenges data will be stored per island (true) or per player (false).")
|
||||
@ConfigEntry(path = "store-island-data")
|
||||
@ -205,17 +146,6 @@ public class Settings implements ConfigObject
|
||||
// Section: Getters
|
||||
// ---------------------------------------------------------------------
|
||||
|
||||
|
||||
/**
|
||||
* This method returns the challengeLoreMessage object.
|
||||
* @return the challengeLoreMessage object.
|
||||
*/
|
||||
public List<ChallengeLore> getChallengeLoreMessage()
|
||||
{
|
||||
return challengeLoreMessage;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* This method returns the configVersion object.
|
||||
* @return the configVersion object.
|
||||
@ -271,35 +201,6 @@ public class Settings implements ConfigObject
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return freeChallengesFirst value.
|
||||
*/
|
||||
public boolean isFreeChallengesFirst()
|
||||
{
|
||||
return this.freeChallengesFirst;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* This method returns the loreLineLength object.
|
||||
* @return the loreLineLength object.
|
||||
*/
|
||||
public int getLoreLineLength()
|
||||
{
|
||||
return loreLineLength;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* This method returns the levelLoreMessage object.
|
||||
* @return the levelLoreMessage object.
|
||||
*/
|
||||
public List<LevelLore> getLevelLoreMessage()
|
||||
{
|
||||
return levelLoreMessage;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* This method returns the storeAsIslandData object.
|
||||
* @return the storeAsIslandData object.
|
||||
@ -489,26 +390,6 @@ public class Settings implements ConfigObject
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* This method sets the challengeLoreMessage object value.
|
||||
* @param challengeLoreMessage the challengeLoreMessage object new value.
|
||||
*/
|
||||
public void setChallengeLoreMessage(List<ChallengeLore> challengeLoreMessage)
|
||||
{
|
||||
this.challengeLoreMessage = challengeLoreMessage;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* This method sets the levelLoreMessage object value.
|
||||
* @param levelLoreMessage the levelLoreMessage object new value.
|
||||
*/
|
||||
public void setLevelLoreMessage(List<LevelLore> levelLoreMessage)
|
||||
{
|
||||
this.levelLoreMessage = levelLoreMessage;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param resetChallenges new resetChallenges value.
|
||||
*/
|
||||
@ -554,25 +435,6 @@ public class Settings implements ConfigObject
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param freeChallengesFirst new freeChallengesFirst value.
|
||||
*/
|
||||
public void setFreeChallengesFirst(boolean freeChallengesFirst)
|
||||
{
|
||||
this.freeChallengesFirst = freeChallengesFirst;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* This method sets the loreLineLength object value.
|
||||
* @param loreLineLength the loreLineLength object new value.
|
||||
*/
|
||||
public void setLoreLineLength(int loreLineLength)
|
||||
{
|
||||
this.loreLineLength = loreLineLength;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* This method sets the storeAsIslandData object value.
|
||||
* @param storeAsIslandData the storeAsIslandData object new value.
|
||||
|
Loading…
Reference in New Issue
Block a user