diff --git a/pom.xml b/pom.xml
index b56b91b..c1c0084 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
cn.lunadeer
Dominion
- 1.42.2-beta
+ 1.42.3-beta
jar
Dominion
diff --git a/src/main/java/cn/lunadeer/dominion/controllers/DominionController.java b/src/main/java/cn/lunadeer/dominion/controllers/DominionController.java
index 9c86c69..47be960 100644
--- a/src/main/java/cn/lunadeer/dominion/controllers/DominionController.java
+++ b/src/main/java/cn/lunadeer/dominion/controllers/DominionController.java
@@ -137,7 +137,7 @@ public class DominionController {
}
}
// 创建 dominion (此步骤不会写入数据)
- DominionDTO dominion = DominionDTO.create(operator.getUniqueId(), name, loc1.getWorld().getName(),
+ DominionDTO dominion = DominionDTO.create(parent_dominion.getId() == -1 ? operator.getUniqueId() : parent_dominion.getOwner(), name, loc1.getWorld().getName(),
minX, minY, minZ, maxX, maxY, maxZ, parent_dominion);
// 如果parent_dominion不为-1 检查是否在同一世界
if (parent_dominion.getId() != -1 && !parent_dominion.getWorld().equals(dominion.getWorld())) {
diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml
index 88d991c..9136a42 100644
--- a/src/main/resources/plugin.yml
+++ b/src/main/resources/plugin.yml
@@ -12,7 +12,7 @@ commands:
description: 领地插件命令
usage: /dominion
aliases: [ dominion, dom ]
-permission:
+permissions:
dominion.admin:
description: 领地插件管理员权限
default: op