From f3dafd6b5e9755011dd7b0af7bd2719206ff1368 Mon Sep 17 00:00:00 2001 From: j502647092 Date: Sun, 4 Oct 2015 21:29:02 +0800 Subject: [PATCH] fix messaages error... Signed-off-by: j502647092 --- src/main/java/org/maxgamer/QuickShop/Util/MsgUtil.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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); }