diff --git a/src/main/java/com/iridium/iridiumskyblock/configs/BankItems.java b/src/main/java/com/iridium/iridiumskyblock/configs/BankItems.java index 5ff85a623..3417bb675 100644 --- a/src/main/java/com/iridium/iridiumskyblock/configs/BankItems.java +++ b/src/main/java/com/iridium/iridiumskyblock/configs/BankItems.java @@ -1,6 +1,7 @@ package com.iridium.iridiumskyblock.configs; import com.iridium.iridiumcore.Item; +import com.iridium.iridiumcore.dependencies.fasterxml.annotation.JsonIgnoreProperties; import com.iridium.iridiumcore.dependencies.xseries.XMaterial; import com.iridium.iridiumskyblock.bank.CrystalsBankItem; import com.iridium.iridiumskyblock.bank.ExperienceBankItem; @@ -12,7 +13,7 @@ * The bank item configuration used by IridiumSkyblock (bankitems.yml). * Is deserialized automatically on plugin startup and reload. */ - +@JsonIgnoreProperties(ignoreUnknown = true) public class BankItems { public CrystalsBankItem crystalsBankItem = new CrystalsBankItem(10, new Item(XMaterial.NETHER_STAR, 13, 1, "&b&lIsland Crystals", Arrays.asList("&7%amount% Crystals", "&b&l[!] &bLeft click to withdraw", "&b&l[!] &bRight click to deposit"))); diff --git a/src/main/java/com/iridium/iridiumskyblock/configs/BlockValues.java b/src/main/java/com/iridium/iridiumskyblock/configs/BlockValues.java index d94b7c498..4ac144ff4 100644 --- a/src/main/java/com/iridium/iridiumskyblock/configs/BlockValues.java +++ b/src/main/java/com/iridium/iridiumskyblock/configs/BlockValues.java @@ -1,6 +1,7 @@ package com.iridium.iridiumskyblock.configs; import com.google.common.collect.ImmutableMap; +import com.iridium.iridiumcore.dependencies.fasterxml.annotation.JsonIgnoreProperties; import com.iridium.iridiumcore.dependencies.xseries.XMaterial; import lombok.AllArgsConstructor; import lombok.NoArgsConstructor; @@ -12,7 +13,7 @@ * The block value configuration used by IridiumSkyblock (blockvalues.yml). * Is deserialized automatically on plugin startup and reload. */ - +@JsonIgnoreProperties(ignoreUnknown = true) public class BlockValues { public Map blockValues = ImmutableMap.builder() diff --git a/src/main/java/com/iridium/iridiumskyblock/configs/Boosters.java b/src/main/java/com/iridium/iridiumskyblock/configs/Boosters.java index 844a3c800..bfb0eced8 100644 --- a/src/main/java/com/iridium/iridiumskyblock/configs/Boosters.java +++ b/src/main/java/com/iridium/iridiumskyblock/configs/Boosters.java @@ -1,12 +1,13 @@ package com.iridium.iridiumskyblock.configs; import com.iridium.iridiumcore.Item; +import com.iridium.iridiumcore.dependencies.fasterxml.annotation.JsonIgnoreProperties; import com.iridium.iridiumcore.dependencies.xseries.XMaterial; import com.iridium.iridiumskyblock.Booster; import java.util.Arrays; - +@JsonIgnoreProperties(ignoreUnknown = true) public class Boosters { public Booster farmingBooster = new Booster(new Item(XMaterial.WHEAT, 10, 1, "&b&lFarming Booster", Arrays.asList( diff --git a/src/main/java/com/iridium/iridiumskyblock/configs/Commands.java b/src/main/java/com/iridium/iridiumskyblock/configs/Commands.java index ee6614c82..deaedd04c 100644 --- a/src/main/java/com/iridium/iridiumskyblock/configs/Commands.java +++ b/src/main/java/com/iridium/iridiumskyblock/configs/Commands.java @@ -1,8 +1,9 @@ package com.iridium.iridiumskyblock.configs; +import com.iridium.iridiumcore.dependencies.fasterxml.annotation.JsonIgnoreProperties; import com.iridium.iridiumskyblock.commands.*; - +@JsonIgnoreProperties(ignoreUnknown = true) public class Commands { public AboutCommand aboutCommand = new AboutCommand(); diff --git a/src/main/java/com/iridium/iridiumskyblock/configs/Configuration.java b/src/main/java/com/iridium/iridiumskyblock/configs/Configuration.java index 6cb0a916d..361216d8b 100644 --- a/src/main/java/com/iridium/iridiumskyblock/configs/Configuration.java +++ b/src/main/java/com/iridium/iridiumskyblock/configs/Configuration.java @@ -1,6 +1,7 @@ package com.iridium.iridiumskyblock.configs; import com.google.common.collect.ImmutableMap; +import com.iridium.iridiumcore.dependencies.fasterxml.annotation.JsonIgnoreProperties; import com.iridium.iridiumcore.dependencies.xseries.XMaterial; import com.iridium.iridiumcore.utils.NumberFormatter; import com.iridium.iridiumskyblock.generators.GeneratorType; @@ -13,7 +14,7 @@ * The main configuration of IridiumSkyblock (configuration.yml). * Is deserialized automatically on plugin startup and reload. */ - +@JsonIgnoreProperties(ignoreUnknown = true) public class Configuration { public String prefix = "&lIridiumSkyblock &8ยป"; diff --git a/src/main/java/com/iridium/iridiumskyblock/configs/Inventories.java b/src/main/java/com/iridium/iridiumskyblock/configs/Inventories.java index c40af199d..d25903cd7 100644 --- a/src/main/java/com/iridium/iridiumskyblock/configs/Inventories.java +++ b/src/main/java/com/iridium/iridiumskyblock/configs/Inventories.java @@ -4,13 +4,14 @@ import com.iridium.iridiumcore.Background; import com.iridium.iridiumcore.Item; import com.iridium.iridiumcore.dependencies.fasterxml.annotation.JsonIgnore; +import com.iridium.iridiumcore.dependencies.fasterxml.annotation.JsonIgnoreProperties; import com.iridium.iridiumcore.dependencies.xseries.XMaterial; import com.iridium.iridiumskyblock.configs.inventories.*; import java.util.Arrays; import java.util.Collections; - +@JsonIgnoreProperties(ignoreUnknown = true) public class Inventories { @JsonIgnore diff --git a/src/main/java/com/iridium/iridiumskyblock/configs/Messages.java b/src/main/java/com/iridium/iridiumskyblock/configs/Messages.java index 643c95c11..5ee1dd589 100644 --- a/src/main/java/com/iridium/iridiumskyblock/configs/Messages.java +++ b/src/main/java/com/iridium/iridiumskyblock/configs/Messages.java @@ -1,5 +1,7 @@ package com.iridium.iridiumskyblock.configs; +import com.iridium.iridiumcore.dependencies.fasterxml.annotation.JsonIgnoreProperties; + import java.util.Arrays; import java.util.List; @@ -7,7 +9,7 @@ * The message configuration used by IridiumSkyblock (messages.yml). * Is deserialized automatically on plugin startup and reload. */ - +@JsonIgnoreProperties(ignoreUnknown = true) public class Messages { public String reloaded = "%prefix% &7Configuration has been reloaded."; diff --git a/src/main/java/com/iridium/iridiumskyblock/configs/Missions.java b/src/main/java/com/iridium/iridiumskyblock/configs/Missions.java index 79d4666b4..b3e753d1c 100644 --- a/src/main/java/com/iridium/iridiumskyblock/configs/Missions.java +++ b/src/main/java/com/iridium/iridiumskyblock/configs/Missions.java @@ -2,6 +2,7 @@ import com.google.common.collect.ImmutableMap; import com.iridium.iridiumcore.Item; +import com.iridium.iridiumcore.dependencies.fasterxml.annotation.JsonIgnoreProperties; import com.iridium.iridiumcore.dependencies.xseries.XMaterial; import com.iridium.iridiumcore.dependencies.xseries.XSound; import com.iridium.iridiumskyblock.Mission; @@ -16,7 +17,7 @@ * The mission configuration used by IridiumSkyblock (missions.yml). * Is deserialized automatically on plugin startup and reload. */ - +@JsonIgnoreProperties(ignoreUnknown = true) public class Missions { public Map missions = ImmutableMap.builder() diff --git a/src/main/java/com/iridium/iridiumskyblock/configs/Permissions.java b/src/main/java/com/iridium/iridiumskyblock/configs/Permissions.java index 833df1708..fa8182354 100644 --- a/src/main/java/com/iridium/iridiumskyblock/configs/Permissions.java +++ b/src/main/java/com/iridium/iridiumskyblock/configs/Permissions.java @@ -1,6 +1,7 @@ package com.iridium.iridiumskyblock.configs; import com.iridium.iridiumcore.Item; +import com.iridium.iridiumcore.dependencies.fasterxml.annotation.JsonIgnoreProperties; import com.iridium.iridiumcore.dependencies.xseries.XMaterial; import com.iridium.iridiumskyblock.IslandRank; import com.iridium.iridiumskyblock.Permission; @@ -11,7 +12,7 @@ * The Island permission configuration used by IridiumSkyblock (permissions.yml). * Is deserialized automatically on plugin startup and reload. */ - +@JsonIgnoreProperties(ignoreUnknown = true) public class Permissions { public String allowed = "&a&lALLOWED"; diff --git a/src/main/java/com/iridium/iridiumskyblock/configs/SQL.java b/src/main/java/com/iridium/iridiumskyblock/configs/SQL.java index 2c52dceea..a68655c1b 100644 --- a/src/main/java/com/iridium/iridiumskyblock/configs/SQL.java +++ b/src/main/java/com/iridium/iridiumskyblock/configs/SQL.java @@ -1,12 +1,13 @@ package com.iridium.iridiumskyblock.configs; +import com.iridium.iridiumcore.dependencies.fasterxml.annotation.JsonIgnoreProperties; import com.iridium.iridiumskyblock.managers.DatabaseManager; /** * The SQL database connection file used by IridiumSkyblock (sql.yml). * Is deserialized automatically on plugin startup and reload. */ - +@JsonIgnoreProperties(ignoreUnknown = true) public class SQL { public Driver driver = Driver.SQLITE; diff --git a/src/main/java/com/iridium/iridiumskyblock/configs/Schematics.java b/src/main/java/com/iridium/iridiumskyblock/configs/Schematics.java index 6858896b2..d234d755e 100644 --- a/src/main/java/com/iridium/iridiumskyblock/configs/Schematics.java +++ b/src/main/java/com/iridium/iridiumskyblock/configs/Schematics.java @@ -2,6 +2,7 @@ import com.google.common.collect.ImmutableMap; import com.iridium.iridiumcore.Item; +import com.iridium.iridiumcore.dependencies.fasterxml.annotation.JsonIgnoreProperties; import com.iridium.iridiumcore.dependencies.xseries.XBiome; import com.iridium.iridiumcore.dependencies.xseries.XMaterial; import lombok.AllArgsConstructor; @@ -14,7 +15,7 @@ * The schematic configuration used by IridiumSkyblock (schematics.yml). * Is deserialized automatically on plugin startup and reload. */ - +@JsonIgnoreProperties(ignoreUnknown = true) public class Schematics { public Map schematics = ImmutableMap.builder() diff --git a/src/main/java/com/iridium/iridiumskyblock/configs/Shop.java b/src/main/java/com/iridium/iridiumskyblock/configs/Shop.java index 29ff20ad1..a1d7ab80b 100644 --- a/src/main/java/com/iridium/iridiumskyblock/configs/Shop.java +++ b/src/main/java/com/iridium/iridiumskyblock/configs/Shop.java @@ -3,6 +3,7 @@ import com.google.common.collect.ImmutableMap; import com.iridium.iridiumcore.Background; import com.iridium.iridiumcore.Item; +import com.iridium.iridiumcore.dependencies.fasterxml.annotation.JsonIgnoreProperties; import com.iridium.iridiumcore.dependencies.xseries.XMaterial; import com.iridium.iridiumcore.dependencies.xseries.XSound; import com.iridium.iridiumskyblock.shop.ShopItem; @@ -20,7 +21,7 @@ * The shop configuration used by IridiumSkyblock (shop.yml). * Is deserialized automatically on plugin startup and reload. */ - +@JsonIgnoreProperties(ignoreUnknown = true) public class Shop { public Map categories = ImmutableMap.builder() diff --git a/src/main/java/com/iridium/iridiumskyblock/configs/Upgrades.java b/src/main/java/com/iridium/iridiumskyblock/configs/Upgrades.java index 87dbce385..079cd00e6 100644 --- a/src/main/java/com/iridium/iridiumskyblock/configs/Upgrades.java +++ b/src/main/java/com/iridium/iridiumskyblock/configs/Upgrades.java @@ -2,6 +2,7 @@ import com.google.common.collect.ImmutableMap; import com.iridium.iridiumcore.Item; +import com.iridium.iridiumcore.dependencies.fasterxml.annotation.JsonIgnoreProperties; import com.iridium.iridiumcore.dependencies.xseries.XMaterial; import com.iridium.iridiumskyblock.Upgrade; import com.iridium.iridiumskyblock.upgrades.MemberUpgrade; @@ -11,7 +12,7 @@ import java.util.Arrays; - +@JsonIgnoreProperties(ignoreUnknown = true) public class Upgrades { public Upgrade sizeUpgrade = new Upgrade<>(true, new Item(XMaterial.GRASS_BLOCK, 10, 1, "&b&lIsland Size", Arrays.asList(