Added default values to Settings

This commit is contained in:
Florian CUNY 2018-02-07 13:16:09 +01:00
parent e5a87ccf7a
commit 293ab2ccf9

View File

@ -28,6 +28,8 @@ import us.tastybento.bskyblock.database.objects.adapters.PotionEffectListAdapter
@StoreAt(filename="config.yml") // Explicitly call out what name this should have. @StoreAt(filename="config.yml") // Explicitly call out what name this should have.
public class Settings implements ISettings<Settings> { public class Settings implements ISettings<Settings> {
private String uniqueId = "config";
// --------------------------------------------- // ---------------------------------------------
/* GENERAL */ /* GENERAL */
@ -141,9 +143,9 @@ public class Settings implements ISettings<Settings> {
@ConfigEntry(path = "island.max-homes") @ConfigEntry(path = "island.max-homes")
private int maxHomes = 5; private int maxHomes = 5;
@ConfigEntry(path = "island.name.min-length") @ConfigEntry(path = "island.name.min-length")
private int nameMinLength; private int nameMinLength = 4;
@ConfigEntry(path = "island.name.max-length") @ConfigEntry(path = "island.name.max-length")
private int nameMaxLength; private int nameMaxLength = 20;
@ConfigEntry(path = "island.invite-wait") @ConfigEntry(path = "island.invite-wait")
private int inviteWait = 60; private int inviteWait = 60;
@ -152,33 +154,33 @@ public class Settings implements ISettings<Settings> {
private int resetLimit = -1; private int resetLimit = -1;
@ConfigEntry(path = "island.require-confirmation.reset") @ConfigEntry(path = "island.require-confirmation.reset")
private boolean resetConfirmation; private boolean resetConfirmation = true;
@ConfigEntry(path = "island.reset-wait") @ConfigEntry(path = "island.reset-wait")
private long resetWait = 300; private long resetWait = 300;
@ConfigEntry(path = "island.reset.leavers-lose-reset") @ConfigEntry(path = "island.reset.leavers-lose-reset")
private boolean leaversLoseReset; private boolean leaversLoseReset = false;
@ConfigEntry(path = "island.reset.kicked-keep-inventory") @ConfigEntry(path = "island.reset.kicked-keep-inventory")
private boolean kickedKeepInventory; private boolean kickedKeepInventory = false;
// Remove mobs // Remove mobs
@ConfigEntry(path = "island.remove-mobs.on-login") @ConfigEntry(path = "island.remove-mobs.on-login")
private boolean removeMobsOnLogin; private boolean removeMobsOnLogin = false;
@ConfigEntry(path = "island.remove-mobs.on-island") @ConfigEntry(path = "island.remove-mobs.on-island")
private boolean removeMobsOnIsland; private boolean removeMobsOnIsland = false;
@ConfigEntry(path = "island.remove-mobs.whitelist") @ConfigEntry(path = "island.remove-mobs.whitelist")
private List<String> removeMobsWhitelist = new ArrayList<>(); private List<String> removeMobsWhitelist = new ArrayList<>();
@ConfigEntry(path = "island.make-island-if-none") @ConfigEntry(path = "island.make-island-if-none")
private boolean makeIslandIfNone; private boolean makeIslandIfNone = false;
@ConfigEntry(path = "island.immediate-teleport-on-island") @ConfigEntry(path = "island.immediate-teleport-on-island")
private boolean immediateTeleportOnIsland; private boolean immediateTeleportOnIsland = false;
private boolean respawnOnIsland; private boolean respawnOnIsland = true;
// Deaths // Deaths
@ConfigEntry(path = "island.deaths.max") @ConfigEntry(path = "island.deaths.max")
@ -256,20 +258,18 @@ public class Settings implements ISettings<Settings> {
private Map<String,Integer> limitedBlocks = new HashMap<>(); private Map<String,Integer> limitedBlocks = new HashMap<>();
private boolean teamJoinDeathReset; private boolean teamJoinDeathReset;
private String uniqueId = "config";
// Timeout for team kick and leave commands // Timeout for team kick and leave commands
@ConfigEntry(path = "island.require-confirmation.kick") @ConfigEntry(path = "island.require-confirmation.kick")
private boolean kickConfirmation; private boolean kickConfirmation = true;
@ConfigEntry(path = "island.require-confirmation.kick-wait") @ConfigEntry(path = "island.require-confirmation.kick-wait")
private long kickWait; private long kickWait = 300;
@ConfigEntry(path = "island.require-confirmation.leave") @ConfigEntry(path = "island.require-confirmation.leave")
private boolean leaveConfirmation; private boolean leaveConfirmation = true;
@ConfigEntry(path = "island.require-confirmation.leave-wait") @ConfigEntry(path = "island.require-confirmation.leave-wait")
private long leaveWait; private long leaveWait = 300;
/** /**