diff --git a/src/main/java/org/maxgamer/QuickShop/Util/MsgUtil.java b/src/main/java/org/maxgamer/QuickShop/Util/MsgUtil.java index 6ea0aeb..32f7cd4 100644 --- a/src/main/java/org/maxgamer/QuickShop/Util/MsgUtil.java +++ b/src/main/java/org/maxgamer/QuickShop/Util/MsgUtil.java @@ -11,7 +11,6 @@ import java.util.UUID; import org.bukkit.Bukkit; import org.bukkit.ChatColor; import org.bukkit.OfflinePlayer; -import org.bukkit.configuration.file.YamlConfiguration; import org.bukkit.enchantments.Enchantment; import org.bukkit.entity.Player; import org.bukkit.inventory.ItemStack; @@ -22,10 +21,9 @@ import org.maxgamer.QuickShop.Shop.Shop; import cn.citycraft.PluginHelper.config.FileConfig; import mkremins.fanciful.FancyMessage; -@SuppressWarnings("deprecation") public class MsgUtil { private static QuickShop plugin; - private static YamlConfiguration messages; + private static FileConfig messages; private static HashMap> player_messages = new HashMap>(); static { @@ -71,7 +69,7 @@ public class MsgUtil { */ public static void loadCfgMessages() { // Load messages.yml - messages = new FileConfig(plugin, "message.yml"); + messages = new FileConfig(plugin, "messages.yml"); // Parse colour codes Util.parseColours(messages); }