mirror of
https://github.com/songoda/EpicEnchants.git
synced 2025-01-03 15:08:19 +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/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<String, FileConfiguration> {
|
||||
|
||||
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<String, FileConfiguration> {
|
||||
});
|
||||
|
||||
instance.getConfig().set("System.First Load", false);
|
||||
instance.saveConfig();
|
||||
instance.getSettingsManager().reloadConfig();
|
||||
}
|
||||
|
||||
|
@ -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"))
|
||||
|
@ -1,5 +1,5 @@
|
||||
# The person who made this enchant.
|
||||
Author: Songoda
|
||||
author: Songoda
|
||||
|
||||
# The enchant identifier must be unique.
|
||||
identifier: AntiGravity
|
||||
|
@ -1,5 +1,5 @@
|
||||
# The person who made this enchant.
|
||||
Author: Songoda
|
||||
author: Songoda
|
||||
|
||||
# The enchant identifier must be unique.
|
||||
identifier: Frozen
|
||||
|
@ -1,5 +1,5 @@
|
||||
# The person who made this enchant.
|
||||
Author: Songoda
|
||||
author: Songoda
|
||||
|
||||
# The enchant identifier must be unique.
|
||||
identifier: Poison
|
||||
|
@ -1,5 +1,5 @@
|
||||
# The person who made this enchant.
|
||||
Author: Songoda
|
||||
author: Songoda
|
||||
|
||||
# The enchant identifier must be unique.
|
||||
identifier: RocketEscape
|
||||
|
@ -1,5 +1,5 @@
|
||||
# The person who made this enchant.
|
||||
Author: Songoda
|
||||
author: Songoda
|
||||
|
||||
# The enchant identifier must be unique.
|
||||
identifier: Shockwave
|
||||
|
@ -1,5 +1,5 @@
|
||||
# The person who made this enchant.
|
||||
Author: Songoda
|
||||
author: Songoda
|
||||
|
||||
# The enchant identifier must be unique.
|
||||
identifier: Wither
|
||||
|
@ -1,5 +1,5 @@
|
||||
# The person who made this enchant.
|
||||
Author: Songoda
|
||||
author: Songoda
|
||||
|
||||
# The enchant identifier must be unique.
|
||||
identifier: DeathBringer
|
||||
|
@ -1,5 +1,5 @@
|
||||
# The person who made this enchant.
|
||||
Author: Songoda
|
||||
author: Songoda
|
||||
|
||||
# The enchant identifier must be unique.
|
||||
identifier: DeathGod
|
||||
|
@ -1,5 +1,5 @@
|
||||
# The person who made this enchant.
|
||||
Author: Songoda
|
||||
author: Songoda
|
||||
|
||||
# The enchant identifier must be unique.
|
||||
identifier: Enlightened
|
||||
|
@ -1,5 +1,5 @@
|
||||
# The person who made this enchant.
|
||||
Author: Songoda
|
||||
author: Songoda
|
||||
|
||||
# The enchant identifier must be unique.
|
||||
identifier: Gears
|
||||
|
@ -1,5 +1,5 @@
|
||||
# The person who made this enchant.
|
||||
Author: Songoda
|
||||
author: Songoda
|
||||
|
||||
# The enchant identifier must be unique.
|
||||
identifier: LifeSteal
|
||||
|
@ -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
|
||||
|
@ -1,5 +1,5 @@
|
||||
# The person who made this enchant.
|
||||
Author: SuchLow
|
||||
author: SuchLow
|
||||
|
||||
# The enchant identifier must be unique.
|
||||
identifier: Resist
|
||||
|
@ -1,5 +1,5 @@
|
||||
# The person who made this enchant.
|
||||
Author: Songoda
|
||||
author: Songoda
|
||||
|
||||
# The enchant identifier must be unique.
|
||||
identifier: SkillSwipe
|
||||
|
@ -1,5 +1,5 @@
|
||||
# The person who made this enchant.
|
||||
Author: Songoda
|
||||
author: Songoda
|
||||
|
||||
# The enchant identifier must be unique.
|
||||
identifier: Aquatic
|
||||
|
@ -1,5 +1,5 @@
|
||||
# The person who made this enchant.
|
||||
Author: Songoda
|
||||
author: Songoda
|
||||
|
||||
# The enchant identifier must be unique.
|
||||
identifier: Confusion
|
||||
|
@ -1,5 +1,5 @@
|
||||
# The person who made this enchant.
|
||||
Author: Songoda
|
||||
author: Songoda
|
||||
|
||||
# The enchant identifier must be unique.
|
||||
identifier: Experience
|
||||
|
@ -1,5 +1,5 @@
|
||||
# The person who made this enchant.
|
||||
Author: Songoda
|
||||
author: Songoda
|
||||
|
||||
# The enchant identifier must be unique.
|
||||
identifier: Glowing
|
||||
|
@ -1,5 +1,5 @@
|
||||
# The person who made this enchant.
|
||||
Author: Songoda
|
||||
author: Songoda
|
||||
|
||||
# The enchant identifier must be unique.
|
||||
identifier: Haste
|
||||
|
@ -1,5 +1,5 @@
|
||||
# The person who made this enchant.
|
||||
Author: Songoda
|
||||
author: Songoda
|
||||
|
||||
# The enchant identifier must be unique.
|
||||
identifier: Insomnia
|
||||
|
@ -1,5 +1,5 @@
|
||||
# The person who made this enchant.
|
||||
Author: Songoda
|
||||
author: Songoda
|
||||
|
||||
# The enchant identifier must be unique.
|
||||
identifier: Lightning
|
||||
|
@ -1,5 +1,5 @@
|
||||
# The person who made this enchant.
|
||||
Author: Songoda
|
||||
author: Songoda
|
||||
|
||||
# The enchant identifier must be unique.
|
||||
identifier: Obliterate
|
||||
|
@ -1,5 +1,5 @@
|
||||
# The person who made this enchant.
|
||||
Author: Songoda
|
||||
author: Songoda
|
||||
|
||||
# The enchant identifier must be unique.
|
||||
identifier: Oxygenate
|
||||
|
@ -1,5 +1,5 @@
|
||||
# The person who made this enchant.
|
||||
Author: Songoda
|
||||
author: Songoda
|
||||
|
||||
# The enchant identifier must be unique.
|
||||
identifier: Blind
|
||||
|
@ -1,5 +1,5 @@
|
||||
# The person who made this enchant.
|
||||
Author: Songoda
|
||||
author: Songoda
|
||||
|
||||
# The enchant identifier must be unique.
|
||||
identifier: Dodge
|
||||
|
@ -1,5 +1,5 @@
|
||||
# The person who made this enchant.
|
||||
Author: Hipopotofobia
|
||||
author: Hipopotofobia
|
||||
|
||||
# The enchant identifier must be unique.
|
||||
identifier: Fly
|
||||
|
@ -1,5 +1,5 @@
|
||||
# The person who made this enchant.
|
||||
Author: SuchLow
|
||||
author: SuchLow
|
||||
|
||||
# The enchant identifier must be unique.
|
||||
identifier: FoodSteal
|
||||
|
@ -1,5 +1,5 @@
|
||||
# The person who made this enchant.
|
||||
Author: Songoda
|
||||
author: Songoda
|
||||
|
||||
# The enchant identifier must be unique.
|
||||
identifier: IceAspect
|
||||
|
@ -1,5 +1,5 @@
|
||||
# The person who made this enchant.
|
||||
Author: Songoda
|
||||
author: Songoda
|
||||
|
||||
# The enchant identifier must be unique.
|
||||
identifier: StormFall
|
||||
|
@ -1,5 +1,5 @@
|
||||
# The person who made this enchant.
|
||||
Author: Songoda
|
||||
author: Songoda
|
||||
|
||||
# The enchant identifier must be unique.
|
||||
identifier: Berserk
|
||||
|
@ -1,5 +1,5 @@
|
||||
# The person who made this enchant.
|
||||
Author: Hipopotofobia
|
||||
author: Hipopotofobia
|
||||
|
||||
# The enchant identifier must be unique.
|
||||
identifier: Decapitation
|
||||
|
@ -1,5 +1,5 @@
|
||||
# The person who made this enchant.
|
||||
Author: Songoda
|
||||
author: Songoda
|
||||
|
||||
# The enchant identifier must be unique.
|
||||
identifier: Explosive
|
||||
|
@ -1,5 +1,5 @@
|
||||
# The person who made this enchant.
|
||||
Author: Songoda
|
||||
author: Songoda
|
||||
|
||||
# The enchant identifier must be unique.
|
||||
identifier: FeatherWeight
|
||||
|
@ -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
|
||||
|
@ -1,5 +1,5 @@
|
||||
# The person who made this enchant.
|
||||
Author: Songoda
|
||||
author: Songoda
|
||||
|
||||
# The enchant identifier must be unique.
|
||||
identifier: ObsidianDestroyer
|
||||
|
@ -1,5 +1,5 @@
|
||||
# The person who made this enchant.
|
||||
Author: Songoda
|
||||
author: Songoda
|
||||
|
||||
# The enchant identifier must be unique.
|
||||
identifier: "PlagueCarrier"
|
||||
|
@ -1,5 +1,5 @@
|
||||
# The person who made this enchant.
|
||||
Author: Songoda
|
||||
author: Songoda
|
||||
|
||||
# The enchant identifier must be unique.
|
||||
identifier: Ragdoll
|
||||
|
@ -1,5 +1,5 @@
|
||||
# The person who made this enchant.
|
||||
Author: Songoda
|
||||
author: Songoda
|
||||
|
||||
# The enchant identifier must be unique.
|
||||
identifier: "SelfDestruct"
|
||||
|
Loading…
Reference in New Issue
Block a user