Skip to content

Commit

Permalink
修复不打开权限组称号无法使用Papi的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
ColdeZhang committed Sep 24, 2024
1 parent a350e01 commit ca2b42a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {
}

group = "cn.lunadeer"
version = "2.9.0-beta"
version = "2.9.1-beta"

java {
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
Expand Down
13 changes: 6 additions & 7 deletions core/src/main/java/cn/lunadeer/dominion/Dominion.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,12 @@ public void onEnable() {
AutoClean.run();
Cache.instance = new Cache();

if (config.getGroupTitleEnable()) {
if (Bukkit.getPluginManager().isPluginEnabled("PlaceholderAPI")) {
new PlaceHolderApi(this);
} else {
XLogger.warn(Translation.Messages_PlaceholderAPINotFound);
config.setGroupTitleEnable(false);
}
if (Bukkit.getPluginManager().isPluginEnabled("PlaceholderAPI")) {
new PlaceHolderApi(this);
}
if (config.getGroupTitleEnable() && !Bukkit.getPluginManager().isPluginEnabled("PlaceholderAPI")) {
XLogger.warn(Translation.Messages_PlaceholderAPINotFound);
config.setGroupTitleEnable(false);
}

new EventsRegister(this);
Expand Down

0 comments on commit ca2b42a

Please sign in to comment.