package com.alttd.altitudequests.config;
import java.io.File;
public class MessagesConfig extends AbstractConfig{
static MessagesConfig config;
public MessagesConfig() {
super(new File(System.getProperty("user.home") + File.separator + "share" + File.separator + "configs"
+ File.separator + "AltitudeQuests"), "messages.yml");
}
public static void reload() {
config = new MessagesConfig();
config.readConfig(MessagesConfig.class, null);
}
public static String HELP_MESSAGE_WRAPPER = "AltitudeQuests help:\n";
public static String HELP_MESSAGE = "Show this menu: /aquest help";
public static String RELOAD_HELP_MESSAGE = "Reload configs: /aquest reload";
public static String CREATE_SCRUFF_MESSAGE = "Create Scruff: /aquest createscruff ";
public static String SET_QUEST_HELP = "Set quest: /aquest setquest ";
public static String RE_ROLL_HELP = "Get a new quest: /aquest reroll";
private static void loadHelp() {
HELP_MESSAGE_WRAPPER = config.getString("help.help-wrapper", HELP_MESSAGE_WRAPPER);
HELP_MESSAGE = config.getString("help.help", HELP_MESSAGE);
RELOAD_HELP_MESSAGE = config.getString("help.reload", RELOAD_HELP_MESSAGE);
SET_QUEST_HELP = config.getString("help.set-quest", SET_QUEST_HELP);
CREATE_SCRUFF_MESSAGE = config.getString("help.help-wrapper", CREATE_SCRUFF_MESSAGE);
RE_ROLL_HELP = config.getString("help.re-roll-help", RE_ROLL_HELP);
}
public static String TOO_FAR_FROM_NPC = "You are too far from ";
public static String DAILY_ALREADY_DONE = "You already completed your daily quest";
public static String RESETTING_QUESTS = "[Mascot] Scruff: Thank you everyone that completed their daily quest! I will be handing out new ones now so come visit me at /spawn!";
public static String REWARD_ALREADY_RECEIVED = "You already collected this reward";
public static String REWARD_SENT = "[Mascot] Scruff: Thank you for completing the quest! Your reward has been sent!";
public static String FINISHED_QUEST = "[Mascot] Scruff: You finished your quest! Don't forget to collect your reward at the end of the quest book!";
public static String NOT_FINISHED_QUEST = "You have not finished this quest yet.";
public static String QUEST_RE_ROLLED = "[Mascot] Scruff: I see, that last quest was too much for you, that's okay I have given you another one!";
public static String NO_RE_ROLL_YET = "[Mascot] Scruff: Sorry, you already rerolled your quest within the last 7 days. I can't give you a different quest quite yet.";
private static void loadMessages() {
TOO_FAR_FROM_NPC = config.getString("messages.too-far-from-npc", TOO_FAR_FROM_NPC);
DAILY_ALREADY_DONE = config.getString("messages.daily-already-done", DAILY_ALREADY_DONE);
RESETTING_QUESTS = config.getString("messages.resetting-quests", RESETTING_QUESTS);
REWARD_ALREADY_RECEIVED = config.getString("messages.reward-already-received", REWARD_ALREADY_RECEIVED);
FINISHED_QUEST = config.getString("messages.finished-quest", FINISHED_QUEST);
REWARD_SENT = config.getString("messages.reward-send", REWARD_SENT);
NOT_FINISHED_QUEST = config.getString("messages.not-finished-quest", NOT_FINISHED_QUEST);
QUEST_RE_ROLLED = config.getString("messages.re-rolled-quest", QUEST_RE_ROLLED);
NO_RE_ROLL_YET = config.getString("messages.no-re-rolled-yet", NO_RE_ROLL_YET);
}
public static String NO_PERMISSION = "You do not have permission to do that.";
public static String NO_CONSOLE = "You cannot use this command from console.";
private static void loadGeneric() {
NO_PERMISSION = config.getString("generic.no-permission", NO_PERMISSION);
NO_CONSOLE = config.getString("generic.no-console", NO_CONSOLE);
}
}