mirror of
https://github.com/songoda/EpicEnchants.git
synced 2025-01-05 16:08:35 +01:00
fixes
This commit is contained in:
parent
552e16e115
commit
c300c8b8fb
@ -46,6 +46,7 @@ public class FileManager extends Manager<String, FileConfiguration> {
|
|||||||
of("enchants/legendary/Gears.yml", false),
|
of("enchants/legendary/Gears.yml", false),
|
||||||
of("enchants/legendary/LifeSteal.yml", false),
|
of("enchants/legendary/LifeSteal.yml", false),
|
||||||
of("enchants/legendary/Overload.yml", false),
|
of("enchants/legendary/Overload.yml", false),
|
||||||
|
of("enchants/legendary/Resist.yml", false),
|
||||||
of("enchants/legendary/SkillSwipe.yml", false),
|
of("enchants/legendary/SkillSwipe.yml", false),
|
||||||
|
|
||||||
of("enchants/simple/Aquatic.yml", false),
|
of("enchants/simple/Aquatic.yml", false),
|
||||||
@ -60,12 +61,16 @@ public class FileManager extends Manager<String, FileConfiguration> {
|
|||||||
|
|
||||||
of("enchants/ultimate/Blind.yml", false),
|
of("enchants/ultimate/Blind.yml", false),
|
||||||
of("enchants/ultimate/Dodge.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/IceAspect.yml", false),
|
||||||
of("enchants/ultimate/StormFall.yml", false),
|
of("enchants/ultimate/StormFall.yml", false),
|
||||||
|
|
||||||
of("enchants/unique/Berserk.yml", false),
|
of("enchants/unique/Berserk.yml", false),
|
||||||
|
of("enchants/unique/Decapitation.yml", false),
|
||||||
of("enchants/unique/Explosive.yml", false),
|
of("enchants/unique/Explosive.yml", false),
|
||||||
of("enchants/unique/FeatherWeight.yml", false),
|
of("enchants/unique/FeatherWeight.yml", false),
|
||||||
|
of("enchants/unique/Inquisitive.yml", false),
|
||||||
of("enchants/unique/ObsidianDestroyer.yml", false),
|
of("enchants/unique/ObsidianDestroyer.yml", false),
|
||||||
of("enchants/unique/PlagueCarrier.yml", false),
|
of("enchants/unique/PlagueCarrier.yml", false),
|
||||||
of("enchants/unique/Ragdoll.yml", false),
|
of("enchants/unique/Ragdoll.yml", false),
|
||||||
@ -110,6 +115,7 @@ public class FileManager extends Manager<String, FileConfiguration> {
|
|||||||
});
|
});
|
||||||
|
|
||||||
instance.getConfig().set("System.First Load", false);
|
instance.getConfig().set("System.First Load", false);
|
||||||
|
instance.saveConfig();
|
||||||
instance.getSettingsManager().reloadConfig();
|
instance.getSettingsManager().reloadConfig();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -23,6 +23,7 @@ import static com.songoda.epicenchants.utils.single.GeneralUtils.color;
|
|||||||
public class ConfigParser {
|
public class ConfigParser {
|
||||||
public static Enchant parseEnchant(EpicEnchants instance, FileConfiguration config) throws Exception {
|
public static Enchant parseEnchant(EpicEnchants instance, FileConfiguration config) throws Exception {
|
||||||
return Enchant.builder()
|
return Enchant.builder()
|
||||||
|
.author("author")
|
||||||
.identifier(config.getString("identifier"))
|
.identifier(config.getString("identifier"))
|
||||||
.group(instance.getGroupManager().getValue(config.getString("group").toUpperCase()).orElseThrow(() -> new IllegalArgumentException("Invalid group: " + config.getString("group"))))
|
.group(instance.getGroupManager().getValue(config.getString("group").toUpperCase()).orElseThrow(() -> new IllegalArgumentException("Invalid group: " + config.getString("group"))))
|
||||||
.maxLevel(config.getInt("max-level"))
|
.maxLevel(config.getInt("max-level"))
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# The person who made this enchant.
|
# The person who made this enchant.
|
||||||
Author: Songoda
|
author: Songoda
|
||||||
|
|
||||||
# The enchant identifier must be unique.
|
# The enchant identifier must be unique.
|
||||||
identifier: AntiGravity
|
identifier: AntiGravity
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# The person who made this enchant.
|
# The person who made this enchant.
|
||||||
Author: Songoda
|
author: Songoda
|
||||||
|
|
||||||
# The enchant identifier must be unique.
|
# The enchant identifier must be unique.
|
||||||
identifier: Frozen
|
identifier: Frozen
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# The person who made this enchant.
|
# The person who made this enchant.
|
||||||
Author: Songoda
|
author: Songoda
|
||||||
|
|
||||||
# The enchant identifier must be unique.
|
# The enchant identifier must be unique.
|
||||||
identifier: Poison
|
identifier: Poison
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# The person who made this enchant.
|
# The person who made this enchant.
|
||||||
Author: Songoda
|
author: Songoda
|
||||||
|
|
||||||
# The enchant identifier must be unique.
|
# The enchant identifier must be unique.
|
||||||
identifier: RocketEscape
|
identifier: RocketEscape
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# The person who made this enchant.
|
# The person who made this enchant.
|
||||||
Author: Songoda
|
author: Songoda
|
||||||
|
|
||||||
# The enchant identifier must be unique.
|
# The enchant identifier must be unique.
|
||||||
identifier: Shockwave
|
identifier: Shockwave
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# The person who made this enchant.
|
# The person who made this enchant.
|
||||||
Author: Songoda
|
author: Songoda
|
||||||
|
|
||||||
# The enchant identifier must be unique.
|
# The enchant identifier must be unique.
|
||||||
identifier: Wither
|
identifier: Wither
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# The person who made this enchant.
|
# The person who made this enchant.
|
||||||
Author: Songoda
|
author: Songoda
|
||||||
|
|
||||||
# The enchant identifier must be unique.
|
# The enchant identifier must be unique.
|
||||||
identifier: DeathBringer
|
identifier: DeathBringer
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# The person who made this enchant.
|
# The person who made this enchant.
|
||||||
Author: Songoda
|
author: Songoda
|
||||||
|
|
||||||
# The enchant identifier must be unique.
|
# The enchant identifier must be unique.
|
||||||
identifier: DeathGod
|
identifier: DeathGod
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# The person who made this enchant.
|
# The person who made this enchant.
|
||||||
Author: Songoda
|
author: Songoda
|
||||||
|
|
||||||
# The enchant identifier must be unique.
|
# The enchant identifier must be unique.
|
||||||
identifier: Enlightened
|
identifier: Enlightened
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# The person who made this enchant.
|
# The person who made this enchant.
|
||||||
Author: Songoda
|
author: Songoda
|
||||||
|
|
||||||
# The enchant identifier must be unique.
|
# The enchant identifier must be unique.
|
||||||
identifier: Gears
|
identifier: Gears
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# The person who made this enchant.
|
# The person who made this enchant.
|
||||||
Author: Songoda
|
author: Songoda
|
||||||
|
|
||||||
# The enchant identifier must be unique.
|
# The enchant identifier must be unique.
|
||||||
identifier: LifeSteal
|
identifier: LifeSteal
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
# The person who made this enchant.
|
# The person who made this enchant.
|
||||||
Author: Songoda
|
author: Songoda
|
||||||
|
|
||||||
|
|
||||||
|
# The enchant identifier must be unique.
|
||||||
|
identifier: Overload
|
||||||
|
|
||||||
# The max level for this enchant.
|
# The max level for this enchant.
|
||||||
max-level: 3
|
max-level: 3
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# The person who made this enchant.
|
# The person who made this enchant.
|
||||||
Author: SuchLow
|
author: SuchLow
|
||||||
|
|
||||||
# The enchant identifier must be unique.
|
# The enchant identifier must be unique.
|
||||||
identifier: Resist
|
identifier: Resist
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# The person who made this enchant.
|
# The person who made this enchant.
|
||||||
Author: Songoda
|
author: Songoda
|
||||||
|
|
||||||
# The enchant identifier must be unique.
|
# The enchant identifier must be unique.
|
||||||
identifier: SkillSwipe
|
identifier: SkillSwipe
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# The person who made this enchant.
|
# The person who made this enchant.
|
||||||
Author: Songoda
|
author: Songoda
|
||||||
|
|
||||||
# The enchant identifier must be unique.
|
# The enchant identifier must be unique.
|
||||||
identifier: Aquatic
|
identifier: Aquatic
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# The person who made this enchant.
|
# The person who made this enchant.
|
||||||
Author: Songoda
|
author: Songoda
|
||||||
|
|
||||||
# The enchant identifier must be unique.
|
# The enchant identifier must be unique.
|
||||||
identifier: Confusion
|
identifier: Confusion
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# The person who made this enchant.
|
# The person who made this enchant.
|
||||||
Author: Songoda
|
author: Songoda
|
||||||
|
|
||||||
# The enchant identifier must be unique.
|
# The enchant identifier must be unique.
|
||||||
identifier: Experience
|
identifier: Experience
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# The person who made this enchant.
|
# The person who made this enchant.
|
||||||
Author: Songoda
|
author: Songoda
|
||||||
|
|
||||||
# The enchant identifier must be unique.
|
# The enchant identifier must be unique.
|
||||||
identifier: Glowing
|
identifier: Glowing
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# The person who made this enchant.
|
# The person who made this enchant.
|
||||||
Author: Songoda
|
author: Songoda
|
||||||
|
|
||||||
# The enchant identifier must be unique.
|
# The enchant identifier must be unique.
|
||||||
identifier: Haste
|
identifier: Haste
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# The person who made this enchant.
|
# The person who made this enchant.
|
||||||
Author: Songoda
|
author: Songoda
|
||||||
|
|
||||||
# The enchant identifier must be unique.
|
# The enchant identifier must be unique.
|
||||||
identifier: Insomnia
|
identifier: Insomnia
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# The person who made this enchant.
|
# The person who made this enchant.
|
||||||
Author: Songoda
|
author: Songoda
|
||||||
|
|
||||||
# The enchant identifier must be unique.
|
# The enchant identifier must be unique.
|
||||||
identifier: Lightning
|
identifier: Lightning
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# The person who made this enchant.
|
# The person who made this enchant.
|
||||||
Author: Songoda
|
author: Songoda
|
||||||
|
|
||||||
# The enchant identifier must be unique.
|
# The enchant identifier must be unique.
|
||||||
identifier: Obliterate
|
identifier: Obliterate
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# The person who made this enchant.
|
# The person who made this enchant.
|
||||||
Author: Songoda
|
author: Songoda
|
||||||
|
|
||||||
# The enchant identifier must be unique.
|
# The enchant identifier must be unique.
|
||||||
identifier: Oxygenate
|
identifier: Oxygenate
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# The person who made this enchant.
|
# The person who made this enchant.
|
||||||
Author: Songoda
|
author: Songoda
|
||||||
|
|
||||||
# The enchant identifier must be unique.
|
# The enchant identifier must be unique.
|
||||||
identifier: Blind
|
identifier: Blind
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# The person who made this enchant.
|
# The person who made this enchant.
|
||||||
Author: Songoda
|
author: Songoda
|
||||||
|
|
||||||
# The enchant identifier must be unique.
|
# The enchant identifier must be unique.
|
||||||
identifier: Dodge
|
identifier: Dodge
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# The person who made this enchant.
|
# The person who made this enchant.
|
||||||
Author: Hipopotofobia
|
author: Hipopotofobia
|
||||||
|
|
||||||
# The enchant identifier must be unique.
|
# The enchant identifier must be unique.
|
||||||
identifier: Fly
|
identifier: Fly
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# The person who made this enchant.
|
# The person who made this enchant.
|
||||||
Author: SuchLow
|
author: SuchLow
|
||||||
|
|
||||||
# The enchant identifier must be unique.
|
# The enchant identifier must be unique.
|
||||||
identifier: FoodSteal
|
identifier: FoodSteal
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# The person who made this enchant.
|
# The person who made this enchant.
|
||||||
Author: Songoda
|
author: Songoda
|
||||||
|
|
||||||
# The enchant identifier must be unique.
|
# The enchant identifier must be unique.
|
||||||
identifier: IceAspect
|
identifier: IceAspect
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# The person who made this enchant.
|
# The person who made this enchant.
|
||||||
Author: Songoda
|
author: Songoda
|
||||||
|
|
||||||
# The enchant identifier must be unique.
|
# The enchant identifier must be unique.
|
||||||
identifier: StormFall
|
identifier: StormFall
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# The person who made this enchant.
|
# The person who made this enchant.
|
||||||
Author: Songoda
|
author: Songoda
|
||||||
|
|
||||||
# The enchant identifier must be unique.
|
# The enchant identifier must be unique.
|
||||||
identifier: Berserk
|
identifier: Berserk
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# The person who made this enchant.
|
# The person who made this enchant.
|
||||||
Author: Hipopotofobia
|
author: Hipopotofobia
|
||||||
|
|
||||||
# The enchant identifier must be unique.
|
# The enchant identifier must be unique.
|
||||||
identifier: Decapitation
|
identifier: Decapitation
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# The person who made this enchant.
|
# The person who made this enchant.
|
||||||
Author: Songoda
|
author: Songoda
|
||||||
|
|
||||||
# The enchant identifier must be unique.
|
# The enchant identifier must be unique.
|
||||||
identifier: Explosive
|
identifier: Explosive
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# The person who made this enchant.
|
# The person who made this enchant.
|
||||||
Author: Songoda
|
author: Songoda
|
||||||
|
|
||||||
# The enchant identifier must be unique.
|
# The enchant identifier must be unique.
|
||||||
identifier: FeatherWeight
|
identifier: FeatherWeight
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
# The person who made this enchant.
|
# The person who made this enchant.
|
||||||
Author: Tin
|
author: Tin
|
||||||
|
|
||||||
# The enchant identifier must be unique.
|
# The enchant identifier must be unique.
|
||||||
identifier: Inquistive
|
identifier: Inquisitive
|
||||||
|
|
||||||
# The max level for this enchant.
|
# The max level for this enchant.
|
||||||
max-level: 5
|
max-level: 5
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# The person who made this enchant.
|
# The person who made this enchant.
|
||||||
Author: Songoda
|
author: Songoda
|
||||||
|
|
||||||
# The enchant identifier must be unique.
|
# The enchant identifier must be unique.
|
||||||
identifier: ObsidianDestroyer
|
identifier: ObsidianDestroyer
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# The person who made this enchant.
|
# The person who made this enchant.
|
||||||
Author: Songoda
|
author: Songoda
|
||||||
|
|
||||||
# The enchant identifier must be unique.
|
# The enchant identifier must be unique.
|
||||||
identifier: "PlagueCarrier"
|
identifier: "PlagueCarrier"
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# The person who made this enchant.
|
# The person who made this enchant.
|
||||||
Author: Songoda
|
author: Songoda
|
||||||
|
|
||||||
# The enchant identifier must be unique.
|
# The enchant identifier must be unique.
|
||||||
identifier: Ragdoll
|
identifier: Ragdoll
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# The person who made this enchant.
|
# The person who made this enchant.
|
||||||
Author: Songoda
|
author: Songoda
|
||||||
|
|
||||||
# The enchant identifier must be unique.
|
# The enchant identifier must be unique.
|
||||||
identifier: "SelfDestruct"
|
identifier: "SelfDestruct"
|
||||||
|
Loading…
Reference in New Issue
Block a user