Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ public static class MultiServer extends ConfigurationPart {
})
public static int autoCleanAfterDays = 180;

@Comments("Prevent player from creating dominion around the spawn point.")
@Comments({"Prevent player from creating dominion around the spawn point.", "Set to 0 or -1 to disable."})
public static int serverSpawnProtectionRadius = 10;

@Comments("Tool used to select position for creating dominion.")
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/java/cn/lunadeer/dominion/misc/Asserts.java
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ public static void assertDominionIntersect(@NotNull CommandSender operator, @Not
return;
}
int spawnProtection = Configuration.serverSpawnProtectionRadius;
if (spawnProtection == -1) {
if (spawnProtection <= 0) {
return;
}
World world = dominion.getWorld();
Expand Down