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 ";
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);
}
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!";
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);
}
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);
}
}