Skip to content

Commit 46c38d9

Browse files
authored
Add informative messages to the options. (#440)
`create-and-link-portals` works only if allow-nether is enabled. `create-obsidian-platform` works only if allow-end is enabled.
1 parent d1bfbe5 commit 46c38d9

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/main/java/world/bentobox/bskyblock/Settings.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ public class Settings implements WorldSettings {
191191
@ConfigComment("This option indicates if nether portals should be linked via dimensions.")
192192
@ConfigComment("Option will simulate vanilla portal mechanics that links portals together")
193193
@ConfigComment("or creates a new portal, if there is not a portal in that dimension.")
194+
@ConfigComment("This option requires `allow-nether=true` in server.properties.")
194195
@ConfigEntry(path = "world.nether.create-and-link-portals", since = "1.14.4")
195196
private boolean makeNetherPortals = false;
196197

@@ -206,6 +207,7 @@ public class Settings implements WorldSettings {
206207

207208
@ConfigComment("This option indicates if obsidian platform in the end should be generated")
208209
@ConfigComment("when player enters the end world.")
210+
@ConfigComment("This option requires `allow-end=true` in bukkit.yml.")
209211
@ConfigEntry(path = "world.end.create-obsidian-platform", since = "1.14.4")
210212
private boolean makeEndPortals = false;
211213

src/main/resources/config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ world:
119119
# This option indicates if nether portals should be linked via dimensions.
120120
# Option will simulate vanilla portal mechanics that links portals together
121121
# or creates a new portal, if there is not a portal in that dimension.
122+
# This option requires `allow-nether=true` in server.properties.
122123
# Added since 1.14.4.
123124
create-and-link-portals: false
124125
end:
@@ -130,6 +131,7 @@ world:
130131
islands: true
131132
# This option indicates if obsidian platform in the end should be generated
132133
# when player enters the end world.
134+
# This option requires `allow-end=true` in bukkit.yml.
133135
# Added since 1.14.4.
134136
create-obsidian-platform: false
135137
# /!\ This feature is experimental and might not work as expected or might not work at all.

0 commit comments

Comments
 (0)