aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/me/fatpigsarefat/quests/obj/Options.java
diff options
context:
space:
mode:
authorfatpigsarefat <fatpigsarefat@outlook.com>2018-10-20 22:08:50 +0100
committerfatpigsarefat <fatpigsarefat@outlook.com>2018-10-20 22:08:53 +0100
commit6a1bc9583140b6266df1ddf154b81970fd7ddb88 (patch)
treebea85a0acdca464358bcde6d6e0cab4e53355803 /src/main/java/me/fatpigsarefat/quests/obj/Options.java
parentbcbb43392cd45e03a68bc581396fc5bbac691080 (diff)
Namespace has changed
- Changed package to com.leonardobishop.quests - Incremented version number - No longer in beta
Diffstat (limited to 'src/main/java/me/fatpigsarefat/quests/obj/Options.java')
-rw-r--r--src/main/java/me/fatpigsarefat/quests/obj/Options.java54
1 files changed, 0 insertions, 54 deletions
diff --git a/src/main/java/me/fatpigsarefat/quests/obj/Options.java b/src/main/java/me/fatpigsarefat/quests/obj/Options.java
deleted file mode 100644
index 9d697b33..00000000
--- a/src/main/java/me/fatpigsarefat/quests/obj/Options.java
+++ /dev/null
@@ -1,54 +0,0 @@
-package me.fatpigsarefat.quests.obj;
-
-import me.fatpigsarefat.quests.Quests;
-import org.bukkit.ChatColor;
-
-import java.util.ArrayList;
-import java.util.List;
-
-public enum Options {
-
- CATEGORIES_ENABLED("options.categories-enabled"),
- TRIM_GUI_SIZE("options.trim-gui-size"),
- QUESTS_START_LIMIT("options.quest-started-limit"),
- TITLES_ENABLED("options.titles-enabled"),
- GUI_HIDE_LOCKED("options.gui-hide-locked"),
- GUITITLE_QUESTS_CATEGORY("options.guinames.quests-category"),
- GUITITLE_QUESTS("options.guinames.quests-menu"),
- GUITITLE_DAILY_QUESTS("options.guinames.daily-quests"),
- GUITITLE_QUEST_CANCEL("options.guinames.quest-cancel"),
- ALLOW_QUEST_CANCEL("options.allow-quest-cancel");
-
- private String path;
-
- Options(String path) {
- this.path = path;
- }
-
- public int getIntValue() {
- return Quests.getInstance().getConfig().getInt(path);
- }
-
- public String getStringValue() {
- return Quests.getInstance().getConfig().getString(path);
- }
-
- public boolean getBooleanValue() {
- return Quests.getInstance().getConfig().getBoolean(path);
- }
-
- public List<String> getStringListValue() {
- return Quests.getInstance().getConfig().getStringList(path);
- }
-
- public static String color(String s) {
- return ChatColor.translateAlternateColorCodes('&', s);
- }
- public static List<String> color(List<String> s) {
- List<String> colored = new ArrayList<>();
- for (String line : s) {
- colored.add(ChatColor.translateAlternateColorCodes('&', line));
- }
- return colored;
- }
-}