1
0
mirror of https://e.coding.net/circlecloud/QuickShop.git synced 2024-12-28 07:58:49 +00:00

update project...

Signed-off-by: 502647092 <jtb1@163.com>
This commit is contained in:
502647092 2015-10-10 17:51:24 +08:00
parent 342a66988a
commit 149e5564db

View File

@ -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;