1
0
mirror of https://e.coding.net/circlecloud/QuickShop.git synced 2024-11-22 01:58:54 +00:00

fix messaages error...

Signed-off-by: j502647092 <jtb1@163.com>
This commit is contained in:
j502647092 2015-10-04 21:29:02 +08:00
parent e8dad0b633
commit f3dafd6b5e

View File

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