diff --git a/build.gradle.kts b/build.gradle.kts index 51190dc1..aaaa8788 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -11,7 +11,7 @@ var libraries = listOf() libraries = libraries + "cn.lunadeer:MinecraftPluginUtils:2.0.7" group = "cn.lunadeer" -version = "3.2.0-beta" +version = "3.2.1-beta" java { toolchain.languageVersion.set(JavaLanguageVersion.of(17)) diff --git a/core/src/main/java/cn/lunadeer/dominion/utils/TuiUtils.java b/core/src/main/java/cn/lunadeer/dominion/utils/TuiUtils.java index ce07ced5..186af5a6 100644 --- a/core/src/main/java/cn/lunadeer/dominion/utils/TuiUtils.java +++ b/core/src/main/java/cn/lunadeer/dominion/utils/TuiUtils.java @@ -43,7 +43,7 @@ public static DominionDTO getDominionNameArg_1(Player player, String[] args) { } public static boolean noAuthToManage(Player player, DominionDTO dominion) { - if (player.isOp()) return false; + if (player.hasPermission("dominion.admin")) return false; if (!dominion.getOwner().equals(player.getUniqueId())) { MemberDTO privileges = cn.lunadeer.dominion.dtos.MemberDTO.select(player.getUniqueId(), dominion.getId()); if (privileges == null || !privileges.getAdmin()) {