From 5a3d8377daeb337519c51f15849531e00fb28efd Mon Sep 17 00:00:00 2001 From: Brianna Date: Sat, 19 Oct 2019 10:38:02 -0400 Subject: [PATCH] Actually load saved changes. --- src/main/java/com/songoda/epicheads/utils/Methods.java | 2 -- src/main/java/com/songoda/epicheads/utils/storage/Storage.java | 3 ++- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/songoda/epicheads/utils/Methods.java b/src/main/java/com/songoda/epicheads/utils/Methods.java index a10c90c..a189566 100644 --- a/src/main/java/com/songoda/epicheads/utils/Methods.java +++ b/src/main/java/com/songoda/epicheads/utils/Methods.java @@ -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 { diff --git a/src/main/java/com/songoda/epicheads/utils/storage/Storage.java b/src/main/java/com/songoda/epicheads/utils/storage/Storage.java index c27b575..c6a35f9 100644 --- a/src/main/java/com/songoda/epicheads/utils/storage/Storage.java +++ b/src/main/java/com/songoda/epicheads/utils/storage/Storage.java @@ -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);