Skip to content

Commit

Permalink
检查需要连接的插件是否存在
Browse files Browse the repository at this point in the history
  • Loading branch information
ApliNi authored Jan 7, 2025
1 parent d9def11 commit 094660c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/aplini/ipacwhitelist/IpacWhitelist.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public void loadConfig(){
public void onEnable(){

// 连接到插件
if(config.getBoolean("hook.AuthMe", true)){
if(Bukkit.getPluginManager().isPluginEnabled("AuthMe") && config.getBoolean("hook.AuthMe", true)){
getServer().getPluginManager().registerEvents(new authMe(), plugin);
}
if(Bukkit.getPluginManager().isPluginEnabled("PlaceholderAPI")){
Expand Down

0 comments on commit 094660c

Please sign in to comment.