package world.bentobox.bskyblock; import java.util.ArrayList; import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Set; import org.bukkit.Difficulty; import org.bukkit.GameMode; import org.bukkit.block.Biome; import org.bukkit.entity.EntityType; import world.bentobox.bentobox.api.configuration.ConfigComment; import world.bentobox.bentobox.api.configuration.ConfigEntry; import world.bentobox.bentobox.api.configuration.StoreAt; import world.bentobox.bentobox.api.configuration.WorldSettings; import world.bentobox.bentobox.api.flags.Flag; import world.bentobox.bentobox.database.objects.adapters.Adapter; import world.bentobox.bentobox.database.objects.adapters.FlagSerializer; import world.bentobox.bentobox.database.objects.adapters.FlagSerializer2; /** * All the plugin settings are here * @author Tastybento */ @StoreAt(filename="config.yml", path="addons/BSkyBlock") // Explicitly call out what name this should have. @ConfigComment("BSkyBlock Configuration [version]") public class Settings implements WorldSettings { /* Commands */ @ConfigComment("Island Command. What command users will run to access their island.") @ConfigComment("To define alias, just separate commands with white space.") @ConfigEntry(path = "bskyblock.command.island") private String islandCommand = "island is"; @ConfigComment("The island admin command.") @ConfigComment("To define alias, just separate commands with white space.") @ConfigEntry(path = "bskyblock.command.admin") private String adminCommand = "bsbadmin bsb"; /* WORLD */ @ConfigComment("Friendly name for this world. Used in admin commands. Must be a single word") @ConfigEntry(path = "world.friendly-name") private String friendlyName = "BSkyBlock"; @ConfigComment("Name of the world - if it does not exist then it will be generated.") @ConfigComment("It acts like a prefix for nether and end (e.g. BSkyBlock_world, BSkyBlock_world_nether, BSkyBlock_world_end)") @ConfigEntry(path = "world.world-name") private String worldName = "BSkyBlock_world"; @ConfigComment("World difficulty setting - PEACEFUL, EASY, NORMAL, HARD") @ConfigComment("Other plugins may override this setting") @ConfigEntry(path = "world.difficulty") private Difficulty difficulty = Difficulty.NORMAL; @ConfigComment("Radius of island in blocks. (So distance between islands is twice this)") @ConfigComment("Will be rounded up to the nearest 16 blocks.") @ConfigComment("It is the same for every dimension : Overworld, Nether and End.") @ConfigComment("This value cannot be changed mid-game and the plugin will not start if it is different.") @ConfigEntry(path = "world.distance-between-islands", needsReset = true) private int islandDistance = 192; @ConfigComment("Default protection range radius in blocks. Cannot be larger than distance.") @ConfigComment("Admins can change protection sizes for players individually using /bsbadmin range set ") @ConfigComment("or set this permission: bskyblock.island.range.") @ConfigEntry(path = "world.protection-range", needsReset = true) private int islandProtectionRange = 100; @ConfigComment("Start islands at these coordinates. This is where new islands will start in the") @ConfigComment("world. These must be a factor of your island distance, but the plugin will auto") @ConfigComment("calculate the closest location on the grid. Islands develop around this location") @ConfigComment("both positively and negatively in a square grid.") @ConfigComment("If none of this makes sense, leave it at 0,0.") @ConfigEntry(path = "world.start-x", needsReset = true) private int islandStartX = 0; @ConfigEntry(path = "world.start-z", needsReset = true) private int islandStartZ = 0; @ConfigEntry(path = "world.offset-x") private int islandXOffset; @ConfigEntry(path = "world.offset-z") private int islandZOffset; @ConfigComment("Island height - Lowest is 5.") @ConfigComment("It is the y coordinate of the bedrock block in the schem.") @ConfigEntry(path = "world.island-height") private int islandHeight = 100; @ConfigComment("Use your own world generator for this world.") @ConfigComment("In this case, the plugin will not generate anything.") @ConfigComment("If used, you must specify the world name and generator in the bukkit.yml file.") @ConfigComment("See https://bukkit.gamepedia.com/Bukkit.yml#.2AOPTIONAL.2A_worlds") @ConfigEntry(path = "world.use-own-generator") private boolean useOwnGenerator; @ConfigComment("Sea height (don't changes this mid-game unless you delete the world)") @ConfigComment("Minimum is 0, which means you are playing Skyblock!") @ConfigComment("If sea height is less than about 10, then players will drop right through it") @ConfigComment("if it exists. Makes for an interesting variation on skyblock.") @ConfigEntry(path = "world.sea-height", needsReset = true) private int seaHeight = 0; @ConfigComment("Maximum number of islands in the world. Set to -1 or 0 for unlimited.") @ConfigComment("If the number of islands is greater than this number, it will stop players from creating islands.") @ConfigEntry(path = "world.max-islands") private int maxIslands = -1; @ConfigComment("The default game mode for this world. Players will be set to this mode when they create") @ConfigComment("a new island for example. Options are SURVIVAL, CREATIVE, ADVENTURE, SPECTATOR") @ConfigEntry(path = "world.default-game-mode") private GameMode defaultGameMode = GameMode.SURVIVAL; @ConfigComment("The default biome for the overworld") @ConfigEntry(path = "world.default-biome") private Biome defaultBiome = Biome.PLAINS; @ConfigComment("The maximum number of players a player can ban at any one time in this game mode.") @ConfigComment("The permission acidisland.ban.maxlimit.X where X is a number can also be used per player") @ConfigComment("-1 = unlimited") @ConfigEntry(path = "world.ban-limit") private int banLimit = -1; // Nether @ConfigComment("Generate Nether - if this is false, the nether world will not be made and access to") @ConfigComment("the nether will not occur. Other plugins may still enable portal usage.") @ConfigComment("Note: Some default challenges will not be possible if there is no nether.") @ConfigComment("Note that with a standard nether all players arrive at the same portal and entering a") @ConfigComment("portal will return them back to their islands.") @ConfigEntry(path = "world.nether.generate") private boolean netherGenerate = true; @ConfigComment("Islands in Nether. Change to false for standard vanilla nether.") @ConfigEntry(path = "world.nether.islands", needsReset = true) private boolean netherIslands = true; @ConfigComment("Nether trees are made if a player grows a tree in the nether (gravel and glowstone)") @ConfigComment("Applies to both vanilla and islands Nether") @ConfigEntry(path = "world.nether.trees") private boolean netherTrees = true; @ConfigComment("Make the nether roof, if false, there is nothing up there") @ConfigComment("Change to false if lag is a problem from the generation") @ConfigComment("Only applies to islands Nether") @ConfigEntry(path = "world.nether.roof") private boolean netherRoof = true; @ConfigComment("Nether spawn protection radius - this is the distance around the nether spawn") @ConfigComment("that will be protected from player interaction (breaking blocks, pouring lava etc.)") @ConfigComment("Minimum is 0 (not recommended), maximum is 100. Default is 25.") @ConfigComment("Only applies to vanilla nether") @ConfigEntry(path = "world.nether.spawn-radius") private int netherSpawnRadius = 32; // End @ConfigEntry(path = "world.end.generate") private boolean endGenerate = true; @ConfigEntry(path = "world.end.islands", needsReset = true) private boolean endIslands = true; @ConfigEntry(path = "world.end.dragon-spawn", experimental = true) private boolean dragonSpawn = false; @ConfigComment("Mob white list - these mobs will NOT be removed when logging in or doing /island") @ConfigEntry(path = "world.remove-mobs-whitelist") private Set removeMobsWhitelist = new HashSet<>(); @ConfigComment("World flags. These are boolean settings for various flags for this world") @ConfigEntry(path = "world.flags") private Map worldFlags = new HashMap<>(); @ConfigComment("These are the default protection settings for new islands.") @ConfigComment("The value is the minimum island rank required allowed to do the action") @ConfigComment("Ranks are: Visitor = 0, Member = 900, Owner = 1000") @ConfigEntry(path = "world.default-island-flags") @Adapter(FlagSerializer.class) private Map defaultIslandFlags = new HashMap<>(); @ConfigComment("These are the default settings for new islands") @ConfigEntry(path = "world.default-island-settings") @Adapter(FlagSerializer2.class) private Map defaultIslandSettings = new HashMap<>(); @ConfigComment("These settings/flags are hidden from users") @ConfigComment("Ops can toggle hiding in-game using SHIFT-LEFT-CLICK on flags in settings") @ConfigEntry(path = "world.hidden-flags") private List hiddenFlags = new ArrayList<>(); @ConfigComment("Visitor banned commands - Visitors to islands cannot use these commands in this world") @ConfigEntry(path = "world.visitor-banned-commands") private List visitorBannedCommands = new ArrayList<>(); // --------------------------------------------- /* ISLAND */ @ConfigComment("Default max team size") @ConfigComment("Permission size cannot be less than the default below. ") @ConfigEntry(path = "island.max-team-size") private int maxTeamSize = 4; @ConfigComment("Default maximum number of homes a player can have. Min = 1") @ConfigComment("Accessed via /is sethome or /is go ") @ConfigEntry(path = "island.max-homes") private int maxHomes = 5; // Reset @ConfigComment("How many resets a player is allowed (override with /bsbadmin clearresets )") @ConfigComment("Value of -1 means unlimited, 0 means hardcore - no resets.") @ConfigComment("Example, 2 resets means they get 2 resets or 3 islands lifetime") @ConfigEntry(path = "island.reset.reset-limit") private int resetLimit = -1; @ConfigComment("Kicked or leaving players lose resets") @ConfigComment("Players who leave a team will lose an island reset chance") @ConfigComment("If a player has zero resets left and leaves a team, they cannot make a new") @ConfigComment("island by themselves and can only join a team.") @ConfigComment("Leave this true to avoid players exploiting free islands") @ConfigEntry(path = "island.reset.leavers-lose-reset") private boolean leaversLoseReset = false; @ConfigComment("Allow kicked players to keep their inventory.") @ConfigComment("If false, kicked player's inventory will be thrown at the island leader if the") @ConfigComment("kicked player is online and in the island world.") @ConfigEntry(path = "island.reset.kicked-keep-inventory") private boolean kickedKeepInventory = false; @ConfigComment("What the plugin should reset when the player joins or creates an island") @ConfigComment("Reset Money - if this is true, will reset the player's money to the starting money") @ConfigComment("Recommendation is that this is set to true, but if you run multi-worlds") @ConfigComment("make sure your economy handles multi-worlds too.") @ConfigEntry(path = "island.reset.on-join.money") private boolean onJoinResetMoney = false; @ConfigComment("Reset inventory - if true, the player's inventory will be cleared.") @ConfigComment("Note: if you have MultiInv running or a similar inventory control plugin, that") @ConfigComment("plugin may still reset the inventory when the world changes.") @ConfigEntry(path = "island.reset.on-join.inventory") private boolean onJoinResetInventory = false; @ConfigComment("Reset Ender Chest - if true, the player's Ender Chest will be cleared.") @ConfigEntry(path = "island.reset.on-join.ender-chest") private boolean onJoinResetEnderChest = false; @ConfigComment("What the plugin should reset when the player leaves or is kicked from an island") @ConfigComment("Reset Money - if this is true, will reset the player's money to the starting money") @ConfigComment("Recommendation is that this is set to true, but if you run multi-worlds") @ConfigComment("make sure your economy handles multi-worlds too.") @ConfigEntry(path = "island.reset.on-leave.money") private boolean onLeaveResetMoney = false; @ConfigComment("Reset inventory - if true, the player's inventory will be cleared.") @ConfigComment("Note: if you have MultiInv running or a similar inventory control plugin, that") @ConfigComment("plugin may still reset the inventory when the world changes.") @ConfigEntry(path = "island.reset.on-leave.inventory") private boolean onLeaveResetInventory = false; @ConfigComment("Reset Ender Chest - if true, the player's Ender Chest will be cleared.") @ConfigEntry(path = "island.reset.on-leave.ender-chest") private boolean onLeaveResetEnderChest = false; // Sethome @ConfigEntry(path = "island.sethome.nether.allow") private boolean allowSetHomeInNether = true; @ConfigEntry(path = "island.sethome.nether.require-confirmation") private boolean requireConfirmationToSetHomeInNether = true; @ConfigEntry(path = "island.sethome.the-end.allow") private boolean allowSetHomeInTheEnd = true; @ConfigEntry(path = "island.sethome.the-end.require-confirmation") private boolean requireConfirmationToSetHomeInTheEnd = true; // Deaths @ConfigComment("Whether deaths are counted or not.") @ConfigEntry(path = "island.deaths.counted") private boolean deathsCounted = true; @ConfigComment("Maximum number of deaths to count. The death count can be used by add-ons.") @ConfigEntry(path = "island.deaths.max") private int deathsMax = 10; @ConfigEntry(path = "island.deaths.sum-team") private boolean deathsSumTeam = false; @ConfigComment("When a player joins a team, reset their death count") @ConfigEntry(path = "island.deaths.team-join-reset") private boolean teamJoinDeathReset = true; // --------------------------------------------- /* PROTECTION */ @ConfigComment("Geo restrict mobs.") @ConfigComment("Mobs that exit the island space where they were spawned will be removed.") @ConfigEntry(path = "protection.geo-limit-settings") private List geoLimitSettings = new ArrayList<>(); // Invincible visitor settings @ConfigComment("Invincible visitors. List of damages that will not affect visitors.") @ConfigComment("Make list blank if visitors should receive all damages") @ConfigEntry(path = "protection.invincible-visitors") private List ivSettings = new ArrayList<>(); //---------------------------------------------------------------------------------------/ @ConfigComment("These settings should not be edited") @ConfigEntry(path = "do-not-edit-these-settings.reset-epoch") private long resetEpoch = 0; /** * @return the friendlyName */ @Override public String getFriendlyName() { return friendlyName; } /** * @return the worldName */ @Override public String getWorldName() { return worldName; } /** * @return the difficulty */ @Override public Difficulty getDifficulty() { return difficulty; } /** * @return the islandDistance */ @Override public int getIslandDistance() { return islandDistance; } /** * @return the islandProtectionRange */ @Override public int getIslandProtectionRange() { return islandProtectionRange; } /** * @return the islandStartX */ @Override public int getIslandStartX() { return islandStartX; } /** * @return the islandStartZ */ @Override public int getIslandStartZ() { return islandStartZ; } /** * @return the islandXOffset */ @Override public int getIslandXOffset() { return islandXOffset; } /** * @return the islandZOffset */ @Override public int getIslandZOffset() { return islandZOffset; } /** * @return the islandHeight */ @Override public int getIslandHeight() { return islandHeight; } /** * @return the useOwnGenerator */ @Override public boolean isUseOwnGenerator() { return useOwnGenerator; } /** * @return the seaHeight */ @Override public int getSeaHeight() { return seaHeight; } /** * @return the maxIslands */ @Override public int getMaxIslands() { return maxIslands; } /** * @return the defaultGameMode */ @Override public GameMode getDefaultGameMode() { return defaultGameMode; } /** * @return the netherGenerate */ @Override public boolean isNetherGenerate() { return netherGenerate; } /** * @return the netherIslands */ @Override public boolean isNetherIslands() { return netherIslands; } /** * @return the netherTrees */ @Override public boolean isNetherTrees() { return netherTrees; } /** * @return the netherRoof */ public boolean isNetherRoof() { return netherRoof; } /** * @return the netherSpawnRadius */ @Override public int getNetherSpawnRadius() { return netherSpawnRadius; } /** * @return the endGenerate */ @Override public boolean isEndGenerate() { return endGenerate; } /** * @return the endIslands */ @Override public boolean isEndIslands() { return endIslands; } /** * @return the dragonSpawn */ @Override public boolean isDragonSpawn() { return dragonSpawn; } /** * @return the removeMobsWhitelist */ @Override public Set getRemoveMobsWhitelist() { return removeMobsWhitelist; } /** * @return the worldFlags */ @Override public Map getWorldFlags() { return worldFlags; } /** * @return the defaultIslandFlags */ @Override public Map getDefaultIslandFlags() { return defaultIslandFlags; } /** * @return the defaultIslandSettings */ @Override public Map getDefaultIslandSettings() { return defaultIslandSettings; } /** * @return the hidden flags */ @Override public List getHiddenFlags() { return hiddenFlags; } /** * @return the visitorBannedCommands */ @Override public List getVisitorBannedCommands() { return visitorBannedCommands; } /** * @return the maxTeamSize */ @Override public int getMaxTeamSize() { return maxTeamSize; } /** * @return the maxHomes */ @Override public int getMaxHomes() { return maxHomes; } /** * @return the resetLimit */ @Override public int getResetLimit() { return resetLimit; } /** * @return the leaversLoseReset */ public boolean isLeaversLoseReset() { return leaversLoseReset; } /** * @return the kickedKeepInventory */ public boolean isKickedKeepInventory() { return kickedKeepInventory; } /** * @return the onJoinResetMoney */ @Override public boolean isOnJoinResetMoney() { return onJoinResetMoney; } /** * @return the onJoinResetInventory */ @Override public boolean isOnJoinResetInventory() { return onJoinResetInventory; } /** * @return the onJoinResetEnderChest */ @Override public boolean isOnJoinResetEnderChest() { return onJoinResetEnderChest; } /** * @return the onLeaveResetMoney */ @Override public boolean isOnLeaveResetMoney() { return onLeaveResetMoney; } /** * @return the onLeaveResetInventory */ @Override public boolean isOnLeaveResetInventory() { return onLeaveResetInventory; } /** * @return the onLeaveResetEnderChest */ @Override public boolean isOnLeaveResetEnderChest() { return onLeaveResetEnderChest; } /** * @return the isDeathsCounted */ @Override public boolean isDeathsCounted() { return deathsCounted; } /** * @return the allowSetHomeInNether */ @Override public boolean isAllowSetHomeInNether() { return allowSetHomeInNether; } /** * @return the allowSetHomeInTheEnd */ @Override public boolean isAllowSetHomeInTheEnd() { return allowSetHomeInTheEnd; } /** * @return the requireConfirmationToSetHomeInNether */ @Override public boolean isRequireConfirmationToSetHomeInNether() { return requireConfirmationToSetHomeInNether; } /** * @return the requireConfirmationToSetHomeInTheEnd */ @Override public boolean isRequireConfirmationToSetHomeInTheEnd() { return requireConfirmationToSetHomeInTheEnd; } /** * @return the deathsMax */ @Override public int getDeathsMax() { return deathsMax; } /** * @return the deathsSumTeam */ public boolean isDeathsSumTeam() { return deathsSumTeam; } /** * @return the teamJoinDeathReset */ @Override public boolean isTeamJoinDeathReset() { return teamJoinDeathReset; } /** * @return the geoLimitSettings */ @Override public List getGeoLimitSettings() { return geoLimitSettings; } /** * @return the ivSettings */ @Override public List getIvSettings() { return ivSettings; } /** * @return the resetEpoch */ @Override public long getResetEpoch() { return resetEpoch; } /** * @param friendlyName the friendlyName to set */ public void setFriendlyName(String friendlyName) { this.friendlyName = friendlyName; } /** * @param worldName the worldName to set */ public void setWorldName(String worldName) { this.worldName = worldName; } /** * @param difficulty the difficulty to set */ @Override public void setDifficulty(Difficulty difficulty) { this.difficulty = difficulty; } /** * @param islandDistance the islandDistance to set */ public void setIslandDistance(int islandDistance) { this.islandDistance = islandDistance; } /** * @param islandProtectionRange the islandProtectionRange to set */ public void setIslandProtectionRange(int islandProtectionRange) { this.islandProtectionRange = islandProtectionRange; } /** * @param islandStartX the islandStartX to set */ public void setIslandStartX(int islandStartX) { this.islandStartX = islandStartX; } /** * @param islandStartZ the islandStartZ to set */ public void setIslandStartZ(int islandStartZ) { this.islandStartZ = islandStartZ; } /** * @param islandXOffset the islandXOffset to set */ public void setIslandXOffset(int islandXOffset) { this.islandXOffset = islandXOffset; } /** * @param islandZOffset the islandZOffset to set */ public void setIslandZOffset(int islandZOffset) { this.islandZOffset = islandZOffset; } /** * @param islandHeight the islandHeight to set */ public void setIslandHeight(int islandHeight) { this.islandHeight = islandHeight; } /** * @param useOwnGenerator the useOwnGenerator to set */ public void setUseOwnGenerator(boolean useOwnGenerator) { this.useOwnGenerator = useOwnGenerator; } /** * @param seaHeight the seaHeight to set */ public void setSeaHeight(int seaHeight) { this.seaHeight = seaHeight; } /** * @param maxIslands the maxIslands to set */ public void setMaxIslands(int maxIslands) { this.maxIslands = maxIslands; } /** * @param defaultGameMode the defaultGameMode to set */ public void setDefaultGameMode(GameMode defaultGameMode) { this.defaultGameMode = defaultGameMode; } /** * @param netherGenerate the netherGenerate to set */ public void setNetherGenerate(boolean netherGenerate) { this.netherGenerate = netherGenerate; } /** * @param netherIslands the netherIslands to set */ public void setNetherIslands(boolean netherIslands) { this.netherIslands = netherIslands; } /** * @param netherTrees the netherTrees to set */ public void setNetherTrees(boolean netherTrees) { this.netherTrees = netherTrees; } /** * @param netherRoof the netherRoof to set */ public void setNetherRoof(boolean netherRoof) { this.netherRoof = netherRoof; } /** * @param netherSpawnRadius the netherSpawnRadius to set */ public void setNetherSpawnRadius(int netherSpawnRadius) { this.netherSpawnRadius = netherSpawnRadius; } /** * @param endGenerate the endGenerate to set */ public void setEndGenerate(boolean endGenerate) { this.endGenerate = endGenerate; } /** * @param endIslands the endIslands to set */ public void setEndIslands(boolean endIslands) { this.endIslands = endIslands; } /** * @param dragonSpawn the dragonSpawn to set */ public void setDragonSpawn(boolean dragonSpawn) { this.dragonSpawn = dragonSpawn; } /** * @param removeMobsWhitelist the removeMobsWhitelist to set */ public void setRemoveMobsWhitelist(Set removeMobsWhitelist) { this.removeMobsWhitelist = removeMobsWhitelist; } /** * @param worldFlags the worldFlags to set */ public void setWorldFlags(Map worldFlags) { this.worldFlags = worldFlags; } /** * @param defaultIslandFlags the defaultIslandFlags to set */ public void setDefaultIslandFlags(Map defaultIslandFlags) { this.defaultIslandFlags = defaultIslandFlags; } /** * @param defaultIslandSettings the defaultIslandSettings to set */ public void setDefaultIslandSettings(Map defaultIslandSettings) { this.defaultIslandSettings = defaultIslandSettings; } /** * @param hiddenFlags the hidden flags to set */ public void setHiddenFlags(List hiddenFlags) { this.hiddenFlags = hiddenFlags; } /** * @param visitorBannedCommands the visitorBannedCommands to set */ public void setVisitorBannedCommands(List visitorBannedCommands) { this.visitorBannedCommands = visitorBannedCommands; } /** * @param maxTeamSize the maxTeamSize to set */ public void setMaxTeamSize(int maxTeamSize) { this.maxTeamSize = maxTeamSize; } /** * @param maxHomes the maxHomes to set */ public void setMaxHomes(int maxHomes) { this.maxHomes = maxHomes; } /** * @param resetLimit the resetLimit to set */ public void setResetLimit(int resetLimit) { this.resetLimit = resetLimit; } /** * @param leaversLoseReset the leaversLoseReset to set */ public void setLeaversLoseReset(boolean leaversLoseReset) { this.leaversLoseReset = leaversLoseReset; } /** * @param kickedKeepInventory the kickedKeepInventory to set */ public void setKickedKeepInventory(boolean kickedKeepInventory) { this.kickedKeepInventory = kickedKeepInventory; } /** * @param onJoinResetMoney the onJoinResetMoney to set */ public void setOnJoinResetMoney(boolean onJoinResetMoney) { this.onJoinResetMoney = onJoinResetMoney; } /** * @param onJoinResetInventory the onJoinResetInventory to set */ public void setOnJoinResetInventory(boolean onJoinResetInventory) { this.onJoinResetInventory = onJoinResetInventory; } /** * @param onJoinResetEnderChest the onJoinResetEnderChest to set */ public void setOnJoinResetEnderChest(boolean onJoinResetEnderChest) { this.onJoinResetEnderChest = onJoinResetEnderChest; } /** * @param onLeaveResetMoney the onLeaveResetMoney to set */ public void setOnLeaveResetMoney(boolean onLeaveResetMoney) { this.onLeaveResetMoney = onLeaveResetMoney; } /** * @param onLeaveResetInventory the onLeaveResetInventory to set */ public void setOnLeaveResetInventory(boolean onLeaveResetInventory) { this.onLeaveResetInventory = onLeaveResetInventory; } /** * @param onLeaveResetEnderChest the onLeaveResetEnderChest to set */ public void setOnLeaveResetEnderChest(boolean onLeaveResetEnderChest) { this.onLeaveResetEnderChest = onLeaveResetEnderChest; } /** * @param deathsCounted the deathsCounted to set */ public void setDeathsCounted(boolean deathsCounted) { this.deathsCounted = deathsCounted; } /** * @param deathsMax the deathsMax to set */ public void setDeathsMax(int deathsMax) { this.deathsMax = deathsMax; } /** * @param deathsSumTeam the deathsSumTeam to set */ public void setDeathsSumTeam(boolean deathsSumTeam) { this.deathsSumTeam = deathsSumTeam; } /** * @param teamJoinDeathReset the teamJoinDeathReset to set */ public void setTeamJoinDeathReset(boolean teamJoinDeathReset) { this.teamJoinDeathReset = teamJoinDeathReset; } /** * @param geoLimitSettings the geoLimitSettings to set */ public void setGeoLimitSettings(List geoLimitSettings) { this.geoLimitSettings = geoLimitSettings; } /** * @param ivSettings the ivSettings to set */ public void setIvSettings(List ivSettings) { this.ivSettings = ivSettings; } /** * @param allowSetHomeInNether the allowSetHomeInNether to set */ public void setAllowSetHomeInNether(boolean allowSetHomeInNether) { this.allowSetHomeInNether = allowSetHomeInNether; } /** * @param allowSetHomeInTheEnd the allowSetHomeInTheEnd to set */ public void setAllowSetHomeInTheEnd(boolean allowSetHomeInTheEnd) { this.allowSetHomeInTheEnd = allowSetHomeInTheEnd; } /** * @param requireConfirmationToSetHomeInNether the requireConfirmationToSetHomeInNether to set */ public void setRequireConfirmationToSetHomeInNether(boolean requireConfirmationToSetHomeInNether) { this.requireConfirmationToSetHomeInNether = requireConfirmationToSetHomeInNether; } /** * @param requireConfirmationToSetHomeInTheEnd the requireConfirmationToSetHomeInTheEnd to set */ public void setRequireConfirmationToSetHomeInTheEnd(boolean requireConfirmationToSetHomeInTheEnd) { this.requireConfirmationToSetHomeInTheEnd = requireConfirmationToSetHomeInTheEnd; } /** * @param resetEpoch the resetEpoch to set */ @Override public void setResetEpoch(long resetEpoch) { this.resetEpoch = resetEpoch; } @Override public String getPermissionPrefix() { return "bskyblock"; } @Override public boolean isWaterUnsafe() { return false; } /** * @return default biome */ public Biome getDefaultBiome() { return defaultBiome; } /** * @param defaultBiome the defaultBiome to set */ public void setDefaultBiome(Biome defaultBiome) { this.defaultBiome = defaultBiome; } /** * @return the banLimit */ @Override public int getBanLimit() { return banLimit; } /** * @param banLimit the banLimit to set */ public void setBanLimit(int banLimit) { this.banLimit = banLimit; } /** * This method returns the islandCommand value. * @return the value of islandCommand. */ public String getIslandCommand() { return islandCommand; } /** * This method sets the islandCommand value. * @param islandCommand the islandCommand new value. * */ public void setIslandCommand(String islandCommand) { this.islandCommand = islandCommand; } /** * This method returns the adminCommand value. * @return the value of adminCommand. */ public String getAdminCommand() { return adminCommand; } /** * This method sets the adminCommand value. * @param adminCommand the adminCommand new value. * */ public void setAdminCommand(String adminCommand) { this.adminCommand = adminCommand; } }