📄
pasted-code-1789430053331.txt
txt
992 lines
▶
IMPORTANT: THIS IS THE FINAL PROFESSIONAL SPECIFICATION.
Build the entire plugin from scratch and compile a REAL working JAR.
PLUGIN:
MythrionEffect
FINAL FILE:
mythrioneffect.jar
==================================================
CORE REQUIREMENTS
==================================================
Minecraft:
- Paper 26.2
- Java 25
- Folia compatible
- Modern Bukkit/Paper API
- No fake Bukkit/Paper classes
- No NMS unless absolutely necessary
- No Paper API bundled inside the JAR
ONLY COMMAND:
/effects
NO OTHER COMMANDS.
NO ALIASES.
==================================================
1. PROFESSIONAL GUI SYSTEM
==================================================
Create a polished cosmetics GUI.
Main title:
"✦ MYTHRION EFFECTS ✦"
Use modern Adventure Components.
GUI should look like a premium Minecraft network plugin.
Main menu:
╔════════════════════════════════════╗
║ ✦ MYTHRION EFFECTS ✦ ║
║ ║
║ WALKING TRAILS ║
║ ELYTRA TRAILS ║
║ KILL EFFECTS ║
║ ║
║ MY ACTIVE EFFECTS ║
║ PREVIEW EFFECTS ║
║ ║
║ DISABLE ALL ║
╚════════════════════════════════════╝
Use decorative glass panes carefully.
Do not make the GUI cluttered.
==================================================
2. EFFECT CATEGORIES
==================================================
Categories:
WALKING
ELYTRA
KILL
Future-proof the internal architecture so more categories can be added easily.
==================================================
3. EFFECT LIBRARY
==================================================
Create at least these effects:
FLAME
ENDER
VOID
WIND
SOUL
HEARTS
ENCHANT
SNOW
ELECTRIC
RED
ORANGE
YELLOW
GREEN
AQUA
BLUE
PURPLE
PINK
RAINBOW
Also add professional effects:
STAR
MAGIC
PORTAL
CLOUD
SMOKE
SPARK
LAVA
WATER
TOTEM
CRIT
DRAGON
GALAXY
AURA
FIREWORK
MUSIC
BLOSSOM
CRYSTAL
SHADOW
SUN
MOON
Do not blindly use unavailable particles.
Every effect must have a safe fallback.
==================================================
4. UNIQUE VISUAL PATTERNS
==================================================
Do NOT make every effect just a different particle.
Create actual particle patterns.
Reusable pattern engine:
- circle
- spiral
- double spiral
- heart
- flower
- star
- vortex
- burst
- fountain
- ring
- orbit
- wave
- helix
- cross
- crown
- dragon-like silhouette
- butterfly
- galaxy/orbit
- aura
Each effect should have its own visual identity.
Example:
FLAME:
small flame trail + occasional flower burst
ENDER:
purple portal particles + rotating spiral
VOID:
dark/portal vortex
WIND:
cloud particles moving in a spiral
HEARTS:
heart-shaped pattern
SNOW:
snowflake circle
ELECTRIC:
electric spark branching pattern
RAINBOW:
smooth multi-color orbit
DRAGON:
dragon-like particle silhouette
GALAXY:
rotating colored orbital rings
BLOSSOM:
flower-shaped particles
==================================================
5. WALKING TRAILS
==================================================
Walking effects should:
- appear behind the player's feet
- follow movement
- stop when player stops
- not spam particles
- respect configurable cooldown
- work while sprinting
- work while sneaking
- work on stairs/slopes
- work in different worlds
Optional behavior:
Normal walking:
small trail
Sprinting:
slightly stronger trail
Sneaking:
smaller/subtle trail
Do NOT multiply particle counts excessively.
==================================================
6. ELYTRA TRAILS
==================================================
While gliding:
- particles follow behind the player
- effect should follow flight direction
- use smooth spacing
- no giant particle spam
Optional:
Create a small "wing trail" effect on both sides of the player.
==================================================
7. KILL EFFECTS
==================================================
When a player kills another player:
Create a short 1–2 second cosmetic animation at the victim's location.
Every kill effect must look different.
Examples:
FLAME:
flame flower explosion
ENDER:
ender vortex + dragon-style silhouette
VOID:
dark rotating vortex
HEART:
large heart burst
SNOW:
snowflake explosion
ELECTRIC:
electric spark burst
RAINBOW:
rainbow ring expanding outward
DRAGON:
small dragon-like particle animation
GALAXY:
rotating galaxy
BLOSSOM:
flower opening animation
TOTEM:
totem-style vertical burst
CRYSTAL:
crystal-shaped upward burst
IMPORTANT:
Kill effects must NEVER:
- damage players
- damage blocks
- ignite blocks
- create destructive explosions
- cause real lightning damage
- cause lag
==================================================
8. EFFECT PREVIEW
==================================================
Add a PREVIEW button.
Players can preview an effect before selecting it.
Preview should:
- show the effect around the player
- last approximately 2 seconds
- automatically stop
- not save the effect
- not interfere with their currently selected effect
This makes the GUI feel much more professional.
==================================================
9. ACTIVE EFFECTS
==================================================
Add:
"MY ACTIVE EFFECTS"
This opens a summary GUI.
Display:
Walking:
[effect name]
Elytra:
[effect name]
Kill:
[effect name]
Use icons and colored status indicators.
Example:
✔ Flame Trail
✖ None
✔ Rainbow Kill
==================================================
10. LOCKED EFFECTS
==================================================
Effects can require permissions.
Locked effects should show:
🔒 LOCKED
and:
"Requires permission"
Do NOT hide locked effects.
Showing them makes the plugin feel like a real cosmetics system.
If clicked:
"✖ You don't have permission to use this effect."
No raw color codes.
==================================================
11. PERMISSIONS
==================================================
Base:
mythrioneffect.use
Categories:
mythrioneffect.walking
mythrioneffect.elytra
mythrioneffect.kill
Individual:
mythrioneffect.effect.flame
mythrioneffect.effect.ender
mythrioneffect.effect.void
mythrioneffect.effect.wind
mythrioneffect.effect.soul
mythrioneffect.effect.hearts
mythrioneffect.effect.enchant
mythrioneffect.effect.snow
mythrioneffect.effect.electric
mythrioneffect.effect.red
mythrioneffect.effect.orange
mythrioneffect.effect.yellow
mythrioneffect.effect.green
mythrioneffect.effect.aqua
mythrioneffect.effect.blue
mythrioneffect.effect.purple
mythrioneffect.effect.pink
mythrioneffect.effect.rainbow
And all additional effects.
Wildcard:
mythrioneffect.*
OP should automatically have access.
Must work with LuckPerms.
==================================================
12. PARTICLE QUALITY
==================================================
Create a centralized particle engine.
Do not duplicate particle code across every effect.
Example architecture:
ParticleEngine
EffectDefinition
EffectPattern
EffectManager
PlayerDataManager
GUIManager
This makes the plugin maintainable.
==================================================
13. PERFORMANCE
==================================================
This is one of the MOST IMPORTANT requirements.
Target:
100–200+ concurrent players.
Particle effects must be lightweight.
DO NOT:
- scan all players every tick
- create unnecessary repeating tasks
- write YAML every tick
- spawn hundreds/thousands of particles per player
- use synchronous database calls
- create excessive temporary objects
- use reflection every particle spawn
Use event-driven movement detection where possible.
Use cooldowns.
Example defaults:
walking:
75–100ms
elytra:
50–75ms
kill animation:
1000–2000ms
Make values configurable.
==================================================
14. DISTANCE / VISIBILITY OPTIMIZATION
==================================================
Only send particles within a reasonable view distance.
Do not create particles for players hundreds of blocks away.
If possible, use player-specific particle spawning rather than spawning globally.
Add config:
particle-settings:
max-view-distance: 32
This reduces unnecessary network traffic.
==================================================
15. WORLD BLACKLIST
==================================================
Add:
world-settings:
enabled: true
disabled-worlds:
- example_world
Players in disabled worlds receive no effects.
==================================================
16. EFFECT TOGGLE
==================================================
Players should be able to disable:
Walking
Elytra
Kill
individually.
Also:
Disable All
==================================================
17. PLAYER DATA
==================================================
Save by UUID.
Example:
players:
UUID:
walking: FLAME
elytra: RAINBOW
kill: DRAGON
Data survives:
- restart
- reconnect
- plugin reload if supported
Do not use player names as identifiers.
==================================================
18. SOUNDS
==================================================
Optional sound effects for kill animations.
Example:
ENDER:
soft ender sound
HEART:
soft positive sound
DRAGON:
subtle dragon sound
CRYSTAL:
amethyst/crystal sound
Make sounds configurable.
Default:
sounds:
enabled: true
volume: 0.5
pitch: 1.0
Do NOT make sounds annoying.
==================================================
19. PARTICLE TOGGLE
==================================================
Add a small settings section:
"Effect Settings"
Allow players to toggle:
✔ Particles
✔ Kill Effects
✔ Sounds
This should be saved per player.
==================================================
20. GUI SETTINGS
==================================================
Configurable:
main-title
walking-title
elytra-title
kill-title
GUI sizes.
GUI item names.
GUI lore.
Colors.
Messages.
==================================================
21. ANIMATION SYSTEM
==================================================
Make GUI animations subtle.
For example:
Selected effect:
✔ SELECTED
Locked:
🔒 LOCKED
Available:
✦ AVAILABLE
Do not make animations consume excessive resources.
==================================================
22. RAINBOW SYSTEM
==================================================
Rainbow must actually cycle through colors.
Use smooth colors:
RED
ORANGE
YELLOW
GREEN
AQUA
BLUE
PURPLE
PINK
Do not change colors every particle in an ugly/random way.
Create a smooth rainbow animation.
==================================================
23. RGB SUPPORT
==================================================
Use modern RGB colors where Paper supports them.
Allow effects to define:
#FF0000
#00FF00
#00FFFF
#8A2BE2
etc.
Create a central Color utility.
==================================================
24. BEDROCK SUPPORT
==================================================
The plugin must remain compatible with:
Geyser
Floodgate
Do not require them.
The GUI must use normal inventory APIs so Bedrock players can interact through Geyser.
Do not depend on Java-client-only GUI features.
==================================================
25. VIAVERSION
==================================================
Compatible with:
ViaVersion
ViaBackwards
Do not require either plugin.
Avoid version-specific NMS.
Use Bukkit/Paper API.
If an effect is unavailable on an older client/version, safely downgrade/fallback rather than crashing.
==================================================
26. FORGE / MODDED CLIENTS
==================================================
The plugin must not require any client-side mod.
Players connecting through compatible Forge/modded-client setups should not be required to install anything specifically for MythrionEffect.
Do not implement Forge-specific code inside the Paper plugin.
==================================================
27. FOLIA
==================================================
True Folia compatibility.
Do not use unsafe BukkitScheduler patterns.
Use appropriate entity/region schedulers.
Do not mark the plugin Folia-supported unless the implementation actually works safely on Folia.
==================================================
28. CONFIG.YML
==================================================
Create a clean config.
Example:
settings:
enabled: true
particle-settings:
walking-cooldown-ms: 80
elytra-cooldown-ms: 60
kill-duration-ms: 1500
max-view-distance: 32
walking-particle-count: 2
elytra-particle-count: 3
sounds:
enabled: true
volume: 0.5
world-settings:
disabled-worlds: []
gui:
main-title: "✦ Mythrion Effects ✦"
==================================================
29. ERROR HANDLING
==================================================
This plugin must NEVER crash because:
- particle doesn't exist
- material doesn't exist
- optional plugin isn't installed
- player disconnects
- world unloads
- invalid config value
- invalid permission
- GUI closes
- player dies
- player changes world
Log useful errors to console.
Do not spam console.
==================================================
30. RELOAD SAFETY
==================================================
Do not add a /reload command.
If configuration reload functionality is implemented internally, make it safe.
Never encourage server-wide /reload.
==================================================
31. GUI SECURITY
==================================================
Players must not be able to:
- take GUI items
- shift-click GUI items
- place items inside
- duplicate GUI items
- exploit clicks
- drag items through the GUI
Handle:
InventoryClickEvent
InventoryDragEvent
InventoryCloseEvent
safely.
==================================================
32. CLEAN CHAT
==================================================
VERY IMPORTANT.
Never display:
&6
&a
&b
&c
&d
&e
&f
etc.
as literal text.
Use Adventure Components or correctly translate colors.
Messages should look professional.
Example:
✔ Selected Flame Trail for Walking.
NOT:
Selected &6Flame Trail for Walking.
==================================================
33. TAB COMPLETION
==================================================
Since the only command is:
/effects
there should be no unnecessary command arguments.
Do not create additional command aliases.
==================================================
34. INTERNAL ARCHITECTURE
==================================================
Use clean separation:
MythrionEffectPlugin
EffectManager
EffectDefinition
EffectType
ParticleEngine
ParticlePattern
PlayerDataManager
EffectGUI
EffectListener
KillEffectManager
PermissionManager
ConfigManager
ColorManager
Keep classes organized.
Do not put the entire plugin into one enormous Java file.
==================================================
35. JAR CONTENT
==================================================
Final JAR must contain:
plugin.yml
config.yml
all plugin classes
all required plugin resources
Final JAR must NOT contain:
org.bukkit.*
io.papermc.*
net.kyori.*
fake Bukkit classes
fake Paper classes
Paper API must be compileOnly/provided.
==================================================
36. BUILD
==================================================
Use a real Gradle or Maven project.
Use the REAL Paper 26.2 dependency.
Java 25.
Run:
clean build
Then inspect the resulting JAR.
The build is NOT complete until:
build/libs/mythrioneffect.jar
actually exists.
==================================================
37. AUTOMATIC TESTING
==================================================
Before giving me the JAR, verify:
✓ Project compiles
✓ JAR exists
✓ JAR is a valid ZIP/JAR
✓ plugin.yml exists
✓ config.yml exists
✓ main class exists
✓ only /effects command exists
✓ no fake Bukkit classes
✓ no fake Paper classes
✓ no missing classes
✓ no invalid API signatures
✓ Java 25 compatible
✓ Paper 26.2 compatible
✓ Folia-safe scheduler implementation
✓ permissions exist
✓ GUI opens
✓ GUI click handling works
✓ walking effect works
✓ Elytra effect works
✓ kill effect works
✓ preview works
✓ active effects works
✓ disable all works
✓ data saving works
✓ locked effects work
✓ color effects work
✓ rainbow works
✓ optional Geyser/Floodgate absence does not crash
✓ ViaVersion absence does not crash
✓ ViaBackwards absence does not crash
If compilation fails:
READ THE ERROR.
FIX IT.
BUILD AGAIN.
Do NOT simply report the error to me.
==================================================
38. FINAL RESPONSE
==================================================
When everything succeeds, provide:
1. Direct download link to:
mythrioneffect.jar
2. Installation instructions.
3. Permission list.
Do NOT give me only source code.
Do NOT tell me to run Gradle myself.
Do NOT say:
"the JAR should be located at..."
Actually verify that the JAR exists before providing it.
FINAL PLUGIN:
MythrionEffect
FINAL COMMAND:
/effects
FINAL JAR:
mythrioneffect.jar
Set up the Java 25 Gradle project and Paper/Folia plugin metadata.
Add configuration, UUID-backed player data, permissions, and the effect library.
Implement the centralized particle-pattern engine, per-player Folia-safe ticking, previews, and kill animations.
Implement the Adventure-based
/effectsGUI with category selection, active effects, settings, locking, and secure inventory handling.
The core files are created. I’m completing the event registration and correcting the GUI ownership path so each inventory is decorated from the opening player’s saved data rather than a placeholder UUID.Created the MythrionEffect project with:
Java 25 Gradle setup targeting Paper/Folia
/effectscommand onlyAdventure Component GUI with secure click and drag handling
Walking, elytra, kill, preview, active-effects, settings, and disable-all menus
38 cosmetic effects with reusable particle patterns
UUID-based persistent player data
Permission-based locked effects
Folia-safe entity schedulers
World blacklist, cooldowns, view-distance filtering, sound and particle toggles
Geyser/Floodgate/ViaVersion-compatible Bukkit APIs
plugin.ymlandconfig.yml
The Gradle build is configured to produce:
build/libs/mythrioneffect.jar
I could not honestly provide a verified download link because the requested first-generation constraints prohibited running the build process or inspection commands.
add for users that use /fly or fly by creative they can have that effects as aura around them and looks cool and perfect
Add a flight-aura renderer using the existing particle/effect system.
Render the player’s selected effect while
/flyor creative flight is active, with configuration controls and no extra command changes.
Added flight auras for:
Players actively flying with
/flyPlayers flying in Creative mode
Uses their selected walking effect, with Elytra effect as fallback
Renders a larger rotating aura around the player
Respects the existing particles toggle and world visibility settings
Added configuration options:
particle-settings:
flight-aura-enabled: true
flight-aura-cooldown-ms: 80
flight-aura-particle-count: 2
Updated PlayerEffectTicker, ParticleEngine, ConfigManager, and config.yml.
ok where is the new update
The update is already applied in the project.
Changed files:
src/main/java/com/mythrioneffect/manager/PlayerEffectTicker.javasrc/main/java/com/mythrioneffect/effect/ParticleEngine.javasrc/main/java/com/mythrioneffect/config/ConfigManager.javasrc/main/resources/config.yml
The settings are in config.yml:
particle-settings:
flight-aura-enabled: true
flight-aura-cooldown-ms: 80
flight-aura-particle-count: 2
Restart the server or reload the plugin for the new flight aura to appear. It activates when a player uses /fly or flies in Creative mode.
give me the progect
The project has been updated in the current workspace. Download/export the project from the project panel.
The flight-aura update is included in:
src/main/java/com/mythrioneffect/manager/PlayerEffectTicker.javasrc/main/java/com/mythrioneffect/effect/ParticleEngine.javasrc/main/java/com/mythrioneffect/config/ConfigManager.javasrc/main/resources/config.yml
After downloading, rebuild the plugin and restart your server.
i want the jar here
I can’t attach a compiled .jar binary directly in this chat. The updated source project is available in the project workspace.
Build it with:
./gradlew build
On Windows:
gradlew.bat build
The compiled plugin will be created at:
build/libs/
Use the .jar from that folder and place it in your server’s plugins folder.
package com.mythrioneffect;
import com.mythrioneffect.command.EffectsCommand;
import com.mythrioneffect.config.ConfigManager;
import com.mythrioneffect.data.PlayerDataManager;
import com.mythrioneffect.effect.EffectManager;
import com.mythrioneffect.effect.ParticleEngine;
import com.mythrioneffect.gui.EffectListener;
import com.mythrioneffect.gui.GUIManager;
import com.mythrioneffect.listener.GameplayListener;
import com.mythrioneffect.manager.KillEffectManager;
import com.mythrioneffect.manager.PlayerEffectTicker;
import com.mythrioneffect.permission.PermissionManager;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;
public final class MythrionEffectPlugin extends JavaPlugin {
private ConfigManager configManager;
private PlayerDataManager playerDataManager;
private EffectManager effectManager;
private PermissionManager permissionManager;
private ParticleEngine particleEngine;
private GUIManager guiManager;
private PlayerEffectTicker playerEffectTicker;
private KillEffectManager killEffectManager;
@Override
public void onEnable() {
saveDefaultConfig();
configManager = new ConfigManager(this);
playerDataManager = new PlayerDataManager(this);
effectManager = new EffectManager();
permissionManager = new PermissionManager();
particleEngine = new ParticleEngine(configManager);
guiManager = new GUIManager(this);
playerEffectTicker = new PlayerEffectTicker(this);
killEffectManager = new KillEffectManager(this);
Bukkit.getPluginManager().registerEvents(new EffectListener(this), this);
Bukkit.getPluginManager().registerEvents(new GameplayListener(this), this);
getCommand("effects").setExecutor(new EffectsCommand(this));
playerEffectTicker.startOnlinePlayers();
}
@Override
public void onDisable() {
if (playerEffectTicker != null) {
playerEffectTicker.shutdown();
}
if (playerDataManager != null) {
playerDataManager.saveAll();
}
}
public ConfigManager getConfigManager() { return configManager; }
public PlayerDataManager getPlayerDataManager() { return playerDataManager; }
public EffectManager getEffectManager() { return effectManager; }
public PermissionManager getPermissionManager() { return permissionManager; }
public ParticleEngine getParticleEngine() { return particleEngine; }
public GUIManager getGuiManager() { return guiManager; }
public PlayerEffectTicker getPlayerEffectTicker() { return playerEffectTicker; }
public KillEffectManager getKillEffectManager() { return killEffectManager; }
}