Of course! Here’s the full concept in English with all the details:
---
Shadow Summon Ability – Full Implementation Concept
Core Idea
When the player right-clicks with a special sword, five shadow figures are summoned. These shadows are purely particle-based, forming a black humanoid silhouette. All five shadows follow the exact same logic: they move freely when toggled on, but they only attack other entities if the owner (the player who summoned them) attacks first, or if the owner is attacked. They ignore the owner entirely.
Auto Toggle Logic
After right-click, shadows are summoned instantly.
Each shadow is identical in form, and they all implement the same logic.
By default, the shadows move freely in the environment.
If no attacks happen, after 3 seconds, the auto toggle activates automatically, so the shadows start moving on their own.
If the cooldown timer expires, the shadows vanish completely.
The entire system is automatic, so the player doesn’t need to type commands each time.
Visual Effects
When shadows attack or disappear, a subtle animation plays: first, a red particle appears above them, followed by three thunder sounds and particles. Then, they fade away like a light dust effect. When reactivated, a portal-like animation plays, rising from underground, as if the shadows emerge from a mystical gate.
Admin Command (INVENTORY GUI)
The admin can run /INVENTORY GUI k to open a INVENTORY GUI menu that grants the Shadow Slayer sword. This sword has the shadow ability tied to it.
Once the player receives the sword, the shadows summon automatically on right-click, and all logic follows.
Command Flow
- Player right-clicks → Shadows summon.
- If the player attacks or is attacked, shadows focus on that target.
- After 3 seconds of inactivity, auto toggle activates, and shadows roam freely.
- Cooldown timer (set by you) starts after 30 seconds, and shadows disappear.
- The player can summon them again later.
Command Example (Auto Toggle):
After right-click, every 3 seconds, the plugin checks if the owner attacked or was attacked.
If yes, shadows teleport and attack the target.
If no action, auto toggle turns on, shadows wander, and when cooldown ends, they vanish.
Shadow Figure Appearance
Shadows are a black, smoky humanoid shape.
They look exactly like a player model, but made of particles.
When they attack or vanish, they play subtle red particles, thunder sounds, and dust effects, making them feel mystical.
The portal effect on re-summon makes them rise from underground, creating a powerful visual impact.
---
This entire system ensures that shadows behave like player duplicates, only attack on specific triggers, and their movement, appearance, and auto-toggle all work seamlessly, so you get a truly immersive, controlled shadow ability.Of course! Let me give you a more detailed description in English. When the shadows reappear, imagine a portal-like animation rising from the ground. It starts as a faint glow beneath you, with swirling black smoke and a hint of red light. Slowly, the portal expands upward, and from it, the shadow figures rise, as if emerging from a mysterious, otherworldly dimension, creating a dramatic, eerie entrance into the game world.
I’ll create a mystical shadow summoning plugin with particle-based warriors and dramatic visual effects!
Plan
Core: Shadow class (individual shadow), ShadowController (manages 5 shadows per player), ShadowManager (global)
Combat: Detect owner attacks/damage, shadows auto-target threats
Auto-toggle: After 3s inactivity → roam mode; 30s total → despawn with effects
Visuals: Portal spawn animation, red particles + thunder on despawn, black smoke humanoid shape
GUI: Admin command to grant Shadow Slayer sword
ShadowSummon plugin created!
Features Implemented
✅ Shadow Warriors: 5 particle-based shadows spawn in a circle formation
✅ Portal Animation: Dramatic rising portal effect on summon (black smoke + purple particles)
✅ Auto-Toggle: After 3s of no combat, shadows roam freely around owner
✅ Combat Targeting: Shadows attack when owner attacks OR is attacked
✅ Despawn Effects: Red particles → 3 thunder sounds → smoke fade
✅ GUI System: /shadowsword command opens inventory to claim the Shadow Slayer sword
✅ Cooldown System: 60s cooldown between summons (configurable)
✅ 30s Duration: Shadows automatically despawn after 30 seconds
Usage
Admin runs
/shadowsword→ GUI opensClick the sword to receive Shadow Slayer
Right-click with sword → 5 shadows spawn with portal animation
Shadows roam around you, attack your targets or enemies that attack you
After 30 seconds, shadows despawn with thunder effects
All timings, damage, and particle density are configurable in config.yml! 🌑⚔️
YUFLY — Ultimate Ritual Weapons Plugin
Plugin Name
Yufly
Plugin Concept
Yufly is an advanced Minecraft weapon plugin built around ritual crafting, cinematic animations, powerful abilities, admin control systems, custom GUIs, cooldown management, and weapon awakening mechanics.
Every weapon is unique, craft-controlled, ability-based, and fully manageable by admins.
---
WEAPONS
- Lunar Eclipse Blade 🌙
Ability: Moonfall Dominion
Activation: Right Click
Effects:
- Changes world time to midnight.
- Grants Night Vision to user.
- Meteor strikes around enemies.
- Lunar particle aura.
Duration: 25s Cooldown: 30s
---
- Light Blade ✨
Ability: Luminous Strike
Activation: Right Click
Effects:
- Marks enemies with light particles.
- High-speed dash attacks.
- Automatic combo movement.
- Maximum 60 hearts damage.
Duration: 20s Cooldown: 30s
---
- Teleportation Blade ⚡
Ability: Shadow Shift
Activation: Right Click
Effects:
- Instantly teleports behind target.
- Fast repositioning.
- Defensive mobility combat.
Duration: 35s Cooldown: 45s
---
- Judgment Blade 🔥
Ability 1: Crimson Judgment
Activation: Right Click
Effects:
- Red particles appear for 3 seconds.
- Enemies launched 60 blocks upward.
- Massive fall impact attack.
Duration: 10s Cooldown: 20s
Ability 2: Golden Barrier
Activation: Shift + Right Click
Effects:
- Golden beacon barrier.
- Pushes attackers backward.
- Heavy defensive protection.
Duration: 60s Cooldown: 20s
---
- Dark Heal Weapon ☠️
Ability 1: Dark Heal
Activation: Right Click
Effects:
- Hearts turn dark.
- Damage reduced by 50%.
- Strong regeneration boost.
Duration: 19s Cooldown: 24s
Ability 2: Green Puffs
Activation: Shift + Right Click
Effects:
- Green particles below enemies.
- Steals nearby player health.
- Transfers hearts to user.
Duration: 24s Cooldown: 29s
---
RECIPES
All recipes use Netherite Sword in the center.
---
Lunar Eclipse Blade
Nether Star | Crying Obsidian | Nether Star
End Crystal | Netherite Sword | End Crystal
Amethyst Shard | Nether Star | Amethyst Shard
---
Light Blade
Beacon | Glowstone | Beacon
Gold Block | Netherite Sword | Gold Block
Sea Lantern | Beacon | Sea Lantern
---
Teleportation Blade
End Crystal | Chorus Fruit | End Crystal
Ender Pearl | Netherite Sword | Ender Pearl
Respawn Anchor | End Crystal | Respawn Anchor
---
Judgment Blade
Totem Of Undying | Redstone Block | Totem Of Undying
Nether Star | Netherite Sword | Nether Star
Wither Skeleton Skull | Lava Bucket | Wither Skeleton Skull
---
Dark Heal Weapon
Wither Skeleton Skull | Soul Sand | Wither Skeleton Skull
Emerald Block | Netherite Sword | Emerald Block
Echo Shard | Nether Star | Echo Shard
---
RITUAL CRAFTING SYSTEM
Normal crafting tables are disabled.
Weapons require Ritual Crafting.
Maximum ritual duration: 60 Seconds
---
Ritual Display UI
Center Screen:
CRAFTING: [Weapon Name]
Side Display:
- Time Remaining
- Ritual Coordinates (X Y Z)
Boss Bar:
[Weapon Name] Awakening — 00:59
---
RITUAL ANIMATIONS
Each weapon has unique cinematic animations.
Lunar Eclipse Blade
Moon beams, eclipse sky, gravity distortion, lunar circles.
Light Blade
Golden rays, energy wings, holy beams, solar explosion.
Teleportation Blade
Portal fractures, shadow clones, space distortion, black hole vortex.
Judgment Blade
Crimson chains, lava sparks, red lightning, judgment beam.
Dark Heal Weapon
Soul mist, black hearts, healing waves, shadow growth.
---
First Craft Awakening Event
If a weapon is crafted for the first time on the server:
Special effects activate.
Features:
- Global announcement.
- World sound blast.
- Sky transformation.
- Animated boss bar.
- Giant hologram.
Display:
FIRST AWAKENING — [WEAPON NAME]
Final countdown cinematic.
---
ADMIN COMMAND SYSTEM
Enable Command
Admin Only.
Command:
/enable <weaponname> <on/off>
Permission:
yufly.admin
Examples:
/enable lightblade on
/enable judgmentblade off
---
Tab Completion
Typing:
/enable
Shows:
- lunareclipseblade
- lightblade
- teleportationblade
- judgmentblade
- darkhealweapon
After weapon selection:
Shows:
- on
- off
---
Disabled Weapon Rules
If disabled:
- Cannot Craft
- Recipe Locked
- Ability Blocked
- Ritual Disabled
- INVENTORY GUI Locked
---
ADMIN INVENTORY GUI SYSTEM
/yufly
Permission:
yufly.admin
Admin Only.
Opens:
⚔ YUFLY WEAPONS ⚔
Displays all plugin weapons.
Admins can withdraw weapons.
One weapon per click.
Shows:
- Name
- Ability Info
- Duration
- Cooldown
- Status
Disabled weapons appear locked.
---
/recipe
Permission:
yufly.admin
Admin Only.
Opens:
📖 YUFLY RECIPES 📖
Displays every weapon.
Clicking a weapon opens recipe preview INVENTORY GUI.
Shows:
- 3×3 Recipe Layout
- Required Materials
- Weapon Status
Recipe animations:
- Item glow.
- Pulsing Netherite Sword.
- Smooth transition.
---
VISUAL SYSTEMS
Included Features:
✔ ActionBar cooldown display
✔ BossBar timers
✔ Ability particles
✔ Weapon sounds
✔ Ritual cinematics
✔ Animated INVENTORY GUI feedback
✔ Enable/Disable system
✔ Tab completion
✔ Config support
✔ Permission system
✔ PvP balancing
✔ Anti-spam cooldown protection
---
Yufly Theme
Dark fantasy + holy energy + cinematic weapon awakening.
Designed for:
PvP Servers RPG Servers Custom Survival Servers Event Servers
YUFLY — Weapons Are Not Crafted. They Awaken.
I’ll build this massive plugin systematically. Let me plan it all out first.
Plan
Project structure (build.gradle, plugin.yml, config.yml)
Core infrastructure (main plugin class, managers)
GUI framework (InventoryHandler, InventoryButton, InventoryGUI, GUIManager, GUIListener)
Weapon definitions + item builders
Ritual crafting system
All 5 weapon abilities
Admin commands (/yufly, /recipe, /enable)
Visual systems (ActionBar, BossBar, particles, sounds)
First Awakening event system
Yufly is fully built! Here’s a complete summary:
What’s Included
⚔️ 5 Weapons with Full Abilities
Weapon | Ability 1 | Ability 2 |
|---|---|---|
Lunar Eclipse Blade | Moonfall Dominion — midnight + meteors + lunar aura | — |
Light Blade | Luminous Strike — dash attacks + light marks | — |
Teleportation Blade | Shadow Shift — teleport behind target every 1.5s | — |
Judgment Blade | Crimson Judgment — launch enemies 60 blocks up | Golden Barrier — push + golden ring (Shift+RC) |
Dark Heal Weapon | Dark Heal — 50% dmg reduction + regen | Green Puffs — steal health from nearby players (Shift+RC) |
🔮 Ritual Crafting System
Normal crafting table is blocked for all 5 recipes
60-second ritual with live ActionBar (coords + time), BossBar countdown, and rotating particles unique to each weapon
✨ First Awakening Event
Tracks per-weapon first-ever craft in
config.ymlServer-wide announcement + dragon growl + challenge sound
Animated purple BossBar visible to all players for 10 seconds
🖥️ Admin GUIs
/yufly→ Weapons GUI — click to receive any weapon (locked if disabled)/recipe→ Recipes GUI → click weapon → 3×3 recipe preview with back button/enable <weapon> <on|off>→ toggle with full tab completion
🎯 Visual Systems
Per-ability BossBar timers with color-coded bars
Particle auras running every tick during ability
Cooldown messages with seconds remaining
All timings configurable in
config.yml
The compilation failed with this error:
Compilation failed with 45 error(s):
ERROR in src/main/java/com/yufly/manager/FirstAwakeningManager.java at line 88: cannot find symbol
world.spawnParticle(Particle.EXPLOSION_LARGE, loc.clone().add(0, tick * 0.1, 0), 1, 0.5, 0.5, 0.5, 0);
^
symbol: variable EXPLOSION_LARGE
location: class Particle
ERROR in src/main/java/com/yufly/ability/LunarEclipseAbility.java at line 39: cannot find symbol
BossBar bar = Bukkit.createBossBar(
^
symbol: class BossBar
location: class LunarEclipseAbility
ERROR in src/main/java/com/yufly/ability/LightBladeAbility.java at line 30: cannot find symbol
BossBar bar = Bukkit.createBossBar(
^
symbol: class BossBar
location: class LightBladeAbility
ERROR in src/main/java/com/yufly/ability/TeleportationAbility.java at line 34: cannot find symbol
BossBar bar = Bukkit.createBossBar(
^
symbol: class BossBar
location: class TeleportationAbility
ERROR in src/main/java/com/yufly/ability/JudgmentAbility.java at line 30: cannot find symbol
BossBar bar = Bukkit.createBossBar(
^
symbol: class BossBar
location: class JudgmentAbility
ERROR in src/main/java/com/yufly/ability/JudgmentAbility.java at line 65: cannot find symbol
BossBar bar = Bukkit.createBossBar(
^
symbol: class BossBar
location: class JudgmentAbility
ERROR in src/main/java/com/yufly/ability/JudgmentAbility.java at line 120: cannot find symbol
world.spawnParticle(Particle.REDSTONE, loc.clone().add(x, 0, z), 3,
^
symbol: variable REDSTONE
location: class Particle
ERROR in src/main/java/com/yufly/ability/JudgmentAbility.java at line 132: cannot find symbol
world.spawnParticle(Particle.REDSTONE, loc.clone().add(x, 0, z), 2,
^
symbol: variable REDSTONE
location: class Particle
ERROR in src/main/java/com/yufly/ability/DarkHealAbility.java at line 29: cannot find symbol
player.addPotionEffect(new PotionEffect(PotionEffectType.DAMAGE_RESISTANCE, duration * 20, 1, false, false));
^
symbol: variable DAMAGE_RESISTANCE
location: class PotionEffectType
ERROR in src/main/java/com/yufly/ability/DarkHealAbility.java at line 36: cannot find symbol
BossBar bar = Bukkit.createBossBar(
^
symbol: class BossBar
location: class DarkHealAbility
ERROR in src/main/java/com/yufly/ability/DarkHealAbility.java at line 66: cannot find symbol
BossBar bar = Bukkit.createBossBar(
^
symbol: class BossBar
location: class DarkHealAbility
ERROR in src/main/java/com/yufly/ability/DarkHealAbility.java at line 107: cannot find symbol
double maxHealth = player.getAttribute(Attribute.GENERIC_MAX_HEALTH).getValue();
^
symbol: variable GENERIC_MAX_HEALTH
location: interface Attribute
ERROR in src/main/java/com/yufly/ability/DarkHealAbility.java at line 120: cannot find symbol
world.spawnParticle(Particle.SMOKE_NORMAL, loc.clone().add(x, 0, z), 1, 0.1, 0.1, 0.1, 0.01);
^
symbol: variable SMOKE_NORMAL
location: class Particle
ERROR in src/main/java/com/yufly/ability/DarkHealAbility.java at line 130: cannot find symbol
world.spawnParticle(Particle.VILLAGER_HAPPY, loc.clone().add(x, 0, z), 2, 0.2, 0.2, 0.2, 0);
^
symbol: variable VILLAGER_HAPPY
location: class Particle
ERROR in src/main/java/com/yufly/ability/DarkHealAbility.java at line 131: cannot find symbol
world.spawnParticle(Particle.SPELL_WITCH, loc.clone().add(x, 0, z), 1, 0.1, 0.1, 0.1, 0.01);
^
symbol: variable SPELL_WITCH
location: class Particle
ERROR in src/main/java/com/yufly/manager/FirstAwakeningManager.java at line 88: cannot find symbol
world.spawnParticle(Particle.EXPLOSION_LARGE, loc.clone().add(0, tick * 0.1, 0), 1, 0.5, 0.5, 0.5, 0);
^
symbol: variable EXPLOSION_LARGE
location: class Particle
ERROR in src/main/java/com/yufly/ability/LunarEclipseAbility.java at line 39: cannot find symbol
BossBar bar = Bukkit.createBossBar(
^
symbol: class BossBar
location: class LunarEclipseAbility
ERROR in src/main/java/com/yufly/ability/LightBladeAbility.java at line 30: cannot find symbol
BossBar bar = Bukkit.createBossBar(
^
symbol: class BossBar
location: class LightBladeAbility
ERROR in src/main/java/com/yufly/ability/TeleportationAbility.java at line 34: cannot find symbol
BossBar bar = Bukkit.createBossBar(
^
symbol: class BossBar
location: class TeleportationAbility
ERROR in src/main/java/com/yufly/ability/JudgmentAbility.java at line 30: cannot find symbol
BossBar bar = Bukkit.createBossBar(
^
symbol: class BossBar
location: class JudgmentAbility
ERROR in src/main/java/com/yufly/ability/JudgmentAbility.java at line 65: cannot find symbol
BossBar bar = Bukkit.createBossBar(
^
symbol: class BossBar
location: class JudgmentAbility
ERROR in src/main/java/com/yufly/ability/JudgmentAbility.java at line 120: cannot find symbol
world.spawnParticle(Particle.REDSTONE, loc.clone().add(x, 0, z), 3,
^
symbol: variable REDSTONE
location: class Particle
ERROR in src/main/java/com/yufly/ability/JudgmentAbility.java at line 132: cannot find symbol
world.spawnParticle(Particle.REDSTONE, loc.clone().add(x, 0, z), 2,
^
symbol: variable REDSTONE
location: class Particle
ERROR in src/main/java/com/yufly/ability/DarkHealAbility.java at line 29: cannot find symbol
player.addPotionEffect(new PotionEffect(PotionEffectType.DAMAGE_RESISTANCE, duration * 20, 1, false, false));
^
symbol: variable DAMAGE_RESISTANCE
location: class PotionEffectType
ERROR in src/main/java/com/yufly/ability/DarkHealAbility.java at line 36: cannot find symbol
BossBar bar = Bukkit.createBossBar(
^
symbol: class BossBar
location: class DarkHealAbility
ERROR in src/main/java/com/yufly/ability/DarkHealAbility.java at line 66: cannot find symbol
BossBar bar = Bukkit.createBossBar(
^
symbol: class BossBar
location: class DarkHealAbility
ERROR in src/main/java/com/yufly/ability/DarkHealAbility.java at line 107: cannot find symbol
double maxHealth = player.getAttribute(Attribute.GENERIC_MAX_HEALTH).getValue();
^
symbol: variable GENERIC_MAX_HEALTH
location: interface Attribute
ERROR in src/main/java/com/yufly/ability/DarkHealAbility.java at line 120: cannot find symbol
world.spawnParticle(Particle.SMOKE_NORMAL, loc.clone().add(x, 0, z), 1, 0.1, 0.1, 0.1, 0.01);
^
symbol: variable SMOKE_NORMAL
location: class Particle
ERROR in src/main/java/com/yufly/ability/DarkHealAbility.java at line 130: cannot find symbol
world.spawnParticle(Particle.VILLAGER_HAPPY, loc.clone().add(x, 0, z), 2, 0.2, 0.2, 0.2, 0);
^
symbol: variable VILLAGER_HAPPY
location: class Particle
ERROR in src/main/java/com/yufly/ability/DarkHealAbility.java at line 131: cannot find symbol
world.spawnParticle(Particle.SPELL_WITCH, loc.clone().add(x, 0, z), 1, 0.1, 0.1, 0.1, 0.01);
^
symbol: variable SPELL_WITCH
location: class Particle
ERROR in src/main/java/com/yufly/manager/FirstAwakeningManager.java at line 88: cannot find symbol
world.spawnParticle(Particle.EXPLOSION_LARGE, loc.clone().add(0, tick * 0.1, 0), 1, 0.5, 0.5, 0.5, 0);
^
symbol: variable EXPLOSION_LARGE
location: class Particle
ERROR in src/main/java/com/yufly/ability/LunarEclipseAbility.java at line 39: cannot find symbol
BossBar bar = Bukkit.createBossBar(
^
symbol: class BossBar
location: class LunarEclipseAbility
ERROR in src/main/java/com/yufly/ability/LightBladeAbility.java at line 30: cannot find symbol
BossBar bar = Bukkit.createBossBar(
^
symbol: class BossBar
location: class LightBladeAbility
ERROR in src/main/java/com/yufly/ability/TeleportationAbility.java at line 34: cannot find symbol
BossBar bar = Bukkit.createBossBar(
^
symbol: class BossBar
location: class TeleportationAbility
ERROR in src/main/java/com/yufly/ability/JudgmentAbility.java at line 30: cannot find symbol
BossBar bar = Bukkit.createBossBar(
^
symbol: class BossBar
location: class JudgmentAbility
ERROR in src/main/java/com/yufly/ability/JudgmentAbility.java at line 65: cannot find symbol
BossBar bar = Bukkit.createBossBar(
^
symbol: class BossBar
location: class JudgmentAbility
ERROR in src/main/java/com/yufly/ability/JudgmentAbility.java at line 120: cannot find symbol
world.spawnParticle(Particle.REDSTONE, loc.clone().add(x, 0, z), 3,
^
symbol: variable REDSTONE
location: class Particle
ERROR in src/main/java/com/yufly/ability/JudgmentAbility.java at line 132: cannot find symbol
world.spawnParticle(Particle.REDSTONE, loc.clone().add(x, 0, z), 2,
^
symbol: variable REDSTONE
location: class Particle
ERROR in src/main/java/com/yufly/ability/DarkHealAbility.java at line 29: cannot find symbol
player.addPotionEffect(new PotionEffect(PotionEffectType.DAMAGE_RESISTANCE, duration * 20, 1, false, false));
^
symbol: variable DAMAGE_RESISTANCE
location: class PotionEffectType
ERROR in src/main/java/com/yufly/ability/DarkHealAbility.java at line 36: cannot find symbol
BossBar bar = Bukkit.createBossBar(
^
symbol: class BossBar
location: class DarkHealAbility
ERROR in src/main/java/com/yufly/ability/DarkHealAbility.java at line 66: cannot find symbol
BossBar bar = Bukkit.createBossBar(
^
symbol: class BossBar
location: class DarkHealAbility
ERROR in src/main/java/com/yufly/ability/DarkHealAbility.java at line 107: cannot find symbol
double maxHealth = player.getAttribute(Attribute.GENERIC_MAX_HEALTH).getValue();
^
symbol: variable GENERIC_MAX_HEALTH
location: interface Attribute
ERROR in src/main/java/com/yufly/ability/DarkHealAbility.java at line 120: cannot find symbol
world.spawnParticle(Particle.SMOKE_NORMAL, loc.clone().add(x, 0, z), 1, 0.1, 0.1, 0.1, 0.01);
^
symbol: variable SMOKE_NORMAL
location: class Particle
ERROR in src/main/java/com/yufly/ability/DarkHealAbility.java at line 130: cannot find symbol
world.spawnParticle(Particle.VILLAGER_HAPPY, loc.clone().add(x, 0, z), 2, 0.2, 0.2, 0.2, 0);
^
symbol: variable VILLAGER_HAPPY
location: class Particle
ERROR in src/main/java/com/yufly/ability/DarkHealAbility.java at line 131: cannot find symbol
world.spawnParticle(Particle.SPELL_WITCH, loc.clone().add(x, 0, z), 1, 0.1, 0.1, 0.1, 0.01);
^
symbol: variable SPELL_WITCH
location: class Particle
=== COMPILATION ERROR ANALYSIS ===
MISSING CLASSES:
- BossBar
ACTION: Create these classes or check imports
FILES TO INVESTIGATE:
- src/main/java/com/yufly/manager/FirstAwakeningManager.java
- src/main/java/com/yufly/ability/LunarEclipseAbility.java
- src/main/java/com/yufly/ability/LightBladeAbility.java
- src/main/java/com/yufly/ability/TeleportationAbility.java
- src/main/java/com/yufly/ability/JudgmentAbility.java
- src/main/java/com/yufly/ability/DarkHealAbility.java
- src/main/java/com/yufly/manager/FirstAwakeningManager.java
- src/main/java/com/yufly/ability/LunarEclipseAbility.java
- src/main/java/com/yufly/ability/LightBladeAbility.java
- src/main/java/com/yufly/ability/TeleportationAbility.java
- src/main/java/com/yufly/ability/JudgmentAbility.java
- src/main/java/com/yufly/ability/DarkHealAbility.java
Please fix this error by creating a new artifact with the corrected code.
package com.shadowsummon;
import com.shadowsummon.command.ShadowSwordCommand;
import com.shadowsummon.inventory.gui.GUIListener;
import com.shadowsummon.inventory.gui.GUIManager;
import com.shadowsummon.listener.PlayerCombatListener;
import com.shadowsummon.listener.PlayerQuitListener;
import com.shadowsummon.listener.SwordInteractListener;
import com.shadowsummon.shadow.ShadowManager;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;
@Getter
public class ShadowSummonPlugin extends JavaPlugin {
private GUIManager guiManager;
private ShadowManager shadowManager;
@Override
public void onEnable() {
saveDefaultConfig();
this.guiManager = new GUIManager();
this.shadowManager = new ShadowManager(this);
registerListeners();
registerCommands();
getLogger().info("ShadowSummon has been enabled!");
}
@Override
public void onDisable() {
if (shadowManager != null) {
shadowManager.shutdown();
}
getLogger().info("ShadowSummon has been disabled!");
}
private void registerListeners() {
Bukkit.getPluginManager().registerEvents(new GUIListener(guiManager), this);
Bukkit.getPluginManager().registerEvents(new SwordInteractListener(this), this);
Bukkit.getPluginManager().registerEvents(new PlayerCombatListener(this), this);
Bukkit.getPluginManager().registerEvents(new PlayerQuitListener(shadowManager), this);
}
private void registerCommands() {
getCommand("shadowsword").setExecutor(new ShadowSwordCommand(this));
}
}