mirror of
https://e.coding.net/circlecloud/DataStorage.git
synced 2024-12-04 04:08:53 +00:00
添加卸载插件时Unhook 防止重载失效...
Signed-off-by: 502647092 <jtb1@163.com>
This commit is contained in:
parent
3c26ecf0f4
commit
f3bca9a69c
@ -1,5 +1,6 @@
|
|||||||
package cn.citycraft.DataStorage;
|
package cn.citycraft.DataStorage;
|
||||||
|
|
||||||
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.command.Command;
|
import org.bukkit.command.Command;
|
||||||
import org.bukkit.command.CommandSender;
|
import org.bukkit.command.CommandSender;
|
||||||
import org.bukkit.configuration.ConfigurationSection;
|
import org.bukkit.configuration.ConfigurationSection;
|
||||||
@ -94,6 +95,7 @@ public class DataStorage extends JavaPlugin {
|
|||||||
if (db != null) {
|
if (db != null) {
|
||||||
db.close();
|
db.close();
|
||||||
}
|
}
|
||||||
|
PluginAPI.PlaceholderUnhook("dd");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -125,6 +127,8 @@ public class DataStorage extends JavaPlugin {
|
|||||||
});
|
});
|
||||||
if (result) {
|
if (result) {
|
||||||
this.getLogger().info("发现 PlaceholderAPI 已关联...");
|
this.getLogger().info("发现 PlaceholderAPI 已关联...");
|
||||||
|
} else {
|
||||||
|
Bukkit.getConsoleSender().sendMessage("§c发现 PlaceholderAPI 但是关联失败了!!!失败了!!!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user