修复了管理员无法创建玩家特权的bug
Some checks failed
Java CI-CD with Maven / build (push) Failing after 28m12s

This commit is contained in:
zhangyuheng 2024-02-23 13:21:50 +08:00
parent 1e5170864f
commit 8143031b61
2 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@
<groupId>cn.lunadeer</groupId>
<artifactId>Dominion</artifactId>
<version>1.8.0-beta</version>
<version>1.8.1-beta</version>
<packaging>jar</packaging>
<name>Dominion</name>

View File

@ -228,10 +228,10 @@ public class PrivilegeController {
public static boolean createPrivilege(Player operator, String player_name, String dominionName) {
DominionDTO dominion = DominionDTO.select(dominionName);
if (dominion == null) {
Notification.error(operator, "领地 " + dominionName + " 不存在,无法设置特权");
Notification.error(operator, "领地 " + dominionName + " 不存在,无法创建特权");
return false;
}
if (notOwner(operator, dominion)) return false;
if (noAuthToChangeFlags(operator, dominion)) return false;
PlayerDTO player = PlayerController.getPlayerDTO(player_name);
if (player == null) {
Notification.error(operator, "玩家 " + player_name + " 不存在或没有登录过");