Use Galaxy shared config path.
This commit is contained in:
parent
0bbc68cbd1
commit
851d816abf
|
|
@ -1,6 +1,7 @@
|
|||
package com.alttd.playershops.config;
|
||||
|
||||
import io.leangen.geantyref.TypeToken;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.spongepowered.configurate.ConfigurationNode;
|
||||
import org.spongepowered.configurate.ConfigurationOptions;
|
||||
import org.spongepowered.configurate.serialize.SerializationException;
|
||||
|
|
@ -19,7 +20,7 @@ import java.util.regex.Pattern;
|
|||
@SuppressWarnings("unused")
|
||||
public class Config {
|
||||
|
||||
public static File CONFIG_PATH = new File(File.separator + "mnt" + File.separator + "configs" + File.separator + "playershops");
|
||||
public static File CONFIG_PATH;
|
||||
public static final Pattern PATH_PATTERN = Pattern.compile("\\.");
|
||||
private static final String HEADER = "";
|
||||
|
||||
|
|
@ -31,6 +32,7 @@ public class Config {
|
|||
static boolean verbose;
|
||||
|
||||
public static void reload() {
|
||||
CONFIG_PATH = new File(Bukkit.sharedConfigurationFile(), "playershops");
|
||||
CONFIG_FILE = new File(CONFIG_PATH, "config.yml");
|
||||
|
||||
configLoader = YamlConfigurationLoader.builder()
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user