mirror of
https://github.com/BentoBoxWorld/AcidIsland.git
synced 2024-11-25 20:25:37 +01:00
Added setting to switch on/off pasting of missing nether/end islands
https://github.com/BentoBoxWorld/BentoBox/issues/1063
This commit is contained in:
parent
91d4988bfb
commit
886cadb141
@ -392,6 +392,13 @@ public class AISettings implements WorldSettings {
|
||||
@ConfigEntry(path = "island.create-island-on-first-login.abort-on-logout")
|
||||
private boolean createIslandOnFirstLoginAbortOnLogout = true;
|
||||
|
||||
@ConfigComment("Create Nether or End islands if they are missing when a player goes through a portal.")
|
||||
@ConfigComment("Nether and End islands are usually pasted when a player makes their island, but if they are")
|
||||
@ConfigComment("missing for some reason, you can switch this on.")
|
||||
@ConfigComment("Note that bedrock removal glitches can exploit this option.")
|
||||
@ConfigEntry(path = "island.create-missing-nether-end-islands")
|
||||
private boolean pasteMissingIslands = false;
|
||||
|
||||
// Commands
|
||||
@ConfigComment("List of commands to run when a player joins.")
|
||||
@ConfigEntry(path = "island.commands.on-join")
|
||||
@ -1507,4 +1514,19 @@ public class AISettings implements WorldSettings {
|
||||
{
|
||||
this.createIslandOnFirstLoginAbortOnLogout = createIslandOnFirstLoginAbortOnLogout;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the pasteMissingIslands
|
||||
*/
|
||||
@Override
|
||||
public boolean isPasteMissingIslands() {
|
||||
return pasteMissingIslands;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param pasteMissingIslands the pasteMissingIslands to set
|
||||
*/
|
||||
public void setPasteMissingIslands(boolean pasteMissingIslands) {
|
||||
this.pasteMissingIslands = pasteMissingIslands;
|
||||
}
|
||||
}
|
||||
|
@ -338,6 +338,11 @@ island:
|
||||
# If set to false, the player's island will be created even if he went offline in the meantime.
|
||||
# Note this option has no effect if the delay (see the option above) is set to 0 or less.
|
||||
abort-on-logout: true
|
||||
# Create Nether or End islands if they are missing when a player goes through a portal.
|
||||
# Nether and End islands are usually pasted when a player makes their island, but if they are
|
||||
# missing for some reason, you can switch this on.
|
||||
# Note that bedrock removal glitches can exploit this option.
|
||||
create-missing-nether-end-islands: false
|
||||
commands:
|
||||
# List of commands to run when a player joins.
|
||||
on-join: []
|
||||
|
Loading…
Reference in New Issue
Block a user