🔥 ORIGINPATH — ULTIMATE MINECRAFT ORIGIN ABILITY PLUGIN
Create a complete, production-quality Minecraft Java Edition Paper plugin called OriginPath.
The plugin is an RPG-style Origin/Ability system where every first-time player must choose one of five Origins:
🦹 VILLAIN 🦸 HERO 😈 DEMON 😇 ANGEL ⚡ DEMI-GOD
There must be NO level system, NO XP system, and NO tablist system.
The entire plugin should focus on:
- Unique Origins
- Unique abilities
- Passive abilities
- Ultimate abilities
- Cooldowns
- Cinematic VFX
- Particle effects
- Sounds
- Titles
- Action-bar skill HUD
- First-join Origin selection
- Origin-specific gameplay
- Admin management
Make it feel like a polished anime/superpower Minecraft server plugin.
---
🎬 FIRST JOIN EXPERIENCE
When a player joins for the first time:
- Prevent normal gameplay temporarily.
- Freeze their movement.
- Display a cinematic title:
"YOUR DESTINY AWAITS"
Then:
"CHOOSE YOUR ORIGIN"
- Play cinematic sounds.
- Spawn particles around the player.
- Create a rotating particle circle beneath them.
- Open the Origin Selection INVENTORY GUI.
The player cannot leave the selection screen without choosing an Origin.
Once selected, play a unique Origin awakening animation.
---
🖥️ ORIGIN SELECTION INVENTORY GUI
Create a large, polished custom inventory INVENTORY GUI.
Title:
✦ CHOOSE YOUR DESTINY ✦
Display five Origins:
🦹 VILLAIN 🦸 HERO 😈 DEMON 😇 ANGEL ⚡ DEMI-GOD
Each Origin icon must show:
- Origin name
- Description
- Strengths
- Weaknesses
- Difficulty
- All abilities
- Ultimate ability
- Activation controls
When hovering over an Origin:
- Play a subtle sound.
- Display Origin-specific information.
- Create a small Origin-themed particle effect.
When clicking an Origin:
Open a confirmation menu:
"ARE YOU SURE?"
"Your Origin will be permanently chosen."
[✔ ACCEPT] [✖ CANCEL]
After accepting, save the Origin permanently.
---
⚔️ ABILITY SYSTEM
Every Origin has:
- Passive Ability
- Skill 1
- Skill 2
- Skill 3
- Skill 4
- Ultimate
Default controls:
Sneak + Left Click → Skill 1
Sneak + Right Click → Skill 2
Swap Hands / F → Skill 3
Q / Drop → Skill 4
Sneak + F → Ultimate
Make all controls configurable.
If Q is used for an ability, prevent the player from accidentally dropping their item.
Abilities must activate instantly and feel responsive.
---
🖥️ ABILITY HUD
Show the player's abilities using the Action Bar.
Example:
🩸 CLAW 🔥 DASH 👹 ROAR 💀 HELLFIRE 🌌 ULTIMATE
When ready:
READY
When cooling down:
🔥 DASH — 6.4s
Update the cooldown display smoothly.
Do NOT create a tablist.
Do NOT display levels.
Do NOT display XP.
---
🦹 VILLAIN
Passive — DARK SOUL
Give the player a small offensive advantage.
Occasionally create dark particles around them.
Skill 1 — SHADOW STRIKE
Perform a powerful shadow attack.
VFX:
- Dark purple slash
- Black smoke
- Expanding impact ring
- Small particle explosion
Skill 2 — SHADOW STEP
Quickly teleport/dash toward the direction the player is looking.
VFX:
- Player disappears into smoke.
- Dark trail follows movement.
- Reappearance creates an expanding ring.
Skill 3 — INTIMIDATION
Create a dark aura around the player.
Nearby enemies receive temporary debuffs.
VFX:
- Rotating dark circle
- Red/purple particles
- Smoke aura
Skill 4 — BLOODLUST
Temporarily enhance offensive abilities after defeating an enemy.
VFX:
- Red particles rise around the player.
- Dark aura becomes stronger.
Ultimate — DESTRUCTION
Create a cinematic dark-energy attack.
Sequence:
- Player briefly charges energy.
- Dark particles spiral toward them.
- A large dark sphere forms.
- Screen title:
☠ DESTRUCTION ☠
- Energy rapidly expands.
- Nearby enemies take damage and knockback.
- Massive dark particle explosion.
NO LIGHTNING.
---
🦸 HERO
Passive — HEROIC SPIRIT
Provide a small defensive/support benefit.
Use occasional golden particles.
Skill 1 — HOLY STRIKE
Powerful light-infused attack.
VFX:
- Golden slash
- White burst
- Impact ring
Skill 2 — GUARDIAN SHIELD
Temporarily reduce incoming damage.
VFX:
- Golden shield effect
- Rotating particle rings
- Small floating particles
Skill 3 — HEALING LIGHT
Heal yourself or an ally.
VFX:
- Golden particles rising upward
- White particles falling around the target
- Healing circle beneath target
Skill 4 — LIGHT DASH
Quick forward dash.
VFX:
- White/gold trail
- Speed particles
- Impact ring
Ultimate — HERO'S RESOLVE
Create a large divine area.
Allies inside receive configurable buffs.
VFX:
- Giant golden circle
- Rotating rings
- Rising particles
- Large golden burst
---
😈 DEMON
Passive — DEMONIC SKIN
Provide a small defensive advantage.
Create subtle red smoke particles.
Skill 1 — DEMONIC CLAW
Powerful melee attack.
VFX:
- Red slash
- Flame particles
- Dark smoke
- Impact burst
Skill 2 — INFERNO DASH
Dash rapidly forward.
Create a temporary visual flame trail.
Do NOT permanently destroy or grief the environment.
Skill 3 — DEMONIC ROAR
Release a powerful shockwave.
Nearby enemies are knocked back.
VFX:
- Expanding red ring
- Smoke explosion
- Ground shockwave particles
Skill 4 — HELLFIRE
Launch a red energy projectile.
On impact:
- Controlled explosion
- Flame particles
- Smoke
- Red energy burst
Ultimate — INFERNAL APOCALYPSE
Make this one of the most cinematic abilities.
Sequence:
- Player becomes surrounded by red particles.
- Particles orbit faster.
- Ground circle forms.
- Energy rises around the player.
- Title appears:
🔥 INFERNAL APOCALYPSE 🔥
- Large area attack occurs.
- Enemies receive damage and knockback.
- Massive red/orange particle explosion.
NO LIGHTNING.
---
😇 ANGEL
Passive — DIVINE GRACE
Provide a small healing/support benefit.
Skill 1 — DIVINE LIGHT
Heal a player.
VFX:
- White particles
- Gold particles
- Vertical particle column
- Healing circle
Skill 2 — HOLY BARRIER
Create temporary protection.
VFX:
- Particle sphere
- Golden rings
- White aura
Skill 3 — ANGEL WINGS
Temporarily allow controlled flight.
VFX:
- Large particle wings
- White/gold particles
- Floating feathers represented with particles
Skill 4 — RADIANT BURST
Release a divine shockwave that pushes enemies away.
VFX:
- Expanding white ring
- Golden burst
- Radiant particles
Ultimate — DIVINE ASCENSION
Create a transformation-style cinematic.
Sequence:
- Player rises slightly.
- Giant particle wings appear.
- Golden rings rotate around them.
- White particles fall from above.
- Title:
✨ DIVINE ASCENSION ✨
- Allies receive buffs.
- Enemies nearby are pushed away.
- Final bright particle explosion.
---
⚡ DEMI-GOD
Demi-God should be extremely powerful but balanced through long cooldowns.
Passive — GODLY PRESENCE
Give a small configurable stat advantage.
Nearby players see subtle cosmic particles.
Skill 1 — GODLY STRIKE
Extremely powerful attack.
VFX:
- Cosmic slash
- Purple/blue energy
- Expanding impact ring
Skill 2 — DIVINE DASH
Very fast dash.
VFX:
- Cosmic trail
- Afterimage-style particles
- Large impact circle
Skill 3 — CELESTIAL BLAST
Launch a powerful cosmic projectile.
VFX:
- Rotating energy particles
- Cosmic trail
- Large impact explosion
Skill 4 — TITAN'S GUARD
Temporarily provide powerful defense.
VFX:
- Large energy sphere
- Rotating rings
- Cosmic aura
Ultimate — GOD MODE
Extremely powerful ultimate with a very long cooldown.
Sequence:
- Player charges cosmic energy.
- Particles begin orbiting them.
- Multiple rings appear.
- Cosmic energy rises upward.
- Title appears:
⚡ GOD MODE ⚡
- Player receives configurable temporary buffs.
- Nearby enemies are affected.
- Abilities become temporarily enhanced if configured.
- Finish with a massive cosmic particle explosion.
NO LIGHTNING.
---
🌌 CINEMATIC VFX SYSTEM
Create a dedicated VFXManager.
It must support:
- Circles
- Rings
- Spirals
- Helixes
- Energy spheres
- Trails
- Shockwaves
- Ground circles
- Orbiting particles
- Auras
- Beams
- Particle explosions
- Slash effects
- Dash trails
- Teleport effects
- Charging effects
- Ultimate animations
- Awakening animations
Create reusable methods:
createCircle() createRing() createSpiral() createAura() createShockwave() createExplosion() createTrail() createBeam() createSphere() createChargeEffect() createUltimateEffect()
Make effects smooth and cinematic.
---
🖥️ SCREEN-STYLE EFFECTS
Minecraft plugins cannot directly draw custom 2D graphics over the entire screen, so simulate cinematic screen effects using Minecraft's supported systems.
Use:
- Titles
- Subtitles
- Action bar
- Boss bars
- Sounds
- Darkness effects where appropriate
- Camera-relative particle effects
- Large particle bursts
- Rapid particle animations
During ultimates:
Display:
🔥 INFERNAL APOCALYPSE 🔥
or:
✨ DIVINE ASCENSION ✨
or:
⚡ GOD MODE ⚡
Use configurable fade-in, display, and fade-out durations.
---
💥 HIT VFX
Every ability must have a unique impact effect.
Light attack:
- Small particle burst
Heavy attack:
- Shockwave
Magic attack:
- Energy explosion
Dash:
- Trail + impact ring
Ultimate:
- Large cinematic sequence
---
🔊 SOUND SYSTEM
Every ability should have:
- Activation sound
- Charge sound where appropriate
- Hit sound
- Ultimate sound
- INVENTORY GUI sound
- Origin selection sound
- Origin awakening sound
All sounds configurable.
---
⏳ COOLDOWN SYSTEM
Create a centralized cooldown manager.
Each skill has:
- Cooldown
- Duration
- Damage
- Range
- Target type
- VFX
- Sound
Prevent ability spam.
Display cooldowns in the Action Bar.
Example:
🔥 INFERNO DASH — 4.2s
When ready:
🔥 INFERNO DASH — READY
---
💾 DATA STORAGE
Use SQLite or YAML.
Store:
- Player UUID
- Username
- Origin
- First-join status
- Ability statistics if needed
Do NOT store:
- Levels
- XP
- Evolution
- Any progression system
---
🛠️ COMMANDS
Player:
/origin
Shows their current Origin.
/origin info
Shows their Origin.
/origin abilities
Shows their abilities.
/origin choose
Opens the Origin INVENTORY GUI if permitted.
Admin:
/origin set <player> <origin> /origin reset <player> /origin reload
Permissions:
originpath.use originpath.admin originpath.set originpath.reset originpath.reload
---
⚙️ CONFIGURATION
Everything important must be configurable:
- Ability damage
- Cooldowns
- Ability ranges
- Buff duration
- Debuff duration
- Ultimate duration
- VFX density
- VFX visibility distance
- Sounds
- INVENTORY GUI
- Messages
- Origin colors
- Skill controls
- PvP settings
- PvE settings
---
🚀 PERFORMANCE
Optimize for multiplayer servers.
Do NOT:
- Spawn thousands of particles every tick.
- Create unnecessary entities.
- Create unnecessary repeating tasks.
- Run unnecessary database operations.
- Leak tasks when players disconnect.
Stop all active effects when:
- Player disconnects
- Player dies
- Player changes world
- Ability ends
- Server shuts down
Allow server owners to reduce particle density through config.
---
📦 COMPLETE PROJECT REQUIREMENTS
Generate the COMPLETE working Maven project.
Include:
- pom.xml
- plugin.yml
- config.yml
- messages.yml
- All Java classes
- Origin system
- Ability system
- INVENTORY GUI
- First-join system
- Skill activation
- Cooldown system
- VFXManager
- SoundManager
- HUD
- Data storage
- Commands
- Listeners
- Admin system
The plugin must compile successfully.
Do NOT give pseudocode.
Do NOT give incomplete classes.
Do NOT use TODO placeholders.
Do NOT include a level system.
Do NOT include an XP system.
Do NOT include a tablist system.
Do NOT include progression levels.
Do NOT use lightning effects.
Focus entirely on making the five Origins and their abilities extremely fun, cinematic, visually impressive, and different from one another.
The final plugin should feel like a premium Minecraft superpower/combat plugin.🌌 ADVANCED ORIGIN TABLIST
Create a highly polished custom Minecraft tablist that displays every player's Origin, but NEVER display levels or XP.
The tablist should look like a premium RPG/superpower server.
🎨 ORIGIN COLORS
Every Origin has its own visual identity:
🦹 VILLAIN — CRIMSON / BLACK
Use a dark crimson-red theme mixed with black/dark gray.
Example:
[VILLAIN] Project1
Color style:
- Deep crimson
- Dark red
- Black/dark gray
- Optional subtle gradient-style formatting where supported
Make Villain feel dangerous and sinister.
---
🦸 HERO — GOLD / WHITE
Use a heroic golden-white theme.
Example:
[HERO] Player123
Color style:
- Bright gold
- White
- Soft yellow
Make Hero feel powerful and noble.
---
😈 DEMON — CRIMSON BLACK
Use a much darker crimson-black theme.
Example:
[DEMON] Project1
Color style:
- Deep crimson
- Dark red
- Black
- Dark purple accents
The Demon tab name should look intimidating.
If the Minecraft version/server supports gradients, use a smooth:
CRIMSON → DARK RED → BLACK
visual effect.
---
😇 ANGEL — CYAN / ANGELIC
Use a beautiful celestial cyan theme.
Example:
[ANGEL] Player123
Color style:
- Bright cyan
- Pale cyan
- White
- Very light blue
Make Angel feel divine and elegant.
Use a:
CYAN → LIGHT CYAN → WHITE
visual style where supported.
---
⚡ DEMI-GOD — BRIGHT CELESTIAL YELLOW
Demi-God should have the most visually impressive tab color.
Use:
- Extremely bright yellow
- Golden yellow
- Pale gold
- White highlights
Example:
[DEMI-GOD] Project1
Make it look almost like glowing divine energy.
Use:
BRIGHT YELLOW → GOLD → WHITE
where gradients are supported.
The Demi-God tab should immediately stand out as the rarest/powerful Origin.
---
🏷️ TAB FORMAT
Use a clean format such as:
😈 [DEMON] Project1
😇 [ANGEL] Player123
⚡ [DEMI-GOD] CosmicPlayer
Do NOT show:
- Level
- XP
- Rank unless separately configured
- Ability cooldowns
Only show the player's:
Origin + Username
---
✨ TABLIST VISUAL POLISH
Make the tablist feel premium.
Add a configurable header:
━━━━━━━━━━━━━━━━━━━━━━━━━━
✦ ORIGINPATH ✦
Choose Your Destiny • Master Your Power
━━━━━━━━━━━━━━━━━━━━━━━━━━
And footer:
⚔ Your Origin Defines Your Power ⚔
Use Origin-themed formatting where possible.
---
👥 PLAYER ORGANIZATION
Sort players by Origin in the tablist.
Recommended order:
⚡ DEMI-GOD 😇 ANGEL 🦸 HERO 😈 DEMON 🦹 VILLAIN
Within each Origin, sort alphabetically by username.
Make sorting configurable.
---
🎨 TEAM-BASED TAB COLORS
Use Minecraft scoreboard teams to apply the correct player-name color.
Create separate teams:
origin_demigod origin_angel origin_hero origin_demon origin_villain
Each team receives the appropriate Origin color.
Example:
DEMI-GOD:
Bright yellow/gold
ANGEL:
Cyan/light cyan
HERO:
Gold/white
DEMON:
Crimson/dark red
VILLAIN:
Dark crimson/purple
---
🔄 REAL-TIME UPDATES
The tablist must automatically update when:
- A player joins
- A player leaves
- An administrator changes someone's Origin
- A player selects their Origin
- A player is reset
Do not require players to reconnect.
---
🌟 ORIGIN SYMBOLS
Use unique symbols:
VILLAIN: ☠
HERO: ✦
DEMON: 😈
ANGEL: ✧
DEMI-GOD: ⚡
If a symbol isn't supported by the server's font, automatically use a configurable fallback.
---
💎 EXTRA TABLIST POLISH
Add configurable options for:
- Header
- Footer
- Origin prefix
- Origin colors
- Player sorting
- Symbols
- Spacing
- Team colors
- Gradient-style formatting where supported
Make the final tablist clean and readable.
Do NOT overcrowd it with information.
The goal is:
Minimal + Stylish + Powerful + Easy to Read
The tablist should instantly tell players:
"What Origin is this player?"
while making the server feel like a premium superpower RPG server.⚔️ SKILL CONTROLS & ACTIVATION SYSTEM
Create a smooth and easy-to-learn skill activation system.
Players should NEVER need to type commands to use normal abilities.
🎮 DEFAULT CONTROLS
🩸 SKILL 1
Sneak + Left Click
Activate Ability 1.
Example:
Demon → Demonic Claw
When activated:
- Play activation sound.
- Play unique VFX.
- Perform the ability.
- Show the skill name briefly in the Action Bar.
- Start the cooldown.
---
🔥 SKILL 2
Sneak + Right Click
Activate Ability 2.
Example:
Demon → Inferno Dash
When activated:
- Create a movement/trail effect.
- Play sound.
- Perform the ability.
- Start cooldown.
---
👹 SKILL 3
Swap Hands / F
Press the F key to activate Ability 3.
Example:
Demon → Demonic Roar
The plugin must detect the Minecraft Swap Hands action rather than relying on a literal keyboard key, so it works correctly even if the player has changed their keybind.
---
💀 SKILL 4
Drop / Q
Press the Minecraft Drop Item action to activate Ability 4.
Example:
Demon → Hellfire
IMPORTANT:
If the player is holding an item, prevent the item from being dropped when the ability activates.
Make this behavior configurable.
---
🌌 ULTIMATE
Sneak + Swap Hands
Press:
SHIFT + F
to activate the Origin's Ultimate.
Example:
😈 DEMON
SHIFT + F
→ 🔥 INFERNAL APOCALYPSE
Before the Ultimate activates:
- Briefly charge the ability.
- Play a charging sound.
- Spawn Origin-specific particles.
- Display a title:
🔥 INFERNAL APOCALYPSE 🔥
- Activate the Ultimate.
- Play the final VFX.
- Start the Ultimate cooldown.
---
🖥️ SKILL HUD
Always show the player's available skills in the Action Bar.
Example:
[🩸 CLAW] [🔥 DASH] [👹 ROAR] [💀 HELLFIRE] [🌌 ULT]
When a skill is ready:
🔥 DASH — READY
When cooling down:
🔥 DASH — 7.4s
When activated:
🔥 INFERNO DASH!
Make the HUD update smoothly.
Do not spam chat messages.
---
⏳ COOLDOWN FEEDBACK
When the player tries to use an ability that is still cooling down:
Do NOT activate the ability.
Instead show:
🔥 INFERNO DASH — 4.2s
Play a subtle cooldown sound.
Do not spam the player with messages.
---
🚫 INVALID ACTIVATION
If the player cannot use an ability because:
- They are dead
- They are in a disabled world
- They are in a protected region
- They are already performing another ability
- The ability is on cooldown
- They don't have an Origin
Then safely prevent the ability.
Do not cause glitches or consume items.
---
🎯 TARGETING
Abilities should automatically determine their target based on their configuration.
Supported targeting modes:
SELF → Affect the player.
TARGET → Affect the player/entity being looked at.
AREA → Affect nearby entities.
ALLY → Affect nearby allies.
GROUND → Activate at the block/location the player is looking at.
Make range configurable.
---
⚙️ CONFIGURABLE KEYBINDS
Allow server owners to change the activation methods in "config.yml".
Example:
abilities: skill-1: activation: SNEAK_LEFT_CLICK
skill-2: activation: SNEAK_RIGHT_CLICK
skill-3: activation: SWAP_HANDS
skill-4: activation: DROP_ITEM
ultimate: activation: SNEAK_SWAP_HANDS
Supported activation types:
- LEFT_CLICK
- RIGHT_CLICK
- SNEAK_LEFT_CLICK
- SNEAK_RIGHT_CLICK
- SWAP_HANDS
- DROP_ITEM
- SNEAK_SWAP_HANDS
---
🛡️ ANTI-ACCIDENT SYSTEM
Make sure abilities do not accidentally interfere with normal Minecraft gameplay.
Examples:
- Skill 3 uses Swap Hands, but should not unexpectedly swap the player's item.
- Skill 4 uses Drop Item, but should not drop the player's item when the skill activates.
- Sneak + Left Click should not interfere with normal block interaction unnecessarily.
- Sneak + Right Click should not accidentally place/use an item when the ability triggers.
Make this behavior configurable.
---
✨ ABILITY ACTIVATION VFX
Every skill activation should have immediate visual feedback.
At minimum:
- Activation particles
- Origin-specific color
- Sound
- Ability name in Action Bar
- Cooldown indicator
For powerful abilities:
- Charging animation
- Spiral particles
- Expanding rings
- Player aura
- Impact VFX
- Sound sequence
- Screen-style title
- Final explosion/burst
Make every Origin's VFX visually different.
NO LIGHTNING EFFECTS.
---
🎬 ULTIMATE ACTIVATION
Ultimate abilities should feel significantly more powerful than normal skills.
Use a short cinematic sequence:
CHARGE → VFX → TITLE → ATTACK → IMPACT → COOLDOWN
Do not make the cinematic so long that combat becomes annoying.
Keep normal skills fast and responsive.
Keep Ultimates dramatic and cinematic.
---
📖 HELP COMMAND
Add:
"/origin abilities"
This opens a INVENTORY GUI showing:
Skill 1 Sneak + Left Click
Skill 2 Sneak + Right Click
Skill 3 F / Swap Hands
Skill 4 Q / Drop Item
Ultimate Shift + F
Also display each skill's:
- Name
- Description
- Cooldown
- Range
- Current status
Make this INVENTORY GUI available at any time.
Build the Maven Paper project and configuration for OriginPath.
Add origin data, persistence, cooldowns, VFX, sounds, HUD, and tablist systems.
Add GUI flows for origin selection, confirmation, and ability help.
Add ability activation, gameplay listeners, first-join handling, and commands.
Created the complete OriginPath Maven Paper plugin with five Origins, persistent YAML storage, configurable cooldowns, abilities, VFX, sounds, HUD, tablist, commands, permissions, and messages.
Added cinematic first-join Origin selection with confirmation GUI, awakening effects, origin-specific colors, symbols, titles, sounds, and particles.
Added configurable activation controls for sneak clicks, swap hands, drop item, and sneak swap hands, including anti-accidental-drop behavior.
Added origin-specific combat abilities, ultimates, cooldown feedback, action-bar HUD, passive effects, targeting, damage, knockback, and particle effects.
Added GUI framework, selection menu, confirmation menu, ability help menu, admin commands, disabled-world support, cleanup handling, and real-time tablist updates.
The compilation failed with this error:
Compilation failed with 2 error(s):
ERROR in src/main/java/com/originpath/TablistManager.java at line 9: cannot find symbol
import org.bukkit.Scoreboard;
^
symbol: class Scoreboard
location: package org.bukkit
ERROR in src/main/java/com/originpath/TablistManager.java at line 15: cannot find symbol
private final Scoreboard scoreboard;
^
symbol: class Scoreboard
location: class TablistManager
=== COMPILATION ERROR ANALYSIS ===
MISSING CLASSES:
- Scoreboard
ACTION: Create these classes or check imports
FILES TO INVESTIGATE:
- src/main/java/com/originpath/TablistManager.java
Please fix this error by creating a new artifact with the corrected code.
Correct the
Scoreboardimport inTablistManagerto use Bukkit’sorg.bukkit.scoreboardpackage.
Fixed TablistManager.java by correcting the import:
import org.bukkit.scoreboard.Scoreboard;
The Scoreboard field now references the correct Bukkit package.
package com.originpath;
import java.util.Map;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.entity.Player;
import org.bukkit.plugin.java.JavaPlugin;
import org.bukkit.configuration.file.YamlConfiguration;
public class OriginPathPlugin extends JavaPlugin {
private DataStore dataStore;
private CooldownManager cooldowns;
private VFXManager vfxManager;
private SoundManager soundManager;
private AbilityManager abilityManager;
private HudManager hudManager;
private TablistManager tablistManager;
private GUIManager guiManager;
private YamlConfiguration messages;
@Override public void onEnable() { saveDefaultConfig(); saveResource("messages.yml", false); messages = YamlConfiguration.loadConfiguration(new java.io.File(getDataFolder(), "messages.yml")); dataStore = new DataStore(this); cooldowns = new CooldownManager(); vfxManager = new VFXManager(this); soundManager = new SoundManager(this); guiManager = new GUIManager(); abilityManager = new AbilityManager(this); hudManager = new HudManager(this); tablistManager = new TablistManager(this); Bukkit.getPluginManager().registerEvents(new OriginPathListener(this), this); OriginCommand command = new OriginCommand(this); getCommand("origin").setExecutor(command); getCommand("origin").setTabCompleter(command); hudManager.start(); Bukkit.getScheduler().runTaskTimer(this, () -> Bukkit.getOnlinePlayers().forEach(abilityManager::applyPassive), 40, 40); }
@Override public void onDisable() { hudManager.stop(); vfxManager.stopAll(); abilityManager.shutdown(); dataStore.save(); }
public void openOriginSelection(Player player) { if (dataStore.hasOrigin(player.getUniqueId())) return; player.setWalkSpeed(0); guiManager.open(new OriginSelectionGUI(this, guiManager), player); }
public void chooseOrigin(Player player, Origin origin) { dataStore.setOrigin(player.getUniqueId(), player.getName(), origin); player.setWalkSpeed(.2f); soundManager.play(player, "awaken"); vfxManager.awakening(player, origin); player.sendTitle(origin.getColor() + origin.getSymbol() + " " + origin.getDisplayName(), ChatColor.WHITE + "Your power awakens", 10, 50, 15); tablistManager.refreshSorting(); }
public void reloadMessages() { messages = YamlConfiguration.loadConfiguration(new java.io.File(getDataFolder(), "messages.yml")); }
public String message(String key, String... replacements) { String text = messages.getString(key, key); for (int i = 0; i + 1 < replacements.length; i += 2) text = text.replace("{" + replacements[i] + "}", replacements[i + 1]); return ChatColor.translateAlternateColorCodes('&', messages.getString("prefix", "") + text); }
public DataStore getDataStore() { return dataStore; }
public CooldownManager getCooldowns() { return cooldowns; }
public VFXManager getVfxManager() { return vfxManager; }
public SoundManager getSoundManager() { return soundManager; }
public AbilityManager getAbilityManager() { return abilityManager; }
public HudManager getHudManager() { return hudManager; }
public TablistManager getTablistManager() { return tablistManager; }
public GUIManager getGuiManager() { return guiManager; }
}