Actually load saved changes.

This commit is contained in:
Brianna 2019-10-19 10:38:02 -04:00
parent b0bf9646f5
commit 5a3d8377da
2 changed files with 2 additions and 3 deletions

View File

@ -3,14 +3,12 @@ package com.songoda.epicheads.utils;
import com.songoda.core.compatibility.ServerVersion;
import com.songoda.epicheads.EpicHeads;
import com.songoda.epicheads.settings.Settings;
import org.apache.commons.lang.StringUtils;
import org.bukkit.ChatColor;
import org.bukkit.Material;
import org.bukkit.inventory.ItemStack;
import org.bukkit.inventory.meta.ItemMeta;
import java.util.ArrayList;
import java.util.Base64;
import java.util.List;
public class Methods {

View File

@ -14,8 +14,9 @@ public abstract class Storage {
public Storage(EpicHeads instance) {
this.instance = instance;
this.dataFile = (new Config(instance, "", "data.yml"))
this.dataFile = (new Config(instance, "data.yml"))
.setAutosave(true);
this.dataFile.load();
}
public abstract boolean containsGroup(String group);