Improved comments for nether and end sethome

This commit is contained in:
tastybento 2020-07-18 08:15:30 -07:00
parent aaea6fd6fe
commit cb38e67e36
2 changed files with 43 additions and 37 deletions

View File

@ -824,6 +824,7 @@ public class Settings implements WorldSettings
/** /**
* {@inheritDoc} * {@inheritDoc}
*/ */
@Override
public String getPlayerCommandAliases() public String getPlayerCommandAliases()
{ {
return playerCommandAliases; return playerCommandAliases;
@ -833,6 +834,7 @@ public class Settings implements WorldSettings
/** /**
* {@inheritDoc} * {@inheritDoc}
*/ */
@Override
public String getAdminCommandAliases() public String getAdminCommandAliases()
{ {
return adminCommandAliases; return adminCommandAliases;
@ -2331,12 +2333,14 @@ public class Settings implements WorldSettings
private List<String> onLeaveCommands = new ArrayList<>(); private List<String> onLeaveCommands = new ArrayList<>();
// Sethome // Sethome
@ConfigComment("Allow setting home in the nether. Only available on nether islands, not vanilla nether.")
@ConfigEntry(path = "cave.sethome.nether.allow") @ConfigEntry(path = "cave.sethome.nether.allow")
private boolean allowSetHomeInNether = true; private boolean allowSetHomeInNether = true;
@ConfigEntry(path = "cave.sethome.nether.require-confirmation") @ConfigEntry(path = "cave.sethome.nether.require-confirmation")
private boolean requireConfirmationToSetHomeInNether = true; private boolean requireConfirmationToSetHomeInNether = true;
@ConfigComment("Allow setting home in the end. Only available on end islands, not vanilla end.")
@ConfigEntry(path = "cave.sethome.the-end.allow") @ConfigEntry(path = "cave.sethome.the-end.allow")
private boolean allowSetHomeInTheEnd = true; private boolean allowSetHomeInTheEnd = true;

View File

@ -413,9 +413,11 @@ cave:
on-leave: [] on-leave: []
sethome: sethome:
nether: nether:
# Allow setting home in the nether. Only available on nether islands, not vanilla nether.
allow: true allow: true
require-confirmation: true require-confirmation: true
the-end: the-end:
# Allow setting home in the end. Only available on end islands, not vanilla end.
allow: true allow: true
require-confirmation: true require-confirmation: true
deaths: deaths: