Various fixes to config

Fixed references to ASkyBlock, misleading comments, etc...
Also "tagged" a few settings as experimental
This commit is contained in:
Florian CUNY 2018-10-31 15:05:43 +01:00
parent d7cc07895f
commit 8290e15471
2 changed files with 50 additions and 57 deletions

View File

@ -42,7 +42,7 @@ public class Settings implements DataObject, WorldSettings {
private String friendlyName = "BSkyBlock"; private String friendlyName = "BSkyBlock";
@ConfigComment("Name of the world - if it does not exist then it will be generated.") @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, BSkyBlock_nether, BSkyBlock_end)") @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") @ConfigEntry(path = "world.world-name")
private String worldName = "BSkyBlock-world"; private String worldName = "BSkyBlock-world";
@ -55,11 +55,11 @@ public class Settings implements DataObject, WorldSettings {
@ConfigComment("Will be rounded up to the nearest 16 blocks.") @ConfigComment("Will be rounded up to the nearest 16 blocks.")
@ConfigComment("It is the same for every dimension : Overworld, Nether and End.") @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.") @ConfigComment("This value cannot be changed mid-game and the plugin will not start if it is different.")
@ConfigEntry(path = "world.distance-between-islands") @ConfigEntry(path = "world.distance-between-islands", needsReset = true)
private int islandDistance = 192; private int islandDistance = 192;
@ConfigComment("Default protection range radius in blocks. Cannot be larger than distance.") @ConfigComment("Default protection range radius in blocks. Cannot be larger than distance.")
@ConfigComment("Admins can change protection sizes for players individually using /bsadmin setrange") @ConfigComment("Admins can change protection sizes for players individually using /bsbadmin range set <player> <new range>")
@ConfigComment("or set this permission: bskyblock.island.range.<number>") @ConfigComment("or set this permission: bskyblock.island.range.<number>")
@ConfigEntry(path = "world.protection-range") @ConfigEntry(path = "world.protection-range")
private int islandProtectionRange = 100; private int islandProtectionRange = 100;
@ -81,23 +81,23 @@ public class Settings implements DataObject, WorldSettings {
private int islandZOffset; private int islandZOffset;
@ConfigComment("Island height - Lowest is 5.") @ConfigComment("Island height - Lowest is 5.")
@ConfigComment("It is the y coordinate of the bedrock block in the schem") @ConfigComment("It is the y coordinate of the bedrock block in the schem.")
@ConfigEntry(path = "world.island-height") @ConfigEntry(path = "world.island-height")
private int islandHeight = 100; private int islandHeight = 100;
@ConfigComment("Use your own world generator for this world. In this case, the plugin will not generate") @ConfigComment("Use your own world generator for this world.")
@ConfigComment("anything.") @ConfigComment("In this case, the plugin will not generate anything.")
@ConfigEntry(path = "world.use-own-generator") @ConfigEntry(path = "world.use-own-generator", experimental = true)
private boolean useOwnGenerator; private boolean useOwnGenerator;
@ConfigComment("Sea height (don't changes this mid-game unless you delete the world)") @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("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 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.") @ConfigComment("if it exists. Makes for an interesting variation on skyblock.")
@ConfigEntry(path = "world.sea-height") @ConfigEntry(path = "world.sea-height", needsReset = true)
private int seaHeight = 0; private int seaHeight = 0;
@ConfigComment("Maximum number of islands in the world. Set to 0 for unlimited. ") @ConfigComment("Maximum number of islands in the world. Set to -1 for unlimited.")
@ConfigComment("If the number of islands is greater than this number, no new island will be created.") @ConfigComment("If the number of islands is greater than this number, no new island will be created.")
@ConfigEntry(path = "world.max-islands") @ConfigEntry(path = "world.max-islands")
private int maxIslands = -1; private int maxIslands = -1;
@ -114,7 +114,7 @@ public class Settings implements DataObject, WorldSettings {
// Nether // Nether
@ConfigComment("Generate Nether - if this is false, the nether world will not be made and access to") @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("the nether will not occur. Other plugins may still enable portal usage.")
@ConfigComment("Note: Some challenges will not be possible if there is no nether.") @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("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.") @ConfigComment("portal will return them back to their islands.")
@ConfigEntry(path = "world.nether.generate") @ConfigEntry(path = "world.nether.generate")
@ -149,7 +149,7 @@ public class Settings implements DataObject, WorldSettings {
@ConfigEntry(path = "world.end.islands", needsReset = true) @ConfigEntry(path = "world.end.islands", needsReset = true)
private boolean endIslands = true; private boolean endIslands = true;
@ConfigEntry(path = "world.end.dragon-spawn") @ConfigEntry(path = "world.end.dragon-spawn", experimental = true)
private boolean dragonSpawn = false; private boolean dragonSpawn = false;
@ConfigComment("Mob white list - these mobs will NOT be removed when logging in or doing /island") @ConfigComment("Mob white list - these mobs will NOT be removed when logging in or doing /island")
@ -173,7 +173,7 @@ public class Settings implements DataObject, WorldSettings {
private Map<Flag, Integer> defaultIslandSettings = new HashMap<>(); private Map<Flag, Integer> defaultIslandSettings = new HashMap<>();
@ConfigComment("These are the settings visible to users. (Not implemented yet)") @ConfigComment("These are the settings visible to users. (Not implemented yet)")
@ConfigEntry(path = "world.visible-settings") @ConfigEntry(path = "world.visible-settings", experimental = true)
private List<String> visibleSettings = new ArrayList<>(); private List<String> visibleSettings = new ArrayList<>();
@ConfigComment("Visitor banned commands - Visitors to islands cannot use these commands in this world") @ConfigComment("Visitor banned commands - Visitors to islands cannot use these commands in this world")
@ -184,18 +184,17 @@ public class Settings implements DataObject, WorldSettings {
/* ISLAND */ /* ISLAND */
@ConfigComment("Default max team size") @ConfigComment("Default max team size")
@ConfigComment("Use this permission to set for specific user groups: askyblock.team.maxsize.<number>")
@ConfigComment("Permission size cannot be less than the default below. ") @ConfigComment("Permission size cannot be less than the default below. ")
@ConfigEntry(path = "island.max-team-size") @ConfigEntry(path = "island.max-team-size")
private int maxTeamSize = 4; private int maxTeamSize = 4;
@ConfigComment("Default maximum number of homes a player can have. Min = 1") @ConfigComment("Default maximum number of homes a player can have. Min = 1")
@ConfigComment("Accessed via sethome <number> or go <number>") @ConfigComment("Accessed via /is sethome <number> or /is go <number>")
@ConfigComment("Use this permission to set for specific user groups: askyblock.island.maxhomes.<number>")
@ConfigEntry(path = "island.max-homes") @ConfigEntry(path = "island.max-homes")
private int maxHomes = 5; private int maxHomes = 5;
// Reset // Reset
@ConfigComment("How many resets a player is allowed (override with /asadmin clearreset <player>)") @ConfigComment("How many resets a player is allowed (override with /bsbadmin clearresets <player>)")
@ConfigComment("Value of -1 means unlimited, 0 means hardcore - no resets.") @ConfigComment("Value of -1 means unlimited, 0 means hardcore - no resets.")
@ConfigComment("Example, 2 resets means they get 2 resets or 3 islands lifetime") @ConfigComment("Example, 2 resets means they get 2 resets or 3 islands lifetime")
@ConfigEntry(path = "island.reset.reset-limit") @ConfigEntry(path = "island.reset.reset-limit")
@ -287,7 +286,6 @@ public class Settings implements DataObject, WorldSettings {
// --------------------------------------------- // ---------------------------------------------
/* PROTECTION */ /* PROTECTION */
private int togglePvPCooldown;
@ConfigComment("Geo restrict mobs.") @ConfigComment("Geo restrict mobs.")
@ConfigComment("Mobs that exit the island space where they were spawned will be removed.") @ConfigComment("Mobs that exit the island space where they were spawned will be removed.")
@ -302,6 +300,7 @@ public class Settings implements DataObject, WorldSettings {
//---------------------------------------------------------------------------------------/ //---------------------------------------------------------------------------------------/
@ConfigComment("Whether GUIs should be closed when the player clicks outside.")
@ConfigEntry(path = "panel.close-on-click-outside") @ConfigEntry(path = "panel.close-on-click-outside")
private boolean closePanelOnClickOutside = true; private boolean closePanelOnClickOutside = true;
@ -698,13 +697,6 @@ public class Settings implements DataObject, WorldSettings {
return teamJoinDeathReset; return teamJoinDeathReset;
} }
/**
* @return the togglePvPCooldown
*/
public int getTogglePvPCooldown() {
return togglePvPCooldown;
}
/** /**
* @return the geoLimitSettings * @return the geoLimitSettings
*/ */
@ -1060,13 +1052,6 @@ public class Settings implements DataObject, WorldSettings {
this.teamJoinDeathReset = teamJoinDeathReset; this.teamJoinDeathReset = teamJoinDeathReset;
} }
/**
* @param togglePvPCooldown the togglePvPCooldown to set
*/
public void setTogglePvPCooldown(int togglePvPCooldown) {
this.togglePvPCooldown = togglePvPCooldown;
}
/** /**
* @param geoLimitSettings the geoLimitSettings to set * @param geoLimitSettings the geoLimitSettings to set
*/ */
@ -1160,6 +1145,4 @@ public class Settings implements DataObject, WorldSettings {
public void setDefaultBiome(Biome defaultBiome) { public void setDefaultBiome(Biome defaultBiome) {
this.defaultBiome = defaultBiome; this.defaultBiome = defaultBiome;
} }
} }

View File

@ -1,4 +1,4 @@
# BSkyBlock Configuration FC-1 # BSkyBlock Configuration 0.5.0-SNAPSHOT
# This config file is dynamic and saved when the server is shutdown. # This config file is dynamic and saved when the server is shutdown.
# You cannot edit it while the server is running because changes will # You cannot edit it while the server is running because changes will
# be lost! Use in-game settings GUI or edit when server is offline. # be lost! Use in-game settings GUI or edit when server is offline.
@ -7,7 +7,7 @@ world:
# Friendly name for this world. Used in admin commands. Must be a single word # Friendly name for this world. Used in admin commands. Must be a single word
friendly-name: BSkyBlock friendly-name: BSkyBlock
# Name of the world - if it does not exist then it will be generated. # Name of the world - if it does not exist then it will be generated.
# It acts like a prefix for nether and end (e.g. BSkyBlock, BSkyBlock_nether, BSkyBlock_end) # It acts like a prefix for nether and end (e.g. BSkyBlock-world, BSkyBlock-world_nether, BSkyBlock-world_end)
world-name: BSkyBlock_world world-name: BSkyBlock_world
# World difficulty setting - PEACEFUL, EASY, NORMAL, HARD # World difficulty setting - PEACEFUL, EASY, NORMAL, HARD
# Other plugins may override this setting # Other plugins may override this setting
@ -18,7 +18,7 @@ world:
# This value cannot be changed mid-game and the plugin will not start if it is different. # This value cannot be changed mid-game and the plugin will not start if it is different.
distance-between-islands: 64 distance-between-islands: 64
# Default protection range radius in blocks. Cannot be larger than distance. # Default protection range radius in blocks. Cannot be larger than distance.
# Admins can change protection sizes for players individually using /bsadmin setrange # Admins can change protection sizes for players individually using /bsbadmin range set <player> <new range>
# or set this permission: bskyblock.island.range.<number> # or set this permission: bskyblock.island.range.<number>
protection-range: 50 protection-range: 50
# Start islands at these coordinates. This is where new islands will start in the # Start islands at these coordinates. This is where new islands will start in the
@ -31,17 +31,18 @@ world:
offset-x: 0 offset-x: 0
offset-z: 0 offset-z: 0
# Island height - Lowest is 5. # Island height - Lowest is 5.
# It is the y coordinate of the bedrock block in the schem # It is the y coordinate of the bedrock block in the schem.
island-height: 120 island-height: 120
# Use your own world generator for this world. In this case, the plugin will not generate # Use your own world generator for this world.
# anything. # In this case, the plugin will not generate anything.
# /!\ This feature is experimental and might not work as expected or might not work at all.
use-own-generator: false use-own-generator: false
# Sea height (don't changes this mid-game unless you delete the world) # Sea height (don't changes this mid-game unless you delete the world)
# Minimum is 0, which means you are playing Skyblock! # Minimum is 0, which means you are playing Skyblock!
# If sea height is less than about 10, then players will drop right through it # If sea height is less than about 10, then players will drop right through it
# if it exists. Makes for an interesting variation on skyblock. # if it exists. Makes for an interesting variation on skyblock.
sea-height: 0 sea-height: 0
# Maximum number of islands in the world. Set to 0 for unlimited. # Maximum number of islands in the world. Set to -1 for unlimited.
# If the number of islands is greater than this number, no new island will be created. # If the number of islands is greater than this number, no new island will be created.
max-islands: 0 max-islands: 0
# The default game mode for this world. Players will be set to this mode when they create # The default game mode for this world. Players will be set to this mode when they create
@ -52,7 +53,7 @@ world:
nether: nether:
# Generate Nether - if this is false, the nether world will not be made and access to # Generate Nether - if this is false, the nether world will not be made and access to
# the nether will not occur. Other plugins may still enable portal usage. # the nether will not occur. Other plugins may still enable portal usage.
# Note: Some challenges will not be possible if there is no nether. # Note: Some default challenges will not be possible if there is no nether.
# Note that with a standard nether all players arrive at the same portal and entering a # Note that with a standard nether all players arrive at the same portal and entering a
# portal will return them back to their islands. # portal will return them back to their islands.
generate: true generate: true
@ -73,13 +74,14 @@ world:
end: end:
generate: true generate: true
islands: true islands: true
# /!\ This feature is experimental and might not work as expected or might not work at all.
dragon-spawn: false dragon-spawn: false
# Mob white list - these mobs will NOT be removed when logging in or doing /island # Mob white list - these mobs will NOT be removed when logging in or doing /island
remove-mobs-whitelist: remove-mobs-whitelist:
- PIG_ZOMBIE - PIG_ZOMBIE
- ENDERMAN
- WITHER - WITHER
- ZOMBIE_VILLAGER - ZOMBIE_VILLAGER
- ENDERMAN
# World flags. These are boolean settings for various flags for this world # World flags. These are boolean settings for various flags for this world
flags: flags:
CREEPER_DAMAGE: true CREEPER_DAMAGE: true
@ -97,32 +99,32 @@ world:
ITEM_FRAME_DAMAGE: false ITEM_FRAME_DAMAGE: false
# These are the default protection settings for new islands. # These are the default protection settings for new islands.
# The value is the minimum island rank required allowed to do the action # The value is the minimum island rank required allowed to do the action
# Ranks are: Visitor = 0, Member = 500, Owner = 1000 # Ranks are: Visitor = 0, Member = 900, Owner = 1000
default-island-flags: default-island-flags:
HURT_ANIMALS: 500 HURT_ANIMALS: 500
COLLECT_WATER: 500 COLLECT_WATER: 500
REDSTONE: 500 REDSTONE: 500
BUTTON: 500
BUCKET: 500 BUCKET: 500
LOCK: 0 BUTTON: 500
FIRE_EXTINGUISH: 500 FIRE_EXTINGUISH: 500
LOCK: 0
ENDER_PEARL: 500 ENDER_PEARL: 500
DOOR: 500
BEACON: 500 BEACON: 500
DOOR: 500
TRAPDOOR: 500 TRAPDOOR: 500
PRESSURE_PLATE: 0
FURNACE: 500 FURNACE: 500
PRESSURE_PLATE: 0
PLACE_BLOCKS: 500 PLACE_BLOCKS: 500
ANVIL: 500 ANVIL: 500
FIRE: 500 FIRE: 500
CRAFTING: 0 CRAFTING: 0
BREEDING: 500 BREEDING: 500
TNT: 500 TNT: 500
ENCHANTING: 0
SHEARING: 500
HURT_VILLAGERS: 500 HURT_VILLAGERS: 500
BED: 500 SHEARING: 500
ENCHANTING: 0
SPAWN_EGGS: 500 SPAWN_EGGS: 500
BED: 500
COLLECT_LAVA: 500 COLLECT_LAVA: 500
MILKING: 0 MILKING: 0
LEVER: 500 LEVER: 500
@ -132,16 +134,16 @@ world:
GATE: 0 GATE: 0
TRADING: 0 TRADING: 0
EGGS: 500 EGGS: 500
PORTAL: 0
ITEM_DROP: 0 ITEM_DROP: 0
PORTAL: 0
CHEST: 500 CHEST: 500
NOTE_BLOCK: 0 NOTE_BLOCK: 0
LEASH: 500 LEASH: 500
BREAK_BLOCKS: 500 BREAK_BLOCKS: 500
MOUNT_INVENTORY: 500 MOUNT_INVENTORY: 500
CHORUS_FRUIT: 500 CHORUS_FRUIT: 500
CROP_TRAMPLE: 500
JUKEBOX: 500 JUKEBOX: 500
CROP_TRAMPLE: 500
ITEM_PICKUP: 0 ITEM_PICKUP: 0
BREWING: 500 BREWING: 500
# These are the default settings for new islands # These are the default settings for new islands
@ -153,6 +155,7 @@ world:
FIRE_SPREAD: true FIRE_SPREAD: true
PVP_OVERWORLD: false PVP_OVERWORLD: false
# These are the settings visible to users. (Not implemented yet) # These are the settings visible to users. (Not implemented yet)
# /!\ This feature is experimental and might not work as expected or might not work at all.
visible-settings: [] visible-settings: []
# Visitor banned commands - Visitors to islands cannot use these commands in this world # Visitor banned commands - Visitors to islands cannot use these commands in this world
visitor-banned-commands: visitor-banned-commands:
@ -160,15 +163,13 @@ world:
- spawnmob - spawnmob
island: island:
# Default max team size # Default max team size
# Use this permission to set for specific user groups: askyblock.team.maxsize.<number>
# Permission size cannot be less than the default below. # Permission size cannot be less than the default below.
max-team-size: 4 max-team-size: 4
# Default maximum number of homes a player can have. Min = 1 # Default maximum number of homes a player can have. Min = 1
# Accessed via sethome <number> or go <number> # Accessed via /is sethome <number> or /is go <number>
# Use this permission to set for specific user groups: askyblock.island.maxhomes.<number>
max-homes: 1 max-homes: 1
reset: reset:
# How many resets a player is allowed (override with /asadmin clearreset <player>) # How many resets a player is allowed (override with /bsbadmin clearresets <player>)
# Value of -1 means unlimited, 0 means hardcore - no resets. # Value of -1 means unlimited, 0 means hardcore - no resets.
# Example, 2 resets means they get 2 resets or 3 islands lifetime # Example, 2 resets means they get 2 resets or 3 islands lifetime
reset-limit: -1 reset-limit: -1
@ -210,13 +211,21 @@ island:
reset: true reset: true
# Have player's respawn on their island if they die # Have player's respawn on their island if they die
respawn-on-island: false respawn-on-island: false
sethome:
nether:
allow: true
require-confirmation: true
the-end:
allow: true
require-confirmation: true
deaths: deaths:
# Whether deaths are counted or not.
counted: true
# Maximum number of deaths to count. The death count can be used by add-ons. # Maximum number of deaths to count. The death count can be used by add-ons.
max: 10 max: 10
sum-team: false sum-team: false
# When a player joins a team, reset their death count # When a player joins a team, reset their death count
team-join-reset: true team-join-reset: true
togglePvPCooldown: 0
protection: protection:
# Geo restrict mobs. # Geo restrict mobs.
# Mobs that exit the island space where they were spawned will be removed. # Mobs that exit the island space where they were spawned will be removed.
@ -252,6 +261,7 @@ protection:
- CRAMMING - CRAMMING
- VOID - VOID
panel: panel:
# Whether GUIs should be closed when the player clicks outside.
close-on-click-outside: true close-on-click-outside: true
do-not-edit-these-settings: do-not-edit-these-settings:
# These settings should not be edited # These settings should not be edited