1
0
mirror of https://e.coding.net/circlecloud/DataStorage.git synced 2025-11-02 17:56:15 +00:00

添加卸载插件时Unhook 防止重载失效...

Signed-off-by: 502647092 <jtb1@163.com>
This commit is contained in:
502647092
2015-12-01 22:56:11 +08:00
parent 3c26ecf0f4
commit f3bca9a69c

View File

@@ -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 但是关联失败了!!!失败了!!!");
}
}