From d8f64cd09a3f06496a72413eb1614379c7955350 Mon Sep 17 00:00:00 2001 From: destro174 <40720638+destro174@users.noreply.github.com> Date: Tue, 15 Feb 2022 21:13:48 +0100 Subject: [PATCH] protected -> public --- src/main/java/me/ryanhamshire/GriefPrevention/DataStore.java | 2 +- .../java/me/ryanhamshire/GriefPrevention/GriefPrevention.java | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/me/ryanhamshire/GriefPrevention/DataStore.java b/src/main/java/me/ryanhamshire/GriefPrevention/DataStore.java index 806f586..d8fea19 100644 --- a/src/main/java/me/ryanhamshire/GriefPrevention/DataStore.java +++ b/src/main/java/me/ryanhamshire/GriefPrevention/DataStore.java @@ -87,7 +87,7 @@ public abstract class DataStore Long nextClaimID = (long) 0; //path information, for where stuff stored on disk is well... stored - protected final static String dataLayerFolderPath = "plugins" + File.separator + "GriefPreventionData"; + public final static String dataLayerFolderPath = "plugins" + File.separator + "GriefPreventionData"; final static String playerDataFolderPath = dataLayerFolderPath + File.separator + "PlayerData"; final static String configFilePath = dataLayerFolderPath + File.separator + "config.yml"; final static String messagesFilePath = dataLayerFolderPath + File.separator + "messages.yml"; diff --git a/src/main/java/me/ryanhamshire/GriefPrevention/GriefPrevention.java b/src/main/java/me/ryanhamshire/GriefPrevention/GriefPrevention.java index c2359b9..3a4d583 100644 --- a/src/main/java/me/ryanhamshire/GriefPrevention/GriefPrevention.java +++ b/src/main/java/me/ryanhamshire/GriefPrevention/GriefPrevention.java @@ -19,6 +19,7 @@ package me.ryanhamshire.GriefPrevention; import me.ryanhamshire.GriefPrevention.DataStore.NoTransferException; +import me.ryanhamshire.GriefPrevention.alttd.config.Config; import me.ryanhamshire.GriefPrevention.alttd.tasks.ClaimExpireTask; import me.ryanhamshire.GriefPrevention.alttd.tasks.IgnoreClaimWarningTask; import me.ryanhamshire.GriefPrevention.events.PreventBlockBreakEvent; @@ -418,6 +419,7 @@ public class GriefPrevention extends JavaPlugin private void loadConfig() { + Config.reload(); //load the config if it exists FileConfiguration config = YamlConfiguration.loadConfiguration(new File(DataStore.configFilePath)); FileConfiguration outConfig = new YamlConfiguration();