From f3bca9a69cf6db3407cccdadcc9e8a8feb6f27d8 Mon Sep 17 00:00:00 2001 From: 502647092 Date: Tue, 1 Dec 2015 22:56:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8D=B8=E8=BD=BD=E6=8F=92?= =?UTF-8?q?=E4=BB=B6=E6=97=B6Unhook=20=E9=98=B2=E6=AD=A2=E9=87=8D=E8=BD=BD?= =?UTF-8?q?=E5=A4=B1=E6=95=88...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 502647092 --- src/main/java/cn/citycraft/DataStorage/DataStorage.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/cn/citycraft/DataStorage/DataStorage.java b/src/main/java/cn/citycraft/DataStorage/DataStorage.java index 87d55e9..7f2590a 100644 --- a/src/main/java/cn/citycraft/DataStorage/DataStorage.java +++ b/src/main/java/cn/citycraft/DataStorage/DataStorage.java @@ -1,5 +1,6 @@ package cn.citycraft.DataStorage; +import org.bukkit.Bukkit; import org.bukkit.command.Command; import org.bukkit.command.CommandSender; import org.bukkit.configuration.ConfigurationSection; @@ -94,6 +95,7 @@ public class DataStorage extends JavaPlugin { if (db != null) { db.close(); } + PluginAPI.PlaceholderUnhook("dd"); } @Override @@ -125,6 +127,8 @@ public class DataStorage extends JavaPlugin { }); if (result) { this.getLogger().info("发现 PlaceholderAPI 已关联..."); + } else { + Bukkit.getConsoleSender().sendMessage("§c发现 PlaceholderAPI 但是关联失败了!!!失败了!!!"); } }