diff --git a/src/main/java/com/songoda/epicenchants/managers/FileManager.java b/src/main/java/com/songoda/epicenchants/managers/FileManager.java index 0d8603c..a38d610 100644 --- a/src/main/java/com/songoda/epicenchants/managers/FileManager.java +++ b/src/main/java/com/songoda/epicenchants/managers/FileManager.java @@ -46,6 +46,7 @@ public class FileManager extends Manager { of("enchants/legendary/Gears.yml", false), of("enchants/legendary/LifeSteal.yml", false), of("enchants/legendary/Overload.yml", false), + of("enchants/legendary/Resist.yml", false), of("enchants/legendary/SkillSwipe.yml", false), of("enchants/simple/Aquatic.yml", false), @@ -60,12 +61,16 @@ public class FileManager extends Manager { of("enchants/ultimate/Blind.yml", false), of("enchants/ultimate/Dodge.yml", false), + of("enchants/ultimate/Fly.yml", false), + of("enchants/ultimate/FoodSteal.yml", false), of("enchants/ultimate/IceAspect.yml", false), of("enchants/ultimate/StormFall.yml", false), of("enchants/unique/Berserk.yml", false), + of("enchants/unique/Decapitation.yml", false), of("enchants/unique/Explosive.yml", false), of("enchants/unique/FeatherWeight.yml", false), + of("enchants/unique/Inquisitive.yml", false), of("enchants/unique/ObsidianDestroyer.yml", false), of("enchants/unique/PlagueCarrier.yml", false), of("enchants/unique/Ragdoll.yml", false), @@ -110,6 +115,7 @@ public class FileManager extends Manager { }); instance.getConfig().set("System.First Load", false); + instance.saveConfig(); instance.getSettingsManager().reloadConfig(); } diff --git a/src/main/java/com/songoda/epicenchants/utils/single/ConfigParser.java b/src/main/java/com/songoda/epicenchants/utils/single/ConfigParser.java index ac2ee98..5a9ff7a 100644 --- a/src/main/java/com/songoda/epicenchants/utils/single/ConfigParser.java +++ b/src/main/java/com/songoda/epicenchants/utils/single/ConfigParser.java @@ -23,6 +23,7 @@ import static com.songoda.epicenchants.utils.single.GeneralUtils.color; public class ConfigParser { public static Enchant parseEnchant(EpicEnchants instance, FileConfiguration config) throws Exception { return Enchant.builder() + .author("author") .identifier(config.getString("identifier")) .group(instance.getGroupManager().getValue(config.getString("group").toUpperCase()).orElseThrow(() -> new IllegalArgumentException("Invalid group: " + config.getString("group")))) .maxLevel(config.getInt("max-level")) diff --git a/src/main/resources/enchants/elite/AntiGravity.yml b/src/main/resources/enchants/elite/AntiGravity.yml index 7f124e8..b729aec 100644 --- a/src/main/resources/enchants/elite/AntiGravity.yml +++ b/src/main/resources/enchants/elite/AntiGravity.yml @@ -1,5 +1,5 @@ # The person who made this enchant. -Author: Songoda +author: Songoda # The enchant identifier must be unique. identifier: AntiGravity diff --git a/src/main/resources/enchants/elite/Frozen.yml b/src/main/resources/enchants/elite/Frozen.yml index 7c0c697..ea262bc 100644 --- a/src/main/resources/enchants/elite/Frozen.yml +++ b/src/main/resources/enchants/elite/Frozen.yml @@ -1,5 +1,5 @@ # The person who made this enchant. -Author: Songoda +author: Songoda # The enchant identifier must be unique. identifier: Frozen diff --git a/src/main/resources/enchants/elite/Poison.yml b/src/main/resources/enchants/elite/Poison.yml index ed697e2..d4050a4 100644 --- a/src/main/resources/enchants/elite/Poison.yml +++ b/src/main/resources/enchants/elite/Poison.yml @@ -1,5 +1,5 @@ # The person who made this enchant. -Author: Songoda +author: Songoda # The enchant identifier must be unique. identifier: Poison diff --git a/src/main/resources/enchants/elite/RocketEscape.yml b/src/main/resources/enchants/elite/RocketEscape.yml index 7588212..eda28aa 100644 --- a/src/main/resources/enchants/elite/RocketEscape.yml +++ b/src/main/resources/enchants/elite/RocketEscape.yml @@ -1,5 +1,5 @@ # The person who made this enchant. -Author: Songoda +author: Songoda # The enchant identifier must be unique. identifier: RocketEscape diff --git a/src/main/resources/enchants/elite/Shockwave.yml b/src/main/resources/enchants/elite/Shockwave.yml index bda1ade..085a98e 100644 --- a/src/main/resources/enchants/elite/Shockwave.yml +++ b/src/main/resources/enchants/elite/Shockwave.yml @@ -1,5 +1,5 @@ # The person who made this enchant. -Author: Songoda +author: Songoda # The enchant identifier must be unique. identifier: Shockwave diff --git a/src/main/resources/enchants/elite/Wither.yml b/src/main/resources/enchants/elite/Wither.yml index e735fce..709c5dc 100644 --- a/src/main/resources/enchants/elite/Wither.yml +++ b/src/main/resources/enchants/elite/Wither.yml @@ -1,5 +1,5 @@ # The person who made this enchant. -Author: Songoda +author: Songoda # The enchant identifier must be unique. identifier: Wither diff --git a/src/main/resources/enchants/legendary/DeathBringer.yml b/src/main/resources/enchants/legendary/DeathBringer.yml index 6bee7e1..99e2a14 100644 --- a/src/main/resources/enchants/legendary/DeathBringer.yml +++ b/src/main/resources/enchants/legendary/DeathBringer.yml @@ -1,5 +1,5 @@ # The person who made this enchant. -Author: Songoda +author: Songoda # The enchant identifier must be unique. identifier: DeathBringer diff --git a/src/main/resources/enchants/legendary/DeathGod.yml b/src/main/resources/enchants/legendary/DeathGod.yml index 7bd4c47..26e8dd5 100644 --- a/src/main/resources/enchants/legendary/DeathGod.yml +++ b/src/main/resources/enchants/legendary/DeathGod.yml @@ -1,5 +1,5 @@ # The person who made this enchant. -Author: Songoda +author: Songoda # The enchant identifier must be unique. identifier: DeathGod diff --git a/src/main/resources/enchants/legendary/Enlightened.yml b/src/main/resources/enchants/legendary/Enlightened.yml index c994d4e..5afe5c7 100644 --- a/src/main/resources/enchants/legendary/Enlightened.yml +++ b/src/main/resources/enchants/legendary/Enlightened.yml @@ -1,5 +1,5 @@ # The person who made this enchant. -Author: Songoda +author: Songoda # The enchant identifier must be unique. identifier: Enlightened diff --git a/src/main/resources/enchants/legendary/Gears.yml b/src/main/resources/enchants/legendary/Gears.yml index 36eb0bc..5b9ea78 100644 --- a/src/main/resources/enchants/legendary/Gears.yml +++ b/src/main/resources/enchants/legendary/Gears.yml @@ -1,5 +1,5 @@ # The person who made this enchant. -Author: Songoda +author: Songoda # The enchant identifier must be unique. identifier: Gears diff --git a/src/main/resources/enchants/legendary/LifeSteal.yml b/src/main/resources/enchants/legendary/LifeSteal.yml index 5bd36c6..4bbbde2 100644 --- a/src/main/resources/enchants/legendary/LifeSteal.yml +++ b/src/main/resources/enchants/legendary/LifeSteal.yml @@ -1,5 +1,5 @@ # The person who made this enchant. -Author: Songoda +author: Songoda # The enchant identifier must be unique. identifier: LifeSteal diff --git a/src/main/resources/enchants/legendary/Overload.yml b/src/main/resources/enchants/legendary/Overload.yml index 5e1941a..fe6b8b0 100644 --- a/src/main/resources/enchants/legendary/Overload.yml +++ b/src/main/resources/enchants/legendary/Overload.yml @@ -1,7 +1,8 @@ # The person who made this enchant. -Author: Songoda - +author: Songoda +# The enchant identifier must be unique. +identifier: Overload # The max level for this enchant. max-level: 3 diff --git a/src/main/resources/enchants/legendary/Resist.yml b/src/main/resources/enchants/legendary/Resist.yml index 1d99f68..8a69da8 100644 --- a/src/main/resources/enchants/legendary/Resist.yml +++ b/src/main/resources/enchants/legendary/Resist.yml @@ -1,5 +1,5 @@ # The person who made this enchant. -Author: SuchLow +author: SuchLow # The enchant identifier must be unique. identifier: Resist diff --git a/src/main/resources/enchants/legendary/SkillSwipe.yml b/src/main/resources/enchants/legendary/SkillSwipe.yml index 5343d9f..4180c70 100644 --- a/src/main/resources/enchants/legendary/SkillSwipe.yml +++ b/src/main/resources/enchants/legendary/SkillSwipe.yml @@ -1,5 +1,5 @@ # The person who made this enchant. -Author: Songoda +author: Songoda # The enchant identifier must be unique. identifier: SkillSwipe diff --git a/src/main/resources/enchants/simple/Aquatic.yml b/src/main/resources/enchants/simple/Aquatic.yml index 79b5a3f..24f3357 100644 --- a/src/main/resources/enchants/simple/Aquatic.yml +++ b/src/main/resources/enchants/simple/Aquatic.yml @@ -1,5 +1,5 @@ # The person who made this enchant. -Author: Songoda +author: Songoda # The enchant identifier must be unique. identifier: Aquatic diff --git a/src/main/resources/enchants/simple/Confusion.yml b/src/main/resources/enchants/simple/Confusion.yml index 34ea8be..6313545 100644 --- a/src/main/resources/enchants/simple/Confusion.yml +++ b/src/main/resources/enchants/simple/Confusion.yml @@ -1,5 +1,5 @@ # The person who made this enchant. -Author: Songoda +author: Songoda # The enchant identifier must be unique. identifier: Confusion diff --git a/src/main/resources/enchants/simple/Experience.yml b/src/main/resources/enchants/simple/Experience.yml index fa11436..7a859db 100644 --- a/src/main/resources/enchants/simple/Experience.yml +++ b/src/main/resources/enchants/simple/Experience.yml @@ -1,5 +1,5 @@ # The person who made this enchant. -Author: Songoda +author: Songoda # The enchant identifier must be unique. identifier: Experience diff --git a/src/main/resources/enchants/simple/Glowing.yml b/src/main/resources/enchants/simple/Glowing.yml index 04b1926..da142d1 100644 --- a/src/main/resources/enchants/simple/Glowing.yml +++ b/src/main/resources/enchants/simple/Glowing.yml @@ -1,5 +1,5 @@ # The person who made this enchant. -Author: Songoda +author: Songoda # The enchant identifier must be unique. identifier: Glowing diff --git a/src/main/resources/enchants/simple/Haste.yml b/src/main/resources/enchants/simple/Haste.yml index 2c12a6d..49789c2 100644 --- a/src/main/resources/enchants/simple/Haste.yml +++ b/src/main/resources/enchants/simple/Haste.yml @@ -1,5 +1,5 @@ # The person who made this enchant. -Author: Songoda +author: Songoda # The enchant identifier must be unique. identifier: Haste diff --git a/src/main/resources/enchants/simple/Insomnia.yml b/src/main/resources/enchants/simple/Insomnia.yml index 0b93c6d..2d1259e 100644 --- a/src/main/resources/enchants/simple/Insomnia.yml +++ b/src/main/resources/enchants/simple/Insomnia.yml @@ -1,5 +1,5 @@ # The person who made this enchant. -Author: Songoda +author: Songoda # The enchant identifier must be unique. identifier: Insomnia diff --git a/src/main/resources/enchants/simple/Lightning.yml b/src/main/resources/enchants/simple/Lightning.yml index e529fb8..b6bd8d4 100644 --- a/src/main/resources/enchants/simple/Lightning.yml +++ b/src/main/resources/enchants/simple/Lightning.yml @@ -1,5 +1,5 @@ # The person who made this enchant. -Author: Songoda +author: Songoda # The enchant identifier must be unique. identifier: Lightning diff --git a/src/main/resources/enchants/simple/Obliterate.yml b/src/main/resources/enchants/simple/Obliterate.yml index 9d4fa8b..b4910c2 100644 --- a/src/main/resources/enchants/simple/Obliterate.yml +++ b/src/main/resources/enchants/simple/Obliterate.yml @@ -1,5 +1,5 @@ # The person who made this enchant. -Author: Songoda +author: Songoda # The enchant identifier must be unique. identifier: Obliterate diff --git a/src/main/resources/enchants/simple/Oxygenate.yml b/src/main/resources/enchants/simple/Oxygenate.yml index 2724cc1..4e26a05 100644 --- a/src/main/resources/enchants/simple/Oxygenate.yml +++ b/src/main/resources/enchants/simple/Oxygenate.yml @@ -1,5 +1,5 @@ # The person who made this enchant. -Author: Songoda +author: Songoda # The enchant identifier must be unique. identifier: Oxygenate diff --git a/src/main/resources/enchants/ultimate/Blind.yml b/src/main/resources/enchants/ultimate/Blind.yml index 20aed9e..4456b03 100644 --- a/src/main/resources/enchants/ultimate/Blind.yml +++ b/src/main/resources/enchants/ultimate/Blind.yml @@ -1,5 +1,5 @@ # The person who made this enchant. -Author: Songoda +author: Songoda # The enchant identifier must be unique. identifier: Blind diff --git a/src/main/resources/enchants/ultimate/Dodge.yml b/src/main/resources/enchants/ultimate/Dodge.yml index 80335b5..f6226d2 100644 --- a/src/main/resources/enchants/ultimate/Dodge.yml +++ b/src/main/resources/enchants/ultimate/Dodge.yml @@ -1,5 +1,5 @@ # The person who made this enchant. -Author: Songoda +author: Songoda # The enchant identifier must be unique. identifier: Dodge diff --git a/src/main/resources/enchants/ultimate/Fly.yml b/src/main/resources/enchants/ultimate/Fly.yml index a763635..63af0dc 100644 --- a/src/main/resources/enchants/ultimate/Fly.yml +++ b/src/main/resources/enchants/ultimate/Fly.yml @@ -1,5 +1,5 @@ # The person who made this enchant. -Author: Hipopotofobia +author: Hipopotofobia # The enchant identifier must be unique. identifier: Fly diff --git a/src/main/resources/enchants/ultimate/FoodSteal.yml b/src/main/resources/enchants/ultimate/FoodSteal.yml index af7915d..d7a0c02 100644 --- a/src/main/resources/enchants/ultimate/FoodSteal.yml +++ b/src/main/resources/enchants/ultimate/FoodSteal.yml @@ -1,5 +1,5 @@ # The person who made this enchant. -Author: SuchLow +author: SuchLow # The enchant identifier must be unique. identifier: FoodSteal diff --git a/src/main/resources/enchants/ultimate/IceAspect.yml b/src/main/resources/enchants/ultimate/IceAspect.yml index 4c2b16e..1f128de 100644 --- a/src/main/resources/enchants/ultimate/IceAspect.yml +++ b/src/main/resources/enchants/ultimate/IceAspect.yml @@ -1,5 +1,5 @@ # The person who made this enchant. -Author: Songoda +author: Songoda # The enchant identifier must be unique. identifier: IceAspect diff --git a/src/main/resources/enchants/ultimate/StormFall.yml b/src/main/resources/enchants/ultimate/StormFall.yml index 6b74d61..dc7869a 100644 --- a/src/main/resources/enchants/ultimate/StormFall.yml +++ b/src/main/resources/enchants/ultimate/StormFall.yml @@ -1,5 +1,5 @@ # The person who made this enchant. -Author: Songoda +author: Songoda # The enchant identifier must be unique. identifier: StormFall diff --git a/src/main/resources/enchants/unique/Berserk.yml b/src/main/resources/enchants/unique/Berserk.yml index 7a91a44..42570a5 100644 --- a/src/main/resources/enchants/unique/Berserk.yml +++ b/src/main/resources/enchants/unique/Berserk.yml @@ -1,5 +1,5 @@ # The person who made this enchant. -Author: Songoda +author: Songoda # The enchant identifier must be unique. identifier: Berserk diff --git a/src/main/resources/enchants/unique/Decapitation.yml b/src/main/resources/enchants/unique/Decapitation.yml index 502f5f0..c8e3b65 100644 --- a/src/main/resources/enchants/unique/Decapitation.yml +++ b/src/main/resources/enchants/unique/Decapitation.yml @@ -1,5 +1,5 @@ # The person who made this enchant. -Author: Hipopotofobia +author: Hipopotofobia # The enchant identifier must be unique. identifier: Decapitation diff --git a/src/main/resources/enchants/unique/Explosive.yml b/src/main/resources/enchants/unique/Explosive.yml index 49e4aeb..6904e2b 100644 --- a/src/main/resources/enchants/unique/Explosive.yml +++ b/src/main/resources/enchants/unique/Explosive.yml @@ -1,5 +1,5 @@ # The person who made this enchant. -Author: Songoda +author: Songoda # The enchant identifier must be unique. identifier: Explosive diff --git a/src/main/resources/enchants/unique/FeatherWeight.yml b/src/main/resources/enchants/unique/FeatherWeight.yml index 965934d..a1bd0c3 100644 --- a/src/main/resources/enchants/unique/FeatherWeight.yml +++ b/src/main/resources/enchants/unique/FeatherWeight.yml @@ -1,5 +1,5 @@ # The person who made this enchant. -Author: Songoda +author: Songoda # The enchant identifier must be unique. identifier: FeatherWeight diff --git a/src/main/resources/enchants/unique/Inquisitive.yml b/src/main/resources/enchants/unique/Inquisitive.yml index 046ccdf..abb5f31 100644 --- a/src/main/resources/enchants/unique/Inquisitive.yml +++ b/src/main/resources/enchants/unique/Inquisitive.yml @@ -1,8 +1,8 @@ # The person who made this enchant. -Author: Tin +author: Tin # The enchant identifier must be unique. -identifier: Inquistive +identifier: Inquisitive # The max level for this enchant. max-level: 5 diff --git a/src/main/resources/enchants/unique/ObsidianDestroyer.yml b/src/main/resources/enchants/unique/ObsidianDestroyer.yml index a8ee75d..40b67fa 100644 --- a/src/main/resources/enchants/unique/ObsidianDestroyer.yml +++ b/src/main/resources/enchants/unique/ObsidianDestroyer.yml @@ -1,5 +1,5 @@ # The person who made this enchant. -Author: Songoda +author: Songoda # The enchant identifier must be unique. identifier: ObsidianDestroyer diff --git a/src/main/resources/enchants/unique/PlagueCarrier.yml b/src/main/resources/enchants/unique/PlagueCarrier.yml index 9c9f3f2..b44a9f9 100644 --- a/src/main/resources/enchants/unique/PlagueCarrier.yml +++ b/src/main/resources/enchants/unique/PlagueCarrier.yml @@ -1,5 +1,5 @@ # The person who made this enchant. -Author: Songoda +author: Songoda # The enchant identifier must be unique. identifier: "PlagueCarrier" diff --git a/src/main/resources/enchants/unique/Ragdoll.yml b/src/main/resources/enchants/unique/Ragdoll.yml index 117a9fa..762d3d3 100644 --- a/src/main/resources/enchants/unique/Ragdoll.yml +++ b/src/main/resources/enchants/unique/Ragdoll.yml @@ -1,5 +1,5 @@ # The person who made this enchant. -Author: Songoda +author: Songoda # The enchant identifier must be unique. identifier: Ragdoll diff --git a/src/main/resources/enchants/unique/SelfDestruct.yml b/src/main/resources/enchants/unique/SelfDestruct.yml index 293df61..f82bee8 100644 --- a/src/main/resources/enchants/unique/SelfDestruct.yml +++ b/src/main/resources/enchants/unique/SelfDestruct.yml @@ -1,5 +1,5 @@ # The person who made this enchant. -Author: Songoda +author: Songoda # The enchant identifier must be unique. identifier: "SelfDestruct"