Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package eu.regium.lobby.file;
- import eu.regium.lobby.Lobby;
- import eu.regium.lobby.util.Utils;
- import lombok.AllArgsConstructor;
- import org.bukkit.command.CommandSender;
- import org.bukkit.entity.Player;
- /**
- * Created by trikeyyy on 15.11.2016.
- * Date: 15.11.2016
- * Time: 18:30
- */
- public class LobbyConfig {
- public static class Files {
- // public static ConfigManager.ConfigFile CONFIG;
- // public static ConfigManager.ConfigFile MESSAGES;
- // public static ConfigManager.ConfigFile LOCATIONS;
- public static ConfigManager.ConfigFile DATABASE;
- public Files() {
- // Files.CONFIG = ConfigManager.get(Lobby.getInstance(), "config.yml");
- // Files.MESSAGES = ConfigManager.get(Lobby.getInstance(), "messages.yml");
- // Files.LOCATIONS = ConfigManager.get(Lobby.getInstance(), "locations.yml");
- Files.DATABASE = ConfigManager.get(Lobby.getInstance(), "database.yml");
- }
- }
- public static class Cache {
- }
- @AllArgsConstructor
- public enum Message {
- // public static String PREFIX = (String) Files.MESSAGES.addDefaultAndGetCurrentValue("prefix", "&f[&bLobby&f] ");
- // public static String ADMIN_MODE_ACTIVATE = (String) Files.MESSAGES.addDefaultAndGetCurrentValue("admin.activate", "\n&dADMIN MODE ACTIVATED!\n&4Pass auf, dass du nichts zerstörst!\n");
- // public static String ADMIN_MODE_DEACTIVATE = (String) Files.MESSAGES.addDefaultAndGetCurrentValue("admin.deactivate", "\n&dADMIN MODE DEACTIVATED!\n");
- // public static String SUIT_REMOVE = (String) Files.MESSAGES.addDefaultAndGetCurrentValue("suit.remove", PREFIX + "&cDein Anzug wurde entfernt!");
- // public static String SUIT_ALREADY = (String) Files.MESSAGES.addDefaultAndGetCurrentValue("suit.already", PREFIX + "&cDu hast bereits einen Anzug!");
- // PREFIX(Files.MESSAGES.addDefaultAndGetCurrentValue("prefix", "&f[&bLobby&f] ").toString()),
- // ADMIN_MODE_ACTIVATE(Files.MESSAGES.addDefaultAndGetCurrentValue("admin.activate", "\n&dADMIN MODE ACTIVATED!\n&4Pass auf, dass du nichts zerstörst!\n\n").toString()),
- // ADMIN_MODE_DEACTIVATE(Files.MESSAGES.addDefaultAndGetCurrentValue("admin.deactivate", "\n&dADMIN MODE DEACTIVATED!\n\n").toString()),
- // SUIT_REMOVE(Files.MESSAGES.addDefaultAndGetCurrentValue("suit.remove", PREFIX + "&cDein Anzug wurde entfernt!").toString()),
- // SUIT_ALREADY_WORN(Files.MESSAGES.addDefaultAndGetCurrentValue("suit.already", PREFIX + "&cDu hast bereits einen Anzug!").toString());
- ;
- private String message;
- public void send(Player player) {
- player.sendMessage(Utils.color(message));
- }
- public void send(CommandSender sender) {
- sender.sendMessage(message);
- }
- }
- public static class Locations {
- // public static Location SPAWN = (Location) Files.LOCATIONS.addDefaultAndGetCurrentValue("spawn",
- // new Location(Bukkit.getWorld("world"), 0, 0, 0, 0, 0));
- //
- // public static Location SPAWN_WIZARDDM = (Location) Files.LOCATIONS.addDefaultAndGetCurrentValue("spawn.wizarddm",
- // new Location(Bukkit.getWorld("world"), 0, 0, 0, 0, 0));
- //
- // public static Location SPAWN_PET_SPAWN = (Location) Files.LOCATIONS.addDefaultAndGetCurrentValue("spawn.petspawn",
- // new Location(Bukkit.getWorld("world"), 0, 0, 0, 0, 0));
- //
- // public static Location SPAWN_PET_PLAYER_SPAWN = (Location) Files.LOCATIONS.addDefaultAndGetCurrentValue("spawn.petspawn.player",
- // new Location(Bukkit.getWorld("world"), 0, 0, 0, 0, 0));
- }
- public static class Database {
- public static String ADDRESS = (String) Files.DATABASE.addDefaultAndGetCurrentValue("database.address", "localhost:3306");
- public static String SCHEMA = (String) Files.DATABASE.addDefaultAndGetCurrentValue("database.schema", "database");
- public static String USERNAME = (String) Files.DATABASE.addDefaultAndGetCurrentValue("database.username", "username");
- public static String PASSWORD = (String) Files.DATABASE.addDefaultAndGetCurrentValue("database.password", "password");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement