Add informative messages to the options.

`create-and-link-portals` works only if allow-nether is enabled.
`create-obsidian-platform` works only if allow-end is enabled.
This commit is contained in:
BONNe 2021-08-19 23:11:36 +03:00
parent d1bfbe5e78
commit e78930d61c
2 changed files with 4 additions and 0 deletions

View File

@ -191,6 +191,7 @@ public class Settings implements WorldSettings {
@ConfigComment("This option indicates if nether portals should be linked via dimensions.")
@ConfigComment("Option will simulate vanilla portal mechanics that links portals together")
@ConfigComment("or creates a new portal, if there is not a portal in that dimension.")
@ConfigComment("This option requires `allow-nether=true` in server.properties.")
@ConfigEntry(path = "world.nether.create-and-link-portals", since = "1.14.4")
private boolean makeNetherPortals = false;
@ -206,6 +207,7 @@ public class Settings implements WorldSettings {
@ConfigComment("This option indicates if obsidian platform in the end should be generated")
@ConfigComment("when player enters the end world.")
@ConfigComment("This option requires `allow-end=true` in bukkit.yml.")
@ConfigEntry(path = "world.end.create-obsidian-platform", since = "1.14.4")
private boolean makeEndPortals = false;

View File

@ -119,6 +119,7 @@ world:
# This option indicates if nether portals should be linked via dimensions.
# Option will simulate vanilla portal mechanics that links portals together
# or creates a new portal, if there is not a portal in that dimension.
# This option requires `allow-nether=true` in server.properties.
# Added since 1.14.4.
create-and-link-portals: false
end:
@ -130,6 +131,7 @@ world:
islands: true
# This option indicates if obsidian platform in the end should be generated
# when player enters the end world.
# This option requires `allow-end=true` in bukkit.yml.
# Added since 1.14.4.
create-obsidian-platform: false
# /!\ This feature is experimental and might not work as expected or might not work at all.