Karlous009
📎 1 file 18,467 chars
📄
pasted-code-1791294413957.txt
txt 1069 lines
▶
Create a **fully polished, production-ready Minecraft Java plugin** called **ArmourEnchant** for **Minecraft 1.21.4 / Paper**.

The plugin's main purpose is to allow administrators to attach **custom potion/status effects directly to individual armor items** using commands. The effects are permanently stored on the actual ItemStack and automatically activate whenever that specific armor piece is worn.

The plugin should feel like a **premium-quality Minecraft plugin**, with clean code, excellent UX, polished messages, particles, GUI, commands, tab completion, configuration, error handling, and strong performance.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

# 1. CORE CONCEPT

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

The most important feature:

An administrator holds an armor piece in their **main hand** and runs:

`/armourenchant hand  `

Example:

`/armourenchant hand strength 2`

If the player is holding a Netherite Helmet, that exact helmet now permanently stores:

**Strength II**

When the helmet is worn:

→ Strength II activates.

When the helmet is removed:

→ Strength II deactivates.

The effect belongs to the **ITEM**, not the player and not a predefined armor set.

Do NOT require a complete armor set.

Every armor piece works independently.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

# 2. INDIVIDUAL ARMOR EFFECTS

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Each armor piece can have completely different effects.

Example:

Helmet → Strength II
Chestplate → Resistance II
Leggings → Speed II
Boots → Jump Boost II

Player wearing only the helmet:

→ Strength II

Helmet + Boots:

→ Strength II + Jump Boost II

Chestplate + Leggings:

→ Resistance II + Speed II

Full armor:

→ All four effects.

Removing one piece must ONLY remove the effects supplied by that piece.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

# 3. MAIN COMMAND

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Primary command:

`/armourenchant hand  `

Aliases:

`/armorenchant`
`/armourenchant`
`/ae`

Example:

`/armourenchant hand strength 2`

`/armourenchant hand speed 3`

`/armourenchant hand fire_resistance 1`

`/armourenchant hand night_vision 1`

The command must:

1. Check that the player is holding an item.
2. Check that the item is valid armor.
3. Validate the effect.
4. Validate the level.
5. Store the effect directly inside the ItemStack.
6. Preserve all existing item properties.
7. Send a professional success message.

Example:

`&a✓ Successfully added &eStrength II &ato your armor!`

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

# 4. MULTIPLE EFFECTS ON ONE ARMOR PIECE

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

One armor piece MUST support multiple effects.

Example:

`/armourenchant hand strength 2`

Then:

`/armourenchant hand speed 2`

Then:

`/armourenchant hand fire_resistance 1`

The same helmet now provides:

* Strength II
* Speed II
* Fire Resistance I

Adding a new effect must NOT overwrite existing effects.

If the same effect is added again, update its level instead of creating duplicates.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

# 5. REMOVE EFFECT COMMANDS

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Add:

`/armourenchant hand remove `

Example:

`/armourenchant hand remove strength`

Only Strength is removed.

Speed and Fire Resistance remain.

Also add:

`/armourenchant hand clear`

This removes ALL ArmourEnchant effects from the held armor.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

# 6. VIEW ARMOR EFFECTS

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Add:

`/armourenchant hand info`

Display information about the armor currently held.

Example:

`━━━━━━━━━━━━━━━━`
`  ARMOR EFFECTS`
`━━━━━━━━━━━━━━━━`
`Item: Netherite Helmet`
``
`✦ Strength II`
`✦ Speed II`
`✦ Fire Resistance I`
`━━━━━━━━━━━━━━━━`

If there are no effects:

`&cThis armor has no ArmourEnchant effects.`

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

# 7. ITEM DATA / PERSISTENCE

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

This is extremely important.

Store all ArmourEnchant data directly inside the ItemStack using **PersistentDataContainer (PDC)**.

Do NOT identify enchanted armor only using:

* Display name
* Lore
* Material
* Item name

Players must be able to rename the item without breaking its effects.

The effect data must survive:

* Server restart
* Player logout/login
* Inventory movement
* Item dropping
* Item pickup
* Chest storage
* Ender chest storage
* Death drops
* Trading where applicable
* Item movement between inventories

Example internal structure:

`armourenchant.effects`

containing effect identifiers and levels.

Use a clean, reliable serialization format.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

# 8. EFFECT ACTIVATION

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

When armor is equipped:

→ Read effects from that specific ItemStack.

→ Activate its effects.

When armor is removed:

→ Remove only effects provided by that armor piece.

Example:

Helmet:
Strength II + Night Vision

Boots:
Speed II

Player wears both:

→ Strength II
→ Night Vision
→ Speed II

Player removes helmet:

→ Strength II removed
→ Night Vision removed
→ Speed II remains.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

# 9. SAFE EFFECT MANAGEMENT

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

DO NOT blindly remove potion effects.

The plugin must track effects that it personally applied.

For example:

Player has Speed II from ArmourEnchant.

Player also has Speed I from a potion.

When the armor is removed, ArmourEnchant should remove ONLY the effect it owns where technically possible and avoid unnecessarily interfering with unrelated effects.

Prevent:

* Permanent effects
* Duplicate effects
* Effect flickering
* Unnecessary effect replacement
* Removing unrelated plugin effects

Use a robust effect ownership/tracking system.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

# 10. SUPPORTED ARMOR

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Support all standard armor:

Leather:

* Helmet
* Chestplate
* Leggings
* Boots

Chainmail:

* Helmet
* Chestplate
* Leggings
* Boots

Iron:

* Helmet
* Chestplate
* Leggings
* Boots

Gold:

* Helmet
* Chestplate
* Leggings
* Boots

Diamond:

* Helmet
* Chestplate
* Leggings
* Boots

Netherite:

* Helmet
* Chestplate
* Leggings
* Boots

Also correctly handle modern armor-equivalent items where appropriate.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

# 11. EFFECT LEVEL SYSTEM

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Use intuitive Minecraft levels:

1 = Level I
2 = Level II
3 = Level III

Example:

`/armourenchant hand strength 5`

→ Strength V

Default maximum:

255

Make the maximum configurable.

Reject:

* Level 0
* Negative levels
* Non-numeric levels
* Levels above the configured maximum

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

# 12. EFFECTS

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Support Minecraft/Paper potion effects available on the target version.

Examples include:

* SPEED
* SLOWNESS
* HASTE
* MINING_FATIGUE
* STRENGTH
* INSTANT_HEALTH
* INSTANT_DAMAGE
* JUMP_BOOST
* NAUSEA
* REGENERATION
* RESISTANCE
* FIRE_RESISTANCE
* WATER_BREATHING
* INVISIBILITY
* BLINDNESS
* NIGHT_VISION
* HUNGER
* WEAKNESS
* POISON
* WITHER
* ABSORPTION
* SATURATION
* GLOWING
* LEVITATION
* LUCK
* UNLUCK
* SLOW_FALLING
* CONDUIT_POWER
* DOLPHINS_GRACE
* BAD_OMEN
* HERO_OF_THE_VILLAGE
* DARKNESS

Use the correct modern Bukkit/Paper API names for Minecraft 1.21.4.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

# 13. AUTOMATIC PARTICLE SYSTEM

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Every armor piece with an ArmourEnchant effect should be able to produce **beautiful visual particles while worn**.

Particles are a major feature.

They should automatically activate when the armor is equipped and stop when it is removed.

Example:

Netherite Helmet:
Strength II

Player wears it:

→ Strength II activates
→ Strength-themed particles appear.

Player removes it:

→ Strength II disappears
→ Particles disappear.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

# 14. EFFECT-SPECIFIC PARTICLES

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Automatically assign suitable particle effects based on the potion effect.

Examples:

STRENGTH
→ CRIT / damage-style particles

SPEED
→ CLOUD / movement particles

JUMP_BOOST
→ CLOUD particles around feet

FIRE_RESISTANCE
→ FLAME / fiery particles

NIGHT_VISION
→ ENCHANT / magical particles

REGENERATION
→ HEART / magical healing particles

RESISTANCE
→ ENCHANT / protective particles

WATER_BREATHING
→ BUBBLE particles

INVISIBILITY
→ subtle ENCHANT particles

HASTE
→ CRIT / spark particles

SLOW_FALLING
→ CLOUD particles

LEVITATION
→ END_ROD / magical particles

Create sensible visual effects for every supported effect.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

# 15. ARMOR-SLOT PARTICLE LOCATIONS

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Make particle locations correspond to the armor slot.

Helmet:
→ Around the head

Chestplate:
→ Around upper body

Leggings:
→ Around legs

Boots:
→ Around feet

Do NOT make all particles spawn randomly around the entire player.

Make them visually polished.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

# 16. MULTIPLE PARTICLE EFFECTS

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

If one armor piece contains:

Strength II
Speed II
Fire Resistance I

the plugin should support all three visual effects.

However, prevent excessive particle spam.

Use:

* Configurable particle amount
* Configurable spawn interval
* Configurable radius
* Efficient scheduling
* Sensible defaults

The player should look powerful without causing visual or server overload.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

# 17. PARTICLE CONFIGURATION

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Add:

`particles:
  enabled: true
  interval: 10
  amount: 3`

Allow configuration for:

* Particle type
* Amount
* Speed
* X offset
* Y offset
* Z offset
* Radius
* Spawn interval
* Armor slot
* Individual effect
* Enable/disable specific effect particles

Allow custom particle overrides.

Example concept:

`particles:
  strength:
    type: CRIT
    amount: 3
  speed:
    type: CLOUD
    amount: 2`

Use valid modern particle names for Paper 1.21.4.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

# 18. PARTICLE PERFORMANCE

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Do NOT spawn particles every server tick.

Use an efficient scheduled system.

Do not create a separate unnecessary repeating task for every player.

Optimize for servers with many players.

Particles must not cause noticeable TPS/FPS problems.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

# 19. ARMOR CHANGE DETECTION

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Correctly detect:

* Normal armor equip
* Shift-click
* Dragging armor
* Number-key swaps
* Inventory manipulation
* Armor replacement
* Armor breaking
* Death
* Respawn
* Login
* Logout
* World changes
* Teleportation where relevant
* Plugin-driven inventory changes

Effects must activate quickly.

Effects must deactivate correctly.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

# 20. COMMAND LIST

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Implement:

`/armourenchant help`

`/armourenchant hand  `

`/armourenchant hand remove `

`/armourenchant hand clear`

`/armourenchant hand info`

`/armourenchant give  `

`/armourenchant reload`

`/armourenchant gui`

`/armourenchant list`

`/armourenchant info `

The command structure must be clean and intuitive.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

# 21. TAB COMPLETION

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Add intelligent tab completion.

Example:

`/armourenchant hand `

Suggest valid effect names.

Example:

`/armourenchant hand remove `

Suggest effects currently stored on the held armor.

For:

`/armourenchant `

Show available subcommands based on permissions.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

# 22. PERMISSIONS

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Implement:

`armourenchant.admin`

`armourenchant.enchant`

`armourenchant.remove`

`armourenchant.info`

`armourenchant.give`

`armourenchant.reload`

`armourenchant.gui`

Use proper permission checks.

Provide configurable permission-denied messages.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

# 23. GUI

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Create a polished inventory GUI accessible with:

`/armourenchant gui`

The GUI should allow administrators to inspect armor effects.

Display:

* Armor name
* Material
* Armor slot
* Stored effects
* Effect levels
* Particle status

Prevent decorative GUI items from being taken.

Use professional formatting.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

# 24. SOUNDS

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Add optional sounds for:

* Armor equipped
* Effect activated
* Armor removed

Allow configuration of:

* Sound
* Volume
* Pitch
* Enable/disable

Do NOT repeatedly play sounds during effect refreshes.

Only play activation/deactivation sounds when the state actually changes.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

# 25. MESSAGES

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Create a separate:

`messages.yml`

Include professional messages for:

* Successful effect addition
* Effect removal
* Clear effects
* Armor required
* Invalid effect
* Invalid level
* Permission denied
* Reload success
* No effects
* Help
* GUI
* Errors

Support:

* Color codes
* Prefix
* Placeholders
* Configurable messages

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

# 26. CONFIGURATION

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Create:

`config.yml`

and:

`messages.yml`

Configurable settings should include:

* Maximum effect level
* Effect refresh interval
* Particle system
* Particle amount
* Particle interval
* Particle types
* Sound settings
* GUI settings
* Debug mode
* Permissions
* General plugin behavior

The plugin must NOT require configuration editing just to add an effect to an item.

The command system is the primary way to enchant armor with effects.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

# 27. PLACEHOLDERAPI

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

If PlaceholderAPI is installed, optionally support placeholders such as:

`%armourenchant_helmet%`

`%armourenchant_chestplate%`

`%armourenchant_leggings%`

`%armourenchant_boots%`

`%armourenchant_effects%`

PlaceholderAPI must remain optional.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

# 28. EDGE CASES

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Handle:

* Player death
* Respawn
* Armor breaking
* Armor removal
* Armor replacement
* World changes
* Server restart
* Plugin reload
* Player reconnect
* Invalid configuration
* Invalid effects
* Invalid materials
* Duplicate effects
* Missing items
* Empty hand
* Non-armor item
* Multiple armor pieces with the same effect
* Other plugins modifying potion effects

Never leave ArmourEnchant effects permanently active after the armor is removed.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

# 29. PERFORMANCE

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

The plugin must be lightweight.

Avoid:

* Heavy per-tick loops
* Unnecessary ItemStack cloning
* Repeated inventory scanning
* Excessive particle spawning
* Excessive potion-effect updates
* Console spam

Only recalculate armor effects when necessary.

Use caching/tracking where appropriate.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

# 30. COMPATIBILITY

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Target:

**Minecraft Java Edition 1.21.4**

Platform:

**Paper**

Use modern Paper/Bukkit APIs.

Avoid outdated APIs wherever possible.

Keep dependencies minimal.

Provide a correct:

`plugin.yml`

with:

* Name
* Version
* Main class
* API version
* Commands
* Permissions
* Optional dependencies

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

# 31. PROFESSIONAL POLISH

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

The plugin should feel like a **premium Minecraft plugin**, not a basic test plugin.

Include:

* Clean architecture
* Proper packages
* Separate managers/services where appropriate
* Clean command handling
* Tab completion
* PDC utilities
* Effect manager
* Armor manager
* Particle manager
* GUI manager
* Message manager
* Configuration manager
* Error handling
* Debug logging
* Professional formatting
* No unnecessary dependencies
* No console spam

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

# 32. COMPLETE EXAMPLE

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Admin obtains a Netherite Helmet.

Admin holds it in their hand.

Runs:

`/armourenchant hand strength 2`

Result:

Helmet stores Strength II.

Then:

`/armourenchant hand night_vision 1`

Result:

Helmet stores:

Strength II
Night Vision I

Then:

`/armourenchant hand speed 3`

Result:

Helmet stores:

Strength II
Night Vision I
Speed III

Admin runs:

`/armourenchant hand info`

GUI/chat displays all three effects.

Player wears helmet:

→ Strength II activates
→ Night Vision I activates
→ Speed III activates
→ Matching particles appear around the player.

Player removes helmet:

→ All ArmourEnchant effects from that helmet deactivate.
→ Its particles disappear.

If the player is also wearing boots with Jump Boost II:

→ Jump Boost II remains active.

There is NO full-set requirement.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

# ⭐ MOST IMPORTANT REQUIREMENT

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

The entire plugin revolves around this exact workflow:

**HOLD ARMOR**
↓
**/armourenchant hand  **
↓
**EFFECT IS PERMANENTLY STORED INSIDE THAT ITEM**
↓
**EQUIP ARMOR**
↓
**EFFECT ACTIVATES**
↓
**MATCHING PARTICLES APPEAR**
↓
**REMOVE ARMOR**
↓
**EFFECT + ITS PARTICLES DEACTIVATE**

Every armor piece must work independently.

Multiple effects can exist on one armor piece.

Multiple armor pieces can provide effects simultaneously.

No full-set requirement.

Do not replace existing effects when adding another effect.

Do not lose effects after server restart.

Do not rely on item names/lore for identification.

Use PersistentDataContainer.

Finally, generate the **complete compilable plugin source code and all required resources**, verify the implementation for compilation errors, and ensure compatibility with **Paper 1.21.4**.
Kodari AI
KodariOct 6 at 1:58 pm 2
ArmourEnchant
A premium Paper plugin that lets administrators permanently store custom potion effects directly onto individual armor items via commands. Effects are saved in the item's PersistentDataContainer, survive restarts and inventory movement, and automatically activate with matching particles when the armor is equipped and deactivate when removed. Supports multiple effects per piece, independent armor slots, configurable particles and sounds, a polished inventory GUI, tab completion, and full permission integration.
  • Create the Paper 1.21.4 project scaffold and default configuration/messages.

  • Add item-bound PDC effect storage, command handling, permissions, and tab completion.

  • Implement armor-effect tracking, safe refresh/removal, event updates, particles, sounds, GUI, and optional PlaceholderAPI support.

Created the ArmourEnchant Paper 1.21.4 project with PDC-stored item effects, commands and permissions, tab completion, configuration/messages, armor effect tracking, particles, sounds, an inspection GUI, and optional PlaceholderAPI support.

Instant effects such as Instant Health, Instant Damage, and Saturation trigger once when the worn-effect state changes; they’re one-shot effects and cannot be reversed when armor is removed. I haven’t run a separate Gradle build.

Karlous009

make this plugin for 1.20.6 and make like we can link effects to armour and tools like bow sword , axe , picaxe and all tools and all armour like /armourenchant effect (effect_name) (effect_level)

Kodari AI
KodariOct 6 at 2:18 pm 2
  1. Update the project to target Minecraft 1.20.6.

  2. Add /armourenchant effect <effect_name> <effect_level> to link potion effects to armor and tools, including swords, bows, axes, pickaxes, and other equipment.

Updated the project to compile against Paper 1.20.6 and set its plugin API version to 1.20.5 for 1.20.6 compatibility.

Added /armourenchant effect <effect_name> <effect_level>. Hold supported armor, tools, or weapons in your main hand to add an effect; it activates while the item is worn or held. This includes swords, axes, pickaxes, shovels, hoes, bows, crossbows, tridents, and other supported tools. Tab completion and help text are updated.

Karlous009

whats the command to aply regen 3 in a chestplate which is in myhand

Kodari AI
KodariOct 6 at 2:23 pm 1

Hold the chestplate in your main hand, then run:

/armourenchant effect REGENERATION 3

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
18 1,522
src/main/java/com/kodari/armourenchant/ArmourEnchantPlugin.java
package com.kodari.armourenchant;

import com.kodari.armourenchant.command.ArmourEnchantCommand;
import com.kodari.armourenchant.gui.ArmorGUIListener;
import com.kodari.armourenchant.listener.ArmorListener;
import com.kodari.armourenchant.manager.ArmorEffectManager;
import com.kodari.armourenchant.manager.MessageManager;
import com.kodari.armourenchant.manager.ParticleManager;
import com.kodari.armourenchant.manager.SoundManager;
import com.kodari.armourenchant.placeholder.ArmorEnchantExpansion;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

public final class ArmourEnchantPlugin extends JavaPlugin {
    private MessageManager messageManager;
    private SoundManager soundManager;
    private ArmorEffectManager armorEffectManager;
    private ParticleManager particleManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        saveResource("messages.yml", false);
        this.messageManager = new MessageManager(this);
        this.soundManager = new SoundManager(this);
        this.armorEffectManager = new ArmorEffectManager(this, soundManager);
        this.particleManager = new ParticleManager(this);

        ArmourEnchantCommand command = new ArmourEnchantCommand(this);
        getCommand("armourenchant").setExecutor(command);
        getCommand("armourenchant").setTabCompleter(command);
        Bukkit.getPluginManager().registerEvents(new ArmorListener(this, armorEffectManager), this);
        Bukkit.getPluginManager().registerEvents(new ArmorGUIListener(), this);

        armorEffectManager.start();
        particleManager.start();
        if (Bukkit.getPluginManager().isPluginEnabled("PlaceholderAPI")) {
            new ArmorEnchantExpansion(this).register();
        }
    }

    @Override
    public void onDisable() {
        if (particleManager != null) {
            particleManager.stop();
        }
        if (armorEffectManager != null) {
            armorEffectManager.stop();
        }
    }

    public MessageManager messages() {
        return messageManager;
    }

    public SoundManager sounds() {
        return soundManager;
    }

    public ArmorEffectManager armorEffects() {
        return armorEffectManager;
    }

    public ParticleManager particles() {
        return particleManager;
    }

    public void reloadPluginConfiguration() {
        reloadConfig();
        messageManager.reload();
        armorEffectManager.reloadSettings();
        particleManager.reloadSettings();
    }
}