Skip to content

Commit

Permalink
实现了单独配置世界圈地规则的功能
Browse files Browse the repository at this point in the history
  • Loading branch information
ColdeZhang committed Sep 6, 2024
1 parent 1f3fb77 commit 40d4ede
Show file tree
Hide file tree
Showing 8 changed files with 363 additions and 627 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
}

group = "cn.lunadeer"
version = "2.5.7-beta"
version = "2.6.0-beta"

java {
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
Expand Down
280 changes: 0 additions & 280 deletions core/src/main/java/cn/lunadeer/dominion/commands/SetConfig.java

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,14 @@ public static void create(AbstractOperator operator, String name,
operator.setResponse(FAIL.addMessage(Translation.Messages_SelectPointsWorldNotSame));
return;
}
if (operator.getLocation() == null) {
operator.setResponse(FAIL.addMessage(Translation.Messages_CommandPlayerOnly));
return;
}
if (!loc1.getWorld().getUID().equals(operator.getLocation().getWorld().getUID())) {
operator.setResponse(FAIL.addMessage(Translation.Messages_CrossWorldOperationDisallowed));
return;
}
// 检查世界是否可以创建
if (worldNotValid(operator, loc1.getWorld().getName())) {
operator.setResponse(FAIL.addMessage(Translation.Messages_CreateDominionDisabledWorld, loc1.getWorld().getName()));
Expand Down
Loading

0 comments on commit 40d4ede

Please sign in to comment.