Skip to content

Commit

Permalink
Added setting to switch on/off pasting of missing nether/end islands
Browse files Browse the repository at this point in the history
  • Loading branch information
tastybento committed Dec 16, 2019
1 parent 91d4988 commit 886cadb
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/main/java/world/bentobox/acidisland/AISettings.java
Expand Up @@ -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")
Expand Down Expand Up @@ -1507,4 +1514,19 @@ public void setCreateIslandOnFirstLoginAbortOnLogout(boolean createIslandOnFirst
{
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;
}
}
5 changes: 5 additions & 0 deletions src/main/resources/config.yml
Expand Up @@ -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: []
Expand Down

0 comments on commit 886cadb

Please sign in to comment.