From 149e5564dbbf60474d2eda11e063f329f6ee45a5 Mon Sep 17 00:00:00 2001 From: 502647092 Date: Sat, 10 Oct 2015 17:51:24 +0800 Subject: [PATCH] update project... Signed-off-by: 502647092 --- .../java/org/maxgamer/QuickShop/QuickShop.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/main/java/org/maxgamer/QuickShop/QuickShop.java b/src/main/java/org/maxgamer/QuickShop/QuickShop.java index 0807f40..daa6267 100644 --- a/src/main/java/org/maxgamer/QuickShop/QuickShop.java +++ b/src/main/java/org/maxgamer/QuickShop/QuickShop.java @@ -14,6 +14,7 @@ import java.util.Map.Entry; import org.bukkit.Bukkit; import org.bukkit.ChatColor; import org.bukkit.Location; +import org.bukkit.Material; import org.bukkit.World; import org.bukkit.configuration.ConfigurationSection; import org.bukkit.configuration.file.FileConfiguration; @@ -53,6 +54,7 @@ import org.mcstats.Metrics; import cn.citycraft.PluginHelper.config.FileConfig; import cn.citycraft.PluginHelper.utils.VersionChecker; +import mkremins.fanciful.FancyMessage; public class QuickShop extends JavaPlugin { /** The active instance of QuickShop */ @@ -219,6 +221,18 @@ public class QuickShop extends JavaPlugin { getServer().getPluginManager().registerEvents(ll, this); } + try { + getLogger().info("尝试启动魔改库..."); + final FancyMessage fm = new FancyMessage("test"); + fm.then("item").itemTooltip(new ItemStack(Material.DIAMOND_SWORD)); + fm.then("link").link("ci.ccitycraft.cn"); + fm.then("suggest").suggest("qs help"); + fm.toJSONString(); + getLogger().info("魔改库功能测试正常..."); + } catch (final Exception e) { + getLogger().info("启动魔改库失败 部分功能将被禁用..."); + } + try { final ConfigurationSection dbCfg = getConfig().getConfigurationSection("database"); DatabaseCore dbCore;