protected -> public
This commit is contained in:
parent
972270ac3d
commit
d8f64cd09a
|
|
@ -87,7 +87,7 @@ public abstract class DataStore
|
||||||
Long nextClaimID = (long) 0;
|
Long nextClaimID = (long) 0;
|
||||||
|
|
||||||
//path information, for where stuff stored on disk is well... stored
|
//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 playerDataFolderPath = dataLayerFolderPath + File.separator + "PlayerData";
|
||||||
final static String configFilePath = dataLayerFolderPath + File.separator + "config.yml";
|
final static String configFilePath = dataLayerFolderPath + File.separator + "config.yml";
|
||||||
final static String messagesFilePath = dataLayerFolderPath + File.separator + "messages.yml";
|
final static String messagesFilePath = dataLayerFolderPath + File.separator + "messages.yml";
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,7 @@
|
||||||
package me.ryanhamshire.GriefPrevention;
|
package me.ryanhamshire.GriefPrevention;
|
||||||
|
|
||||||
import me.ryanhamshire.GriefPrevention.DataStore.NoTransferException;
|
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.ClaimExpireTask;
|
||||||
import me.ryanhamshire.GriefPrevention.alttd.tasks.IgnoreClaimWarningTask;
|
import me.ryanhamshire.GriefPrevention.alttd.tasks.IgnoreClaimWarningTask;
|
||||||
import me.ryanhamshire.GriefPrevention.events.PreventBlockBreakEvent;
|
import me.ryanhamshire.GriefPrevention.events.PreventBlockBreakEvent;
|
||||||
|
|
@ -418,6 +419,7 @@ public class GriefPrevention extends JavaPlugin
|
||||||
|
|
||||||
private void loadConfig()
|
private void loadConfig()
|
||||||
{
|
{
|
||||||
|
Config.reload();
|
||||||
//load the config if it exists
|
//load the config if it exists
|
||||||
FileConfiguration config = YamlConfiguration.loadConfiguration(new File(DataStore.configFilePath));
|
FileConfiguration config = YamlConfiguration.loadConfiguration(new File(DataStore.configFilePath));
|
||||||
FileConfiguration outConfig = new YamlConfiguration();
|
FileConfiguration outConfig = new YamlConfiguration();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user