ezz_123_ezz

Hello please check the file and make the plugin

📎 1 file 62,694 chars
📄
msg.txt
txt 740 lines
▶
THUNDER GOD TRIDENT — KODARI IMPLEMENTATION BRIEF
Version: 1.0
Target platform: Minecraft Java Edition / Paper 26.3
Resource-pack requirement: NONE
Project scope: ONE decorative, non-combat custom Trident
0. IMPORTANT PROJECT RULES
Build a Paper plugin that adds one special item named THUNDER GOD TRIDENT. This is a visual/showcase item only. Its special abilities must be cosmetic and must not function as attacks or combat abilities.
The user provided this video as visual inspiration:
https://youtu.be/5np2m2Vi6So?si=enhw4W4rw8hcEPcF
Video title previously identified as “I Got The Strongest Weapon (a fork)” by Endgame, associated with Enchain SMP. The video page/description may be accessible even if the full footage or captions are not. Inspect the video if you can genuinely access it. If you cannot watch the footage, say so clearly and do not claim to have seen details that you could not verify. Use only visual ideas you can actually confirm. Do not copy or invent undocumented mechanics.
The specification below is authoritative for the plugin. The video is inspiration, not permission to add combat behavior.
ABSOLUTE REQUIREMENTS:
- Only create the THUNDER GOD TRIDENT item and its cosmetic effects.
- Do not add other weapons, armor, tools, mobs, bosses, ranks, currencies, or unrelated systems.
- Do not use a custom resource pack.
- Do not add combat damage, attack bonuses, explosions that damage entities, knockback, potion effects, or hostile Evoker Fang entities.
- Do not permanently change blocks or terrain.
- Use vanilla Minecraft particles and vanilla sounds only.
- Do not claim a feature has been gameplay-tested unless it was actually tested on a running server.
1. SERVER TARGET AND COMPATIBILITY
Target: Minecraft Java Edition running Paper 26.3.
Before coding:
1. Check the Paper API available for the exact 26.3 server target.
2. Check the Java version required by that Paper build. Do not guess the Java release. State the required Java version in the delivery notes.
3. Use the matching Paper API dependency and a compatible build tool configuration.
4. Set plugin.yml api-version only to a value accepted by the target server.
5. Avoid NMS, reflection, CraftBukkit internals, and version-specific hacks unless there is no supported API alternative.
6. If the exact Paper 26.3 build number or Java release cannot be confirmed, document the uncertainty and ask for the server's startup log rather than pretending compatibility is verified.
The plugin should fail gracefully with a clear console message if loaded on an unsupported server version. Do not crash the server.
2. THE CUSTOM ITEM
Base material: TRIDENT
Display name: &b&lTHUNDER GOD TRIDENT
Required visible enchantments:
- Efficiency V
- Blast Protection IV
These two enchantments are requested as the item's displayed enchantment identities. A Trident does not normally support these enchantments in vanilla gameplay, so apply them safely through the supported Paper/Bukkit item metadata API using the appropriate unsafe-enchantment method if required. Confirm that both appear correctly in the item tooltip on the target client.
Because this is a decorative, non-combat item:
- Efficiency V must NOT increase melee damage, projectile damage, attack speed, mining speed, or any other combat statistic.
- Blast Protection IV must NOT reduce damage, cause damage, or activate a real explosion.
- The enchantments are part of the item's appearance and identity only.
- Do not add Sharpness, Unbreaking, Mending, Loyalty, Riptide, Impaling, Channeling, or any other enchantments unless absolutely required internally and hidden from the tooltip. Prefer not to add any others.
Use PersistentDataContainer (PDC) with a namespaced key to identify the special Trident. Do not identify it only by display name or lore, because players can rename ordinary items. Every custom-item check should validate its PDC marker and expected material.
Suggested lore (configurable):
- A rare decorative relic
- Its power is visual, not harmful
- Right-click to create a meteor-style spectacle
Do not add lore that promises damage, PvP advantages, or combat effects.
3. UNBREAKABLE AND ITEM-PERSISTENCE BEHAVIOR
The special Trident should be permanently unbreakable during ordinary use.
Requirements:
- Set the vanilla Unbreakable item flag/property.
- Cancel durability reduction for the marked custom Trident where the relevant supported event permits it.
- Preserve its PDC identity, name, lore, enchantments, and unbreakable state when moved between inventory slots, chests, shulker boxes, and player inventories.
- Prevent normal dropped-item despawning for this special item where feasible using supported APIs.
- Prevent item merging from accidentally replacing or stripping metadata.
- Protect the dropped special item from ordinary environmental item damage where supported, including fire, lava, cactus, and explosion damage.
- Do not claim protection against every possible removal mechanism. The void, server crashes, administrative item-clearing plugins, world resets, and other plugins may require separate handling.
- Do not create a hidden duplication system as a workaround.
If the item enters the void, use a safe, bounded recovery mechanism only if it can be implemented without duplication or item loss. A recovery system must track one specific item instance and must not generate another copy while the original still exists. If reliable instance tracking cannot be guaranteed, do not implement automatic recovery; explain the limitation and recommend a tested backup/recovery approach instead.
Do not cancel every item event globally. Only affect items carrying this plugin's PDC marker.
4. COSMETIC ACTIVATION — METEOR SHOWCASE
The main visual ability is a meteor-style impact spectacle inspired by the visual idea described by the user.
Activation:
- Right-click while holding the THUNDER GOD TRIDENT in the main hand.
- Cancel the normal Trident throw/use action for this special item so it does not become a damaging vanilla projectile.
- Find the solid block the player is looking at within a configurable maximum range (default 40 blocks).
- The target must be a safe, valid location. Do not target inside protected regions if a supported protection integration is available; if no integration exists, keep the effect cosmetic and do not modify blocks.
- If there is no valid target block, show a short message and do not activate.
- Add a configurable cooldown (default 5 seconds) to prevent particle spam.
- The activation must not consume or damage the item.
Visual sequence (all stages are cosmetic):
1. PRELUDE: A few electric sparks and a subtle charged-energy sound around the Trident holder.
2. APPROACH: Create a short, visually clear descending meteor trail made from particles. Use a scheduled sequence of particle locations to suggest motion. The trail must be a visual simulation, not a damaging projectile.
3. FLASH: At the target point, create a brief bright visual burst with vanilla particles.
4. IMPACT: Create a large circular shockwave made from particles. Expand the ring smoothly over time rather than spawning everything in one tick.
5. CRATER ILLUSION: Add a temporary circular arrangement of smoke, ash, dust, and ember-like particles around the target. This must be an illusion only: no blocks are removed, placed, replaced, or changed.
6. AFTERGLOW: Add a few fading electric sparks and smoke particles, then stop all scheduled tasks.
Recommended vanilla particle families (confirm names against the target API):
- ELECTRIC_SPARK
- FLASH
- EXPLOSION or EXPLOSION_EMITTER (use a visual particle only; do not create an actual explosion event)
- CLOUD
- SMOKE
- LARGE_SMOKE
- ASH
- FLAME (particle only; it must not ignite blocks)
- CRIT or ENCHANT (optional, used sparingly)
- DUST (use safe vanilla particle data)
Recommended vanilla sounds (confirm names against target API):
- ENTITY_LIGHTNING_BOLT_THUNDER
- ENTITY_GENERIC_EXPLODE (sound only; no explosion event)
- BLOCK_BEACON_POWER_SELECT or another subtle charging sound
- BLOCK_RESPAWN_ANCHOR_CHARGE (sound only, optional)
IMPORTANT SAFETY AND GAMEPLAY CONSTRAINTS:
- Do not call World.createExplosion or any equivalent damage-producing explosion API.
- Do not ignite blocks.
- Do not create fire blocks.
- Do not break, place, or modify blocks.
- Do not damage players, mobs, armor stands, item frames, or other entities.
- Do not apply potion/status effects.
- Do not apply velocity or knockback.
- Do not spawn real EvokerFangs entities. They are hostile attack entities. If a fang-like visual is desired, approximate it with harmless particles only.
- Do not create a real lightning strike. Use the FLASH particle and thunder sound for a lightning-like appearance.
- The event must remain cosmetic even if another plugin listens for explosion or damage events.
5. OPTIONAL HELD-ITEM AURA
When a player holds the special Trident in their main hand, show a subtle aura:
- A small number of ELECTRIC_SPARK particles near the item/player hand.
- Optional tiny ENCHANT or DUST particles.
- Do not spawn particles every tick if that would be wasteful. Use a controlled interval, such as every 4–6 ticks, and keep counts low.
- Stop the aura immediately when the player changes item, disconnects, dies, or the plugin disables.
- Do not create invisible armor stands, persistent display entities, or other permanent entities just to render the aura.
- Make the aura configurable and disabled if performance is a concern.
6. COMMANDS AND PERMISSIONS
Commands:
/godtrident give 
- Gives one THUNDER GOD TRIDENT to the target player.
- If the target inventory is full, safely drop the item at the target's location.
- Do not silently delete the item.
- Send a clear success/failure message to the command sender.
/godtrident reload
- Reloads config.yml.
- Validate the new configuration before replacing the active settings.
- If the config is invalid, keep the previous valid settings and show a clear error.
Permissions:
- godtrident.give
- godtrident.reload
Both permissions should default to OP. A normal player must not be able to give themselves the item or reload configuration unless granted permission.
Provide tab completion for subcommands and online player names where supported.
7. CONFIGURATION FILE
Provide a readable config.yml with comments and safe defaults. Include at least:
item:
  material: TRIDENT
  name: "&b&lTHUNDER GOD TRIDENT"
  unbreakable: true
  show-enchantments: true
  efficiency-level: 5
  blast-protection-level: 4
  lore: []
ability:
  enabled: true
  cooldown-seconds: 5
  target-range: 40
  cancel-vanilla-trident-throw: true
particles:
  held-aura-enabled: true
  held-aura-interval-ticks: 5
  meteor-enabled: true
  meteor-quality: medium
  trail-particle-count: configurable
  shockwave-radius: configurable
  shockwave-duration-ticks: configurable
  afterglow-enabled: true
sounds:
  enabled: true
  charging-sound: configurable vanilla sound
  impact-sound: configurable vanilla sound
  thunder-sound: configurable vanilla sound
protection:
  prevent-durability-loss: true
  prevent-normal-despawn: true
  protect-dropped-item-from-environment: true
messages:
  prefix: "&8[&bThunder Trident&8] "
  no-target: "&cLook at a block within range to use the visual effect."
  cooldown: "&cPlease wait before using the visual effect again."
  given: "&aThunder God Trident given."
  reloaded: "&aConfiguration reloaded."
The exact YAML layout may be improved by the developer, but every setting must be documented and validated. Never load invalid numeric values without bounds checking. Prevent negative particle counts, unreasonable radii, huge task durations, and invalid sound/particle names from causing crashes or lag.
8. PERFORMANCE AND TASK MANAGEMENT
- Do not scan every world and every entity repeatedly.
- Schedule a task only when a player activates the visual effect or holds the item if the aura is enabled.
- Keep each visual sequence short and bounded.
- Use low particle counts by default and allow a configurable quality setting.
- Apply reasonable maximum limits to radius, particle count, and duration.
- Cancel scheduled tasks when their sequence ends.
- Cancel all plugin tasks on disable/reload as appropriate.
- Clean up player cooldown/aura tracking on quit and plugin disable.
- Do not leave invisible entities, lingering effects, or repeating tasks behind.
- Support multiple players activating the visual effect at the same time without sharing or corrupting their task state.
- Avoid synchronous file I/O during gameplay events.
- Do not spam the console.
9. MULTIPLAYER AND PLUGIN INTERACTION
- Only special items identified by the PDC marker receive custom behavior.
- Ordinary Tridents must retain normal vanilla behavior.
- Do not cancel normal Trident events for items that are not marked as THUNDER GOD TRIDENT.
- Ensure the cosmetic ability never causes entity damage, block damage, fire spread, or knockback.
- Keep the feature compatible with common Paper plugins as far as possible.
- Do not bypass region protections. Since the ability does not change blocks or damage entities, it should remain visual-only; nevertheless, avoid sending particles to players who should not see them if a supported visibility integration is used.
- Do not introduce dependencies on premium plugins.
10. ITEM TRANSFER AND DUPLICATION CONSIDERATIONS
The custom item should preserve its PDC identity and metadata through normal inventory operations. Do not globally block inventory clicks or item movement.
Do not promise perfect duplication prevention. Creative mode, administrator commands, backups, other plugins, and server-side item editors can create copies outside this plugin. The plugin should avoid creating duplicates itself and should document known limitations honestly.
If a custom item is copied by a legitimate administrator tool, it may remain a valid custom item. Do not delete items merely because more than one exists unless a robust, tested ownership/instance system has been designed and explicitly approved.
11. PROJECT STRUCTURE AND SOURCE QUALITY
Deliver a clean, maintainable project with:
- Main plugin class.
- Separate command handler if appropriate.
- Separate custom-item factory/manager.
- Separate cosmetic-effect manager.
- Separate event listener(s).
- Configuration loader/validator.
- plugin.yml.
- config.yml.
- README or installation instructions.
- Build configuration (Gradle or Maven).
Use clear names and comments. Avoid putting the entire plugin into one enormous method. Handle null values and invalid player/item states. Catch and report expected configuration/API errors without hiding serious programming errors.
Do not bundle unrelated libraries. If a library is included, document why it is needed and its license. Prefer the Paper API alone for this simple plugin.
12. TEST PLAN — REQUIRED BEFORE CLAIMING SUCCESS
Compilation checks:
- Build the project using the declared Java release.
- Confirm the JAR is produced.
- Check for compiler warnings and errors.
- Confirm plugin.yml and config.yml are packaged correctly.
- Confirm the plugin loads on the exact Paper 26.3 target if a test server is available.
In-game tests, only if a real test server is available:
1. Run /godtrident give  as an OP.
2. Confirm the correct item, name, lore, enchantments, and unbreakable flag.
3. Confirm normal Tridents are unaffected.
4. Right-click while holding the custom item and confirm the meteor-style visual sequence appears at the looked-at block.
5. Confirm the effect uses particles and sounds only.
6. Confirm no block is broken, placed, replaced, or ignited.
7. Confirm no player or mob receives damage or knockback.
8. Confirm no potion effects are applied.
9. Confirm no real Evoker Fangs or lightning entities are spawned.
10. Confirm cooldown prevents repeated particle spam.
11. Confirm the item remains usable and does not lose durability.
12. Confirm dropped-item protection and despawn handling where supported.
13. Confirm plugin disable/reload cancels all tasks and does not leave entities or repeating effects behind.
14. Confirm two or more players can use the effect at the same time.
15. Confirm invalid config values produce readable errors and do not crash the server.
If no live Paper test server is available, clearly label the above as NOT RUN. Do not say “tested” merely because the source compiled or the JAR contents were inspected.
13. FINAL DELIVERY REQUIREMENTS
Provide:
1. Compiled plugin JAR.
2. Complete source project in a ZIP or repository.
3. config.yml.
4. plugin.yml.
5. README with installation steps and required Java version.
6. A short test report separating:
   - compiled successfully,
   - inspected in source,
   - tested on a live Paper server,
   - not verified.
Installation instructions should explain:
- Which Java release is required.
- Where to place the JAR.
- How to restart the server.
- How to give the item.
- How to reload the configuration.
- How to change particle quality and cooldown.
FINAL ACCEPTANCE CHECKLIST:
[ ] One custom THUNDER GOD TRIDENT only.
[ ] Efficiency V visible.
[ ] Blast Protection IV visible.
[ ] No custom resource pack.
[ ] Vanilla particles and sounds only.
[ ] Meteor-style cosmetic visual sequence.
[ ] No damage to players or mobs.
[ ] No knockback or potion effects.
[ ] No actual explosion event.
[ ] No permanent block or terrain changes.
[ ] No hostile Evoker Fang entities.
[ ] Unbreakable item behavior.
[ ] Commands and OP-default permissions.
[ ] Configurable and bounded particle effects.
[ ] Paper 26.3 / Java compatibility documented.
[ ] Source and compiled JAR delivered.
[ ] Testing claims are truthful and clearly labeled.
Do not add features outside this brief. When a requested visual cannot be implemented reliably through the supported API, explain the limitation and provide the closest harmless vanilla-particle alternative. Do not silently replace requirements or claim unsupported behavior works.
END OF SPECIFICATION
14. DETAILED USER EXPERIENCE AND ACTIVATION FLOW
The custom Trident is intended to be a special showcase item that a player can display and use to create a harmless visual spectacle. It is not intended to provide a PvP advantage. Keep the interaction easy to understand and predictable.
Expected first-use experience:
- An authorized administrator gives the item using the command.
- The receiver sees a normal vanilla Trident model with a cyan bold custom name and the two requested enchantments in the tooltip.
- No resource-pack download prompt appears at any point.
- The player holds the item in the main hand.
- The player right-clicks while looking at a suitable block.
- The server displays the meteor-style visual sequence at the selected point.
- The item remains in the player's inventory and does not lose durability.
- The player receives clear feedback if the target is too far away or the ability is on cooldown.
The visual activation should not depend on whether the player is in PvP mode, has a target entity, or is looking at another player. It is a location-based visual effect, not an entity-based ability. It should be possible to activate the effect in an empty field, in a lobby, or in a protected showcase area, subject to any configurable world restrictions.
Use only the main hand for activation. If the same item is in the offhand, right-clicking must not activate it. This avoids double activation from one interaction and keeps the behavior intuitive.
Do not activate twice because both RIGHT_CLICK_AIR and RIGHT_CLICK_BLOCK are fired around the same input. Choose one reliable event path and add a short per-player debounce if necessary. A single physical click should create at most one visual sequence.
When the player attempts to use the special item while a menu, inventory, or another plugin interaction is active, do not unexpectedly close inventories or steal clicks. Only intercept the intended right-click action when the player is holding the marked Trident in the main hand. Do not cancel unrelated inventory events.
If the player is in spectator mode, decide through configuration whether activation is allowed. The safe default should be disabled in spectator mode. Creative mode may be allowed because the effect is harmless, but it must not create additional copies of the Trident. Survival and adventure modes should work if the player has the relevant permission or if the ability is configured for all users.
15. ITEM IDENTITY, METADATA, AND RECOGNITION
Create the special item through one central factory method. Every command that gives the item must call that factory rather than building item metadata in several places. This prevents slight differences between copies.
The item's identity should be stored in PersistentDataContainer. Use a namespaced key that belongs to this plugin, for example a key named thunder_god_trident. Store a stable marker value and, if useful, a schema version. The display name is for presentation only and is not a security check.
Recognition requirements:
- Confirm the material is TRIDENT.
- Confirm the PDC marker exists and has the expected value/type.
- Do not treat an ordinary Trident with a matching name as the custom item.
- Do not treat an unrelated item with a copied lore line as the custom item.
- Do not modify ordinary Tridents.
- Do not rely on item slot or display name alone.
When rebuilding the item after configuration reload, do not silently rewrite every copy in every player's inventory. The configuration should affect newly created items and future activations. Existing items should continue to work if they carry the expected PDC schema. If the item schema changes in a later release, provide a safe compatibility path or document the migration.
Avoid using a random unique ID as the only recognition mechanism unless the plugin also has a robust persistence store. A random per-item ID can help track an individual dropped item, but it must not cause legitimate inventory copies, backups, or administrator-issued replacement items to become invalid unexpectedly. Explain any individual-instance tracking design before using it.
Do not store large serialized objects in the PDC. Use small, stable primitive values. Keep the metadata compact so the item can move normally through player inventories, chests, shulker boxes, ender chests, and other supported inventory systems.
The factory should set metadata in a safe order, check that ItemMeta exists, set the display name and lore, add the two visible enchantments, set the unbreakable flag, and finally set the PDC marker. Check the result rather than assuming every metadata operation succeeded. Use supported API methods for the target Paper release.
16. RIGHT-CLICK EVENT HANDLING IN DETAIL
The event listener should first check the event type and hand. It should then retrieve the player's main-hand item and call the central isThunderGodTrident check. If that check returns false, immediately return without changing the event.
For a recognized item:
1. Confirm that the action is a supported right-click action.
2. Confirm that the player is allowed to activate the cosmetic effect under the configured game-mode and permission rules.
3. Cancel the vanilla Trident use/throw behavior so no damaging trident projectile is launched.
4. Check the per-player cooldown using server tick time or a monotonic time source appropriate to the platform. Do not use a repeating task solely to manage cooldowns.
5. Resolve the target block with the supported player ray-tracing API and configured maximum range.
6. Check that the result is non-null and that the final visual origin is valid.
7. Check world restrictions and optional integration hooks.
8. Start one cosmetic sequence and store its task handle or sequence state.
9. Send appropriate feedback only when needed; avoid chat spam.
Do not cancel the event before confirming that the held item is the custom item. A common bug is to cancel every Trident interaction, which would break ordinary Tridents. Another common bug is to run the ability for both hands. Include explicit tests for both cases.
A player may right-click while looking at the sky, at a distant block, through an unloaded chunk, or at a block that becomes unavailable. Handle these cases without exceptions. Do not force-load chunks just to display the effect. If the target chunk is not loaded or the location is invalid, tell the player that no suitable target was found.
If the player disconnects after activation, the visual sequence can either continue at the chosen world location or stop. The preferred default is to continue briefly if doing so is safe and bounded, because the sequence is location-based and harmless. However, do not retain a Player object or task forever. Store only the required world/location data and cancel the task when its maximum duration completes. If the world unloads, stop the sequence cleanly.
If the player dies, changes world, or switches item after activating, do not create new repeated activations. The already-started visual sequence may finish at the selected location, provided its task is bounded and the world remains loaded. All held-item aura work must stop when the player no longer holds the item.
17. TARGET SELECTION AND SAFE LOCATION RULES
The meteor spectacle should have a clear target point. Use a block ray trace from the player's eye location in their look direction. Respect the configured maximum range. Use the hit position or a suitable point just above the hit block, depending on which produces the cleanest particles.
Location validation should include:
- The world still exists and is loaded.
- The target chunk is already loaded.
- The target block or hit position is within the configured range.
- The target location is not in the void or outside the world's supported height range.
- The target location can be represented safely by the API.
- The effect is not in a world disabled by configuration.
Do not modify the target block, its neighboring blocks, or any block beneath the visual crater. The crater is only a particle arrangement. It must not use temporary block replacement as a shortcut, because a crash or plugin reload could leave the world altered.
Avoid placing the visual center inside a solid block. If the ray trace hits a block, calculate a particle center at or just above the exposed face. If the API returns a face normal, use it carefully. If not, use a safe offset. The effect should look acceptable on floors, walls, and ceilings, but floor impacts should be the primary supported use case.
If a player aims at a liquid, decide whether the effect is allowed. The safe default can allow water and disallow lava, but since the effect is visual-only, this is a presentation choice. Do not create fire or modify liquid blocks. Document the rule in the configuration.
If a player aims at a moving entity, do not use that entity as the effect target. The ability is not intended to follow or attach to players or mobs. A block-only ray trace is preferred. If the first object in view is an entity and there is no block behind it within range, report that a block target is required.
World restrictions should be configurable by world name or a simple allow/deny list. A disabled world must not start the sequence. Do not assume a world called world, world_nether, or world_the_end exists. Never create a world automatically.
18. METEOR VISUAL SEQUENCE — TIMELINE
Treat the visual effect as a finite sequence of stages. The stages below are design guidance. Tune durations and counts to performance, but preserve the visual order and the cosmetic-only rules.
Stage A — Charge (approximately 4 to 8 ticks):
- Show a small burst of electric sparks around the player's held Trident or at the player's upper body.
- Optionally play one quiet charging sound.
- Do not lock the player in place.
- Do not modify the player's movement or inventory.
- Do not apply a glow, potion effect, or attribute change.
Stage B — Meteor approach (approximately 8 to 16 ticks):
- Simulate a meteor descending toward the target point.
- Compute a sequence of temporary particle positions along a line or shallow curve above the target.
- On each scheduled step, spawn a modest number of smoke, ash, and electric particles at the current point.
- The apparent motion should be created by moving the particle spawn point each step, not by spawning a projectile entity.
- Stop the trail when the impact stage starts.
- Keep the path short enough to be readable and avoid filling the entire sky with particles.
Stage C — Flash (1 to 2 ticks):
- Spawn a flash particle at the target point.
- Optionally play one sharp vanilla sound.
- Do not create a lightning entity or call a lightning-strike API.
Stage D — Initial impact (approximately 2 to 4 ticks):
- Spawn a small central burst of explosion-like particles, smoke, and sparks.
- Play the configured impact sound once.
- Do not call any explosion API.
- Do not damage entities or blocks.
Stage E — Expanding shockwave (approximately 8 to 20 ticks):
- Draw one or more horizontal particle rings centered on the target point.
- Expand the ring radius gradually from a small value toward the configured maximum radius.
- Keep particle placement deterministic enough that the ring looks continuous at normal viewing distance.
- A ring can be generated using evenly spaced angles around 2π. Choose a bounded number of points for each step.
- Vary particle types sparingly to create depth, but avoid random high-volume particle bursts.
- The ring is a visual cue only; it must not apply velocity, damage, or any gameplay force.
Stage F — Crater illusion (approximately 8 to 16 ticks):
- Draw a larger outer ring and a smaller inner ring of smoke/ash/dust particles.
- Add a small amount of flame-colored particle imagery only if it cannot ignite blocks. Particle flames are not fire blocks.
- Add scattered electric sparks near the center.
- Do not dig a crater, place blocks, replace blocks, set fire, or create falling block entities.
Stage G — Afterglow (approximately 10 to 30 ticks):
- Spawn a decreasing number of sparks and smoke particles.
- Optionally play a quiet fading sound if an appropriate vanilla sound exists.
- End the task automatically.
The total effect should be visually dramatic but reasonably short. A good default target is roughly 2 to 4 seconds from charge to final afterglow. The user should not have to wait a long time for the visual to finish. Allow configurable durations within strict upper bounds.
19. PARTICLE GEOMETRY AND VISUAL QUALITY
Use particle geometry to make the effect look intentional rather than like random particles scattered around a point.
Shockwave ring:
- Use a horizontal circle around the selected impact point.
- At each animation step, calculate the current radius.
- Choose a point count proportional to circumference, but clamp it to a safe maximum.
- Keep adjacent points close enough that the ring appears continuous at ordinary render distance.
- Use one or two particle types per ring, not every available particle type at once.
Crater illusion:
- Use concentric rings at different radii and heights.
- Keep the inner region visually brighter and the outer region more diffuse.
- Add sparse smoke rising above the center.
- Use a few sparks at different heights to imply residual energy.
- Do not use block display entities or falling block entities to simulate terrain damage.
Meteor trail:
- Use a finite sequence of positions that descends toward the impact point.
- Use small particle groups at each position.
- Vary the trail width slightly if desired, but avoid an excessively wide cloud that obscures nearby players.
- Keep the trail within the configured maximum visual length.
Particle counts must be calculated and bounded. Never allow a player to configure a value that results in millions of particles. Set conservative maximum values in code even if the configuration contains a larger number. Log a warning and clamp the value rather than crashing.
Offer quality presets such as LOW, MEDIUM, and HIGH. LOW should be suitable for busy multiplayer servers and mobile/low-end clients. MEDIUM should be the recommended default. HIGH can increase visual density but must still respect absolute hard caps. Do not use client-specific resource-pack assets or shader assumptions.
Consider the server load and client rendering load separately. Particle spawning is generally server-to-client traffic. Keep the effect bounded in duration, particle count, and number of simultaneous sequences. Do not create a global repeating task that scans every player and world when there are no active visual effects.
20. SOUND DESIGN
All sounds must come from the vanilla Minecraft sound registry supported by the target server. Validate configured names against the API. If a configured sound is invalid, use a documented safe default and emit one warning during startup or reload, not a warning every time the effect activates.
Suggested sound layers:
- A subtle charge sound at activation.
- A single short impact sound at the flash/impact transition.
- A thunder-like sound for dramatic emphasis.
- Optional quiet afterglow sound.
Do not play every sound at maximum volume. Use configurable volume and pitch values within safe limits. Make sure each activation does not replay the same loud sound every tick. One impact sound per sequence is normally enough, with an optional separate thunder sound.
Play sounds in the target world near the target location so nearby players can hear the spectacle. If the effect is intended for a lobby showcase, allow a configurable sound radius or audience radius. Do not send the sound to every player on the server if they are in another world or far away.
Do not use sounds that imply a real gameplay explosion if that causes confusion. The effect must remain cosmetic. Include a comment in config.yml that explosion-like sounds are audio only.
21. VISIBILITY, AUDIENCE, AND WORLD RULES
By default, players in the same world and near the target should see the particles according to ordinary Minecraft rendering and tracking behavior. Do not create a custom packet system unless it is required and supported.
Optional configuration can control:
- Whether only the activating player sees the effect or nearby players also see it.
- Maximum audience distance for manually sent particles, if the API design uses per-player particle sending.
- Worlds where the visual effect is enabled.
- Whether the held-item aura is shown to nearby players or only the holder.
The default should be that nearby players in the same world can see the meteor spectacle, making it useful for a public showcase. Do not send particles across worlds. Do not force chunks to load to show an effect to a distant viewer.
If a player is hidden from another player by a vanish plugin, respect an available standard visibility API when possible. Do not attempt to bypass vanish systems. If there is no supported integration, use normal server particle visibility and document the limitation.
Do not create a permission requirement for ordinary viewers to see the effect. Permissions are for giving and reloading the item. If the server owner later wants activation permission, add an optional configurable permission node and document its default.
22. HELD AURA DETAILS
The aura is a small decorative enhancement and should never be more visually intense than the meteor activation. It must be disabled automatically when the item is not held.
Implementation guidance:
- Detect whether a player holds the marked item in the main hand.
- Use a low-frequency scheduled check only if there is at least one online player and the aura is enabled, or use a supported event-driven approach.
- Prefer one shared bounded task over creating an independent unbounded task for every player.
- Do not retain references to offline players.
- Remove player tracking when they disconnect.
- Do not spawn persistent entities.
- Keep particle counts minimal.
The aura must not obscure the player's screen, reveal invisible players, create a hitbox, or affect combat. It is purely decorative. The user should be able to disable it in config.yml without disabling the meteor showcase ability.
23. ITEM USE, DURABILITY, AND ENVIRONMENTAL EDGE CASES
Test the special Trident in normal inventory conditions:
- Main hand.
- Offhand.
- Hotbar slot changes.
- Dropping the item.
- Picking it up again.
- Moving it through a chest.
- Moving it through a shulker box.
- Moving it through an ender chest.
- Dying and respawning.
- Disconnecting and reconnecting.
The item should retain its metadata through ordinary supported inventory transfers. If a third-party plugin strips PDC or custom metadata, the Thunder God Trident plugin cannot guarantee recovery. Document such external-plugin limitations.
When dropped, protect the item against ordinary environmental destruction and despawning where possible. Do not cancel item pickup or normal player inventory movement. The item should remain collectable by its owner and other players unless the server has a separate item-protection rule.
Do not set a global item despawn rule. Only the marked Trident may receive special treatment. Avoid permanently retaining dropped items forever without a cleanup policy. If the server owner needs dropped Tridents to persist indefinitely, explain the storage/performance implications and provide a configuration option with clear warnings.
Do not attempt to make the item survive world deletion, backups being restored, a server administrator clearing items, or external plugins intentionally deleting it. These are outside the control of a normal plugin listener.
24. RELOAD BEHAVIOR AND CONFIGURATION SAFETY
The reload command must be safe while players are online and while visual sequences are active.
Recommended reload sequence:
1. Read config.yml from disk.
2. Parse into a temporary configuration object.
3. Validate every field and clamp values to documented bounds.
4. Validate particle and sound names against the running API.
5. If validation fails in a fatal way, report the error and keep the current active configuration.
6. If validation succeeds, atomically replace the active settings reference.
7. Apply updated settings to future activations.
8. Decide whether currently running visual sequences keep their already-captured settings or switch to the new settings. Prefer capturing a safe immutable settings snapshot when a sequence starts so reload cannot produce inconsistent geometry halfway through an effect.
9. Do not duplicate or recreate items during reload.
10. Do not clear player inventories.
Reload should not cause the held aura to start multiple times. If an aura task is already running, reconfigure or replace it in a controlled manner. Keep at most the intended number of repeating tasks.
If config.yml does not exist, create it with defaults. If the file is malformed, do not overwrite it silently. Keep a backup or print a clear message before offering a regenerated default configuration. Never erase user settings without telling them.
25. PERMISSION AND COMMAND RESPONSE DETAILS
/godtrident give :
- Validate that the target argument exists.
- Prefer online player names for the basic command, unless offline-player support is explicitly implemented and tested.
- Validate command sender permission.
- If the command sender is not a player, allow console use with a valid target.
- Create exactly one fresh item using the central item factory.
- If there is no inventory space, drop the item safely at the target's feet.
- Confirm to the sender who received the item.
- If the sender is a player, optionally send a short confirmation message.
- Do not expose stack traces to players.
/godtrident reload:
- Validate sender permission.
- Reload safely using the configuration procedure described above.
- Return success only after the active configuration was actually replaced.
- If reload fails, report failure and retain the last known-good configuration.
Tab completion:
- Suggest give and reload to authorized users.
- Suggest online player names after give.
- Do not reveal hidden/offline players unnecessarily.
- Keep completion lightweight.
Messages should support standard Minecraft color formatting. Avoid overly long messages. Keep all player-facing strings in config.yml so the server owner can edit them.
26. ERROR HANDLING AND LOGGING
Use informative logs for startup, configuration validation, unsupported server versions, missing dependencies (if any), and task cleanup failures. Do not print a success message before a feature has actually initialized.
Do not catch every Throwable and ignore it. Catch expected parsing and API exceptions where a safe fallback exists. Serious unexpected errors should be logged with enough detail to diagnose them. Avoid printing a full stack trace on every particle tick.
If a world unloads during an effect, terminate that effect cleanly. If a player disconnects during activation, release player-specific state. If the plugin disables during an effect, cancel plugin tasks and do not leave temporary entities. Since the visual effect should not create entities, cleanup should be straightforward.
If the API rejects a particle data type or sound identifier on the target version, use a documented fallback. Do not repeatedly try an invalid particle every tick. Validate once at startup or reload.
If the effect cannot be displayed because the target chunk unloads, stop rather than force-loading it. If an invalid configuration causes an invalid radius or count, clamp or reject it before the first activation.
27. API AND IMPLEMENTATION REVIEW CHECKLIST
Before compiling, review the code for these common pitfalls:
- Using a deprecated or removed API that is not available on the target Paper build.
- Using a particle enum name that does not exist in Paper 26.3.
- Using a sound enum name that does not exist in Paper 26.3.
- Forgetting to set api-version correctly in plugin.yml.
- Cancelling right-click events for ordinary Tridents.
- Triggering the ability for both main hand and offhand.
- Triggering the ability twice for one click.
- Forgetting to cancel vanilla Trident throwing for the custom item.
- Accidentally spawning a real Trident projectile.
- Accidentally using World.createExplosion.
- Accidentally using strikeLightning or strikeLightningEffect when only particles are required.
- Accidentally spawning EvokerFangs entities.
- Accidentally applying damage, velocity, potion effects, or fire.
- Using an unbounded repeating task.
- Retaining offline Player objects indefinitely.
- Failing to cancel tasks on plugin disable.
- Modifying all items instead of only the marked custom item.
- Rewriting every existing item during reload.
- Trusting a display name instead of PDC identity.
- Using a configuration value without validation.
- Failing when the target block is null or a chunk unloads.
- Loading an unsupported Java or Paper API dependency.
28. DETAILED TEST SCENARIOS
Scenario A — Basic creation:
- Start a clean Paper 26.3 test server.
- Place the plugin JAR in the plugins directory.
- Start the server and inspect the console.
- Confirm a single successful enable message.
- Confirm config.yml is generated.
- Run /godtrident give .
- Inspect the resulting item in a vanilla client.
- Verify its material, display name, enchantments, lore, and unbreakable property.
Scenario B — Ordinary Trident compatibility:
- Give a normal Trident to a test player.
- Right-click with the ordinary Trident.
- Confirm it behaves normally according to vanilla rules.
- Confirm the plugin does not cancel its use event.
- Confirm no custom particles or sounds are triggered.
Scenario C — Main-hand activation:
- Hold the custom Trident in the main hand.
- Aim at a solid block within range.
- Right-click once.
- Confirm one visual sequence starts.
- Confirm the normal Trident projectile is not launched.
- Confirm the item remains in the same inventory slot.
- Confirm no durability is removed.
Scenario D — No valid target:
- Aim at open sky.
- Aim beyond the configured range.
- Aim at an unloaded or unavailable target area if that can be safely reproduced.
- Confirm no exception is thrown.
- Confirm the player receives the no-target message.
- Confirm no background task remains active.
Scenario E — Visual impact sequence:
- Activate the ability on a flat surface.
- Observe charge, meteor trail, flash, impact, shockwave, crater illusion, and afterglow.
- Confirm the sequence looks like a coherent meteor-style spectacle.
- Confirm all particles are vanilla.
- Confirm the sound names are valid.
- Confirm the effect completes within its configured duration.
Scenario F — Terrain integrity:
- Record the block layout before activation.
- Activate on stone, dirt, grass, wood, and other ordinary blocks.
- Compare the layout after activation.
- Confirm no blocks were removed, placed, replaced, or ignited.
- Confirm no fire spread begins.
- Confirm no falling block entities were spawned.
Scenario G — Entity and player safety:
- Place players and passive/hostile mobs near the target.
- Activate the ability.
- Confirm no damage events are caused by the effect.
- Confirm no knockback or velocity change is applied.
- Confirm no potion effects or attribute modifiers are applied.
- Confirm no actual Evoker Fangs or lightning entities exist.
Scenario H — Cooldown:
- Activate once.
- Immediately right-click again.
- Confirm the second activation is rejected during cooldown.
- Wait until the cooldown ends.
- Confirm activation works again.
- Confirm one click never starts two sequences.
Scenario I — Multiple players:
- Have two or more players activate the effect at different locations.
- Confirm the sequences remain independent.
- Confirm each player's cooldown is independent.
- Confirm no particle sequence appears at the wrong target.
- Confirm no player-specific state leaks between users.
Scenario J — Inventory movement:
- Move the item between slots and inventories.
- Drop and pick it up.
- Store it in a chest, shulker box, and ender chest.
- Confirm PDC identity, name, enchantments, and unbreakable state remain intact.
Scenario K — Reload:
- Change particle quality and cooldown in config.yml.
- Run /godtrident reload.
- Confirm new activations use the new settings.
- Confirm existing active visual sequences finish or stop according to the documented policy.
- Confirm reload does not create duplicate tasks or items.
Scenario L — Shutdown:
- Activate the ability.
- Disable or stop the plugin/server during the sequence.
- Confirm there are no permanent entities left behind.
- Restart and confirm the plugin loads normally.
- Confirm the item remains recognized.
29. PERFORMANCE TESTING AND LIMITS
Do not use visual quality as an excuse to create unbounded server work. Every effect must have a known maximum duration and known maximum number of particle calls.
Calculate expected total particle count for one complete sequence. Document that estimate in the test report. Then calculate the maximum count when several players activate at the same time. Clamp the number of simultaneous sequences if needed, with a clear message when the server is busy.
Provide a configurable global limit for active visual sequences. The default should support a small group of players without being excessive. If the limit is reached, reject new activations temporarily rather than slowing the server or creating an unlimited backlog.
Do not queue visual sequences indefinitely. If the server is busy, display a short busy message and let the user try again after a short cooldown. Do not leave a long queue of old effects that play after the moment has passed.
Use a bounded number of calculations each tick. Precompute ring points when possible, or calculate only the current ring step. Do not allocate large temporary lists every tick. Prefer simple, clear code over premature optimization, but ensure the number of operations is bounded by configuration limits.
Test with the server's normal view distance and several simultaneous viewers. The developer should distinguish server tick impact from client particle-rendering impact. If the effect is visually overwhelming for lower-end clients, lower particle density by default and offer a higher quality setting for servers that can support it.
30. DOCUMENTATION REQUIRED FOR SERVER OWNER
The README should explain the plugin in plain language. It must include:
- The plugin's purpose.
- The fact that the item is decorative and non-combat.
- The exact supported Paper/Minecraft version.
- The required Java runtime version.
- Whether any dependencies are needed.
- How to install the JAR.
- How to start or restart the server.
- How to give the item.
- How to reload the configuration.
- How to change the meteor visual quality.
- How to change the cooldown and target range.
- How to disable the held aura.
- How to disable the meteor visual ability.
- The permissions and their default values.
- The fact that no resource pack is required.
- Known limits, especially void deletion, external item-clearing plugins, and unsupported server builds.
The README should not call this an overpowered combat weapon. Describe it as a cosmetic showcase Trident. Do not promise that it can never be deleted or duplicated under every possible server circumstance.
31. DELIVERY QUALITY AND REPRODUCIBILITY
The source project must be reproducible. Include the build file and explain the build command. If possible, include the exact dependency version used for Paper API and the Java toolchain. Do not include local absolute paths or assumptions that only work on the developer's computer.
The JAR must contain the correct plugin.yml and default config.yml. Confirm the main class name in plugin.yml matches the compiled class. Confirm the command and permission declarations match the code. Confirm the plugin name and version are accurate.
Do not ship debug code that spams particles, prints on every tick, or grants the item automatically to every player. Do not include hard-coded admin usernames. Do not include secrets, tokens, server addresses, or private credentials.
If the project uses a bundled library, identify it, explain why it is required, and include its license. Prefer no third-party dependency for this plugin. Do not bundle unnecessary libraries simply because they were present in another project.
The final JAR should be checked for accidental resource-pack references, custom model data, custom item model references, texture paths, and external asset URLs. The required result is a vanilla-client-compatible item with vanilla visuals only.
32. ACCEPTANCE CRITERIA — WHAT “DONE” MEANS
The plugin is considered complete only when all of the following are true:
A. Item:
- The custom Trident can be given with the command.
- It has the correct display name.
- Efficiency V and Blast Protection IV are visible.
- It is unbreakable during normal use.
- It is identified by PDC, not only by name.
B. Client requirements:
- No custom resource pack is requested or needed.
- The item looks like a normal vanilla Trident.
- The effects use supported vanilla particles and sounds.
C. Ability:
- Right-clicking with the custom item triggers one cosmetic meteor sequence at a valid target block.
- The normal Trident throw is cancelled for the custom item.
- The meteor approach, flash, impact, shockwave, crater illusion, and afterglow are visible.
- The ability respects cooldown and range.
D. No gameplay harm:
- No damage to players or mobs.
- No knockback or velocity changes.
- No potion effects.
- No actual explosion event.
- No real lightning strike.
- No hostile Evoker Fang entities.
- No fire blocks.
- No block or terrain modification.
E. Stability:
- Tasks are bounded and cleaned up.
- Invalid config values are handled safely.
- Ordinary Tridents work normally.
- Multiple users can use the effect without cross-talk.
- Plugin disable/reload does not leave tasks behind.
F. Delivery:
- JAR compiles.
- Source project is included.
- Config and plugin metadata are included.
- README is included.
- Paper and Java compatibility is documented.
- Testing status is reported honestly.
33. NON-GOALS — DO NOT IMPLEMENT THESE
The following are expressly outside the project:
- A PvP weapon or combat advantage.
- Increased melee damage.
- Increased projectile damage.
- Attack-speed modifiers.
- Damage-producing meteor strikes.
- Explosion damage or knockback.
- Explosion resistance for players.
- Potion effects on hit.
- Evoker Fang attacks.
- Real lightning damage.
- Terrain destruction or crater block editing.
- Fire spread or ignition.
- Custom textures, models, glyphs, sounds, or resource packs.
- Any other custom item or ability.
Do not add any of these as an optional feature. This project is specifically the harmless decorative version described in this file.
34. DEVELOPER RESPONSE FORMAT
When returning the completed project, include a short, factual summary in this exact structure:
1. Supported Paper version:
2. Required Java version:
3. Build result: SUCCESS / FAILED
4. JAR filename:
5. Source archive filename:
6. Config filename:
7. Resource pack required: NO
8. In-game test server available: YES / NO
9. Tests actually performed:
10. Tests not performed:
11. Known limitations:
12. Installation instructions:
Do not mark a test as passed unless the test was run. Source inspection is not a gameplay test. Compilation is not proof that event behavior works. A JAR inspection is not proof that the plugin loads or behaves correctly on a live server.
If you cannot build the JAR, provide the complete source project and the exact build error. Do not fabricate a JAR filename or claim a file exists when it does not.
If a Paper 26.3 server is unavailable, do the best static/API checks possible and clearly say that in-game verification remains outstanding. Never claim the meteor sequence was observed in-game unless it actually was.
35. FINAL INSTRUCTION
Use this file as the implementation contract. Read the complete specification before coding. Keep the scope limited to the single THUNDER GOD TRIDENT and harmless cosmetic effects. Make the experience polished, stable, configurable, and compatible with a vanilla client. Do not replace missing video observations with guesses. Do not add combat features. Do not permanently alter the world. Do not claim unperformed tests.
The expected result is a clean Paper plugin that gives the server one visually impressive, meteor-themed decorative Trident with an in-game particle spectacle, no custom resource pack, and no gameplay damage.
END OF FULL IMPLEMENTATION BRIEF
36. CONFIGURATION VALIDATION REFERENCE
Validate configuration values at load time rather than waiting until a player activates the ability. The plugin should build one validated settings object and let event handlers read from it. Do not repeatedly parse YAML values inside every particle tick.
Suggested validation rules:
- Item material must remain TRIDENT for this project. If configuration changes it to another material, reject that value and use TRIDENT.
- Display name may be customized, but an empty or null name should fall back to the default.
- Enchantment levels must be positive integers within a reasonable bounded range. The requested defaults remain Efficiency V and Blast Protection IV. Do not permit a configuration value to create extreme values that may break metadata handling.
- Cooldown must be zero or greater. A zero cooldown can be allowed for local testing, but the global sequence cap must still protect the server.
- Target range must be positive and have a hard maximum. Do not allow a value that causes ray tracing across an unreasonable distance.
- Shockwave radius must be positive and have a hard maximum.
- Sequence duration must be positive and bounded. Do not permit an indefinitely running task.
- Particle count must be zero or greater and have a hard maximum per stage and per sequence.
- Particle interval must be at least one tick. Do not allow a zero-tick repeating task.
- Sound volume and pitch must be finite numeric values within API-supported ranges. Reject NaN and infinite values.
- World names must be strings. Ignore blank entries and warn once for unknown worlds.
- Boolean options must be parsed as booleans; do not interpret arbitrary text as true.
When a value is invalid, print one warning that identifies the key and the fallback value. Avoid a long stream of errors. If the entire configuration file cannot be parsed, keep the last known-good settings or load defaults only after clearly reporting the failure. The reload command should return a failure message when the file is not usable.
Include comments in config.yml describing what each option does and its allowed range. The comments should explain that particle quality affects both network traffic and client rendering. They should also explain that the impact is not a real explosion and that the ability never damages entities or blocks.
37. VISUAL CONSISTENCY AND PRESENTATION REVIEW
The effect should look intentional from several viewing angles. Test it from close range, medium range, and the maximum supported target range. Make sure the shockwave is not hidden entirely inside the ground and that the meteor trail does not begin below the terrain surface.
On flat ground, the ring should appear close to horizontal. On a wall or ceiling, either orient the ring relative to the hit face or document that the effect is designed primarily for floor impacts. Do not calculate an unstable direction vector if the ray trace provides an invalid or near-zero vector. Use a safe fallback orientation.
The meteor trail should visually converge toward the impact point. Do not make it look as though particles are moving away from the target. The flash should be brief rather than a persistent bright screen-covering cloud. The shockwave should expand smoothly and not jump from a tiny radius to the maximum radius in one tick. The afterglow should fade through fewer particles over time.
Do not use too many particle types at once. A restrained palette of electric sparks, smoke, ash, and a short flash will generally read more clearly than a dozen unrelated particle types. Keep the default effect polished but not blinding. Add configuration options for low, medium, and high density rather than requiring the server owner to edit many individual counts.
The item itself must remain recognizable as a vanilla Trident. Do not attempt to fake a new model through invisible entities, custom fonts, or external textures. The user specifically does not want a custom resource pack. The custom name, enchantment glint, lore, held aura, and activation particles provide the presentation.
38. ACCESSIBILITY AND SERVER-FRIENDLY DEFAULTS
The visual sequence should not make it difficult for nearby players to see their surroundings for an extended period. Use a short flash and avoid filling the whole screen with large smoke clouds. Keep the effect readable without excessive brightness or sound volume.
Offer a configuration switch for sounds. Some servers may prefer a silent visual showcase. Offer a configuration switch for the held aura separately from the meteor activation. The meteor ability should have a cooldown and a global concurrency cap. These settings allow the server owner to fit the plugin to a lobby, event world, or small SMP without changing source code.
The default settings should be conservative. A plugin should not assume that every server has a powerful CPU or that every player uses a high-end computer. The server owner can deliberately select HIGH quality after testing. LOW quality should still make the effect recognizable and complete.
If the server is under heavy load, do not try to “catch up” by emitting all missed particle steps in one tick. Skip overdue cosmetic frames or stop the sequence gracefully. Visual timing is less important than server stability. Do not let a delayed scheduler create a sudden burst of thousands of particles.
39. PRIVACY AND DATA STORAGE
This plugin does not need personal data, online account information, external services, databases, web requests, or telemetry. Do not add any of those systems. Do not contact an external API when a player receives or uses the item.
For cooldowns, use in-memory data keyed by the player's UUID and remove it when it is no longer needed. Do not save player histories or activation logs to disk by default. If diagnostic logging is added, record aggregate technical information only and do not store unnecessary player data.
The plugin should not require a web dashboard, external account, resource-pack host, or remote configuration service. Everything required should be inside the plugin JAR and its local config.yml.
40. RELEASE AND VERSIONING
Give the plugin a clear version number and update it when the implementation changes. Use a consistent plugin name in plugin.yml, the startup log, and the README. Do not label an untested development build as stable or production-tested.
If you provide more than one JAR, clearly label which one targets Paper 26.3. Do not provide several ambiguous files such as final.jar, final2.jar, and newest-final.jar without explaining which is correct. The server owner should receive one recommended JAR for the stated target.
If the build is intended for a specific Paper build rather than all Paper 26.3 builds, write that exact limitation in the README. If it uses only stable Paper API methods expected to work across the target release, state that as a compatibility expectation, not as a proven test result unless tested.
Before final delivery, calculate a checksum if convenient and include it in the delivery notes. This is optional, but it can help confirm that the JAR downloaded by the server owner is the same file that was built. Do not invent a checksum.
41. FINAL REMINDER ABOUT THE VIDEO REFERENCE
The video URL is included so the developer can inspect the original visual inspiration when access is available. Do not claim to have watched the entire video unless the video was genuinely played or reliable captions were reviewed. If the available page only shows a title and description, say that those are the only details verified.
This plugin's approved behavior is defined by this brief, not by guesses about what the video might contain. The requested meteor appearance is a harmless particle spectacle. If the video contains combat or destructive behavior, do not recreate that behavior in this implementation. Keep the final plugin decorative and non-combat.
END OF ADDITIONAL TECHNICAL REQUIREMENTS
Kodari AI
KodariTue at 6:10 pm 9
ThunderGodTrident
Adds a single decorative, non-combat custom Trident named THUNDER GOD TRIDENT to a Paper server. The item features a custom display name, visible Efficiency V and Blast Protection IV enchantments, an unbreakable flag, and PersistentDataContainer identity. Right-clicking while holding the item in the main hand triggers a bounded, cosmetic meteor-style particle spectacle at a looked-at block, featuring a charge, descending trail, flash, expanding shockwave ring, crater illusion, and afterglow using only vanilla particles and sounds. The plugin includes commands to give the item and reload configuration, OP-default permissions, configurable cooldowns, ranges, particle quality, and a held-item aura. It never damages entities, modifies blocks, creates explosions, or spawns hostile entities.

Paper’s published documentation lists Java 25 for 26.1+, and its repository lists 26.3 API builds. I couldn’t view the video footage, so I’ll use the written brief for the visuals.

  1. Paper version: 26.3 targeted; not verified on a server. The source pins an alpha API build.

  2. Java version: 25, according to Paper’s published requirements.

  3. Build result: Not run.

  4. JAR filename: None produced yet.

  5. Source archive: None produced; source files are in the project.

  6. Config: src/main/resources/config.yml

  7. Resource pack required: No.

  8. Live test server available: No.

  9. Checks performed: Reviewed Paper’s published API versions and Java requirements.

  10. Not performed: Compilation, JAR inspection, gameplay and multiplayer tests. The video footage was not accessible.

  11. Known limitations: Compatibility and enchantment behavior remain unverified. Void deletion and external item-clearing plugins are not prevented. See README.md for details.

  12. Installation: Compile in Kodari, download the JAR, place it in the server’s plugins folder, and restart. Use /godtrident give <player> and /godtrident reload.

Please share your server’s startup log, including its Paper build and Java version, so the exact target can be checked.

ezz_123_ezz
📎 1 file 7,696 chars
📄
ThunderGodTrident-2.0.0-Upgrade-Prompt.txt
txt 129 lines
▶
THUNDER GOD TRIDENT 2.0.0 — COMPLETE UPGRADE PROMPT

You are modifying the existing Paper plugin:
ThunderGodTrident-1.0.0.jar

IMPORTANT: Inspect the supplied JAR before changing anything. Its plugin.yml identifies:
- Plugin name: ThunderGodTrident
- Current version: 1.0.0
- Main class: com.kodari.thunder.ThunderPlugin
- API version: 26.3
- Command: /godtrident
- Permissions: godtrident.give and godtrident.reload

The current config.yml describes the item as cosmetic and says right-click creates a meteor-style spectacle. It has a 40-block solid-block target range, max-active-sequences setting, and the message:
"The showcase is busy; try again shortly."

This is the core issue: the current item/ability is a decorative showcase, not a normal throwable Minecraft trident. Replace or redesign that behavior so the item can actually be thrown.

MAIN REQUIREMENTS

1. REAL TRIDENT THROWING
- The Thunder God Trident must be a genuinely throwable trident in Paper 26.3.
- Use the correct Bukkit/Paper trident projectile and item mechanics for the target server version. Do not fake a throw with particles or a cosmetic animation.
- Right-click should launch the trident projectile in the direction the player is looking, using normal Minecraft trident behavior.
- The player must be able to aim and throw in ANY direction: up, down, forward, backward, and diagonally, wherever the player is looking.
- Do not require the player to look at a solid block or entity before throwing.
- Remove the old 40-block target-selection restriction from the throwing mechanic.
- Remove the showcase busy lock / max-active-sequences restriction from normal throwing. Multiple players must be able to throw at the same time, and a player must be able to throw again whenever normal trident mechanics permit.
- Do not show "The showcase is busy; try again shortly" when a player throws the trident.
- Preserve normal projectile travel, collision, hit detection, pickup/return behavior, and server-side handling as appropriate for a real trident.
- Prevent duplicate projectiles from one right-click and prevent accidental double activation.
- Ensure the projectile is recognized as the special Thunder God Trident so its custom behavior and item return work correctly.
- Do not make it a cosmetic-only item.

2. ALL VANILLA TRIDENT ENCHANTMENTS
Support the full set of vanilla enchantments that can apply to a trident in the target Minecraft version, not just Blast Protection. In particular:
- Loyalty
- Channeling
- Riptide
- Impaling
- Unbreaking
- Mending
- Curse of Vanishing

Important:
- These are trident enchantments. Do not substitute armor enchantments such as Blast Protection.
- Preserve normal vanilla compatibility rules between mutually exclusive enchantments (for example, Loyalty/Channeling versus Riptide) unless the server's actual version explicitly supports otherwise.
- Enchantments must function, not merely appear as lore text.
- Preserve enchantment levels and allow legitimate vanilla enchantment-table/anvil/command workflows where appropriate.
- Do not hard-code only one enchantment.
- If a custom item marker is used, ensure it survives normal item operations and projectile launch/return.

3. CUSTOM ITEM IDENTITY
- Keep the item name: §b§lTHUNDER GOD TRIDENT
- Keep a polished lore description, but update it to describe a real throwable weapon/relic rather than a decorative visual-only item.
- Use a persistent data container (PDC) marker or another robust namespaced identifier to identify the special item. Do not rely only on display name or lore.
- Keep the marker through legitimate enchantment and item updates.
- Do not accidentally treat every normal trident on the server as a Thunder God Trident.

4. VISUAL EFFECTS — OPTIONAL AND SAFE
- Retain or improve the existing thunder/meteor visual effects only if they do not interfere with real projectile throwing.
- Visual effects must be cosmetic: no block destruction, no unwanted explosions, no fire spread, and no terrain damage.
- Do not delay, cancel, or block the actual projectile launch while a visual sequence is running.
- Effects must be configurable and lightweight.

5. COMMANDS AND PERMISSIONS
Keep existing command structure:
- /godtrident give 
- /godtrident reload

Keep permissions:
- godtrident.give (default op)
- godtrident.reload (default op)

The give command must give the correctly marked, genuinely throwable Thunder God Trident.
Keep useful tab completion, usage messages, player-not-found handling, and permission checks.
Do not remove existing commands without a clear reason.

6. CONFIGURATION
Update config.yml with clear options for:
- Real throwing enabled/disabled
- Projectile speed or launch multiplier, with safe sensible defaults
- Loyalty/Channeling/Riptide/Impaling and other vanilla trident enchantment behavior
- Optional cosmetic effects enabled/disabled
- Sound and particle settings
- Item durability and return behavior
- Disabled worlds, if retained

Do not retain obsolete showcase settings as requirements for throwing. If old config keys are kept for backward compatibility, document that they no longer block or limit real throwing.

7. COMPATIBILITY AND CODE QUALITY
- Target Paper 26.3 and the correct API/build for the actual server.
- Use the correct Java version required by Paper 26.3.
- Avoid NMS, reflection, packet hacks, and unsupported internals unless absolutely unavoidable; prefer the supported Paper/Bukkit API.
- Do not invent API methods. Verify methods against the actual target API.
- Handle plugin enable/disable and reload cleanly.
- Avoid memory leaks, repeating tasks left running, duplicate listeners, and projectile/item duplication exploits.
- Keep the code organized and add clear comments for non-obvious mechanics.

8. TESTING — REQUIRED BEFORE DELIVERY
Test and report each item honestly:
- The special trident launches when right-clicked.
- It launches in the exact direction the player is looking, including upward and downward aim.
- It is not restricted to looking at a block within 40 blocks.
- The busy showcase message no longer prevents throwing.
- Two or more players can throw at the same time.
- Loyalty works and returns the trident correctly.
- Channeling works under vanilla conditions.
- Riptide works under vanilla conditions and respects its water/rain requirements.
- Impaling works.
- Unbreaking and Mending work.
- Curse of Vanishing behaves according to vanilla rules.
- Normal tridents are not accidentally converted into special tridents.
- No blocks are destroyed and no unwanted terrain damage occurs.
- Commands and permissions work.
- No console errors occur during launch, hit, return, reload, or shutdown.

DELIVERABLES
- Provide the complete updated source project.
- Build and provide the final installable ThunderGodTrident-2.0.0.jar.
- Include the updated config.yml and plugin.yml in the project/JAR.
- Include exact build instructions and installation instructions.
- Include a concise test report stating what was actually tested.
- If you cannot compile or test against Paper 26.3, say so clearly. Do not claim a successful build or test without doing it.
- Do not deliver only pseudocode, a plan, or a partial patch. Finish the implementation and provide the actual artifact if the environment supports it.

FINAL PRIORITY
The most important requirement is that this is a REAL THROWABLE TRIDENT. The player must be able to aim anywhere and throw it like a normal Minecraft trident. The current decorative showcase and its "busy" restriction must not block that core mechanic. All applicable vanilla trident enchantments must work properly; Blast Protection must not be the only enchantment.
Kodari AI
KodariTue at 6:42 pm 9

The supplied attachment contains the upgrade instructions, but no JAR is present to inspect. I’ll update the existing source to use vanilla trident throwing and enchantment mechanics, with optional effects that don’t block launch.

Updated the source to use vanilla trident throwing instead of the target-block showcase. New items support configurable vanilla trident enchantments; optional impact sparks do not block throws.

Not verified: Compilation, JAR contents, and live Paper 26.3 gameplay tests were not run. No JAR was present to inspect, and none was produced during this response. Paper 26.3 and Java 25 remain the intended target.

Before upgrading, back up and replace the old config as described in README.md. Existing items retain their old enchantments and unbreakable state; give a fresh item for the new defaults. Vanilla Channeling can cause real lightning, damage, and fire.

To produce the JAR, click Compile in Kodari’s top bar, then Compile in the window. When it succeeds, click Download. Put the JAR in your server’s plugins folder and restart; use /godtrident give <player> to issue an item.

ezz_123_ezz

ThunderGodTrident V3 — Advanced Ability Update

Upgrade the existing ThunderGodTrident V2 plugin to V3.

Target: Paper 26.3.

IMPORTANT: Keep all existing V2 functionality, including real trident throwing in any direction and all previous enchantment/throwing fixes. Do not remove or replace existing features.

  1. Custom Enchantments

The Thunder God Trident must have these enchantments:

  • Blast Protection IV
  • Mending 255
  • Unbreaking 255
  • Sharpness X (10)
  • Channeling
  • Impaling VII (7)

Additional requirements:

  • Keep the item completely unbreakable.
  • Still display Unbreaking 255 in its enchantment list.
  • Display all enchantments correctly in the item tooltip.
  • Ensure custom enchantment levels are applied safely and do not cause errors.
  • Do not replace the requested enchantments with different ones.
  1. Abilities While Holding the Trident

While a player holds the Thunder God Trident in their main hand, give them:

  • Speed II
  • Strength II
  • Fire Resistance I

Requirements:

  • Effects should remain active while holding the special trident.
  • Remove the effects when the player switches away from it.
  • Avoid repeatedly resetting potion-effect timers unnecessarily.
  • Do not give these effects to players holding normal tridents.
  1. Trident Landing — Nether Impact Effect

When the trident is thrown and eventually lands or drops at a location, activate a special impact effect.

The impact effect should include:

  • Explosive TNT minecart-style visual effect, equivalent to 1–2 TNT minecarts.
  • Fire effects around the impact location.
  • Netherrack blocks appearing around the impact area.
  • Make the impact look like a powerful Nether-themed strike.

IMPORTANT:

  • These effects must happen when the thrown trident lands, not immediately when it is launched.
  • Do not trigger the landing effect multiple times for the same projectile.
  • Prevent permanent terrain destruction and unwanted fire spread.
  • Make the visual effects configurable.
  1. Lightning Following the Thrown Trident

While the special trident is travelling through the air:

  • Lightning effects should follow the trident's moving location.
  • Keep the lightning visually connected to its movement.
  • Do not wait until the trident lands to activate this travelling effect.

When the trident lands:

  • Summon 20 lightning strikes around the impact location at approximately the same time.
  • Make the effect visually impressive.
  • Prevent repeated activation for the same landing event.
  1. Evoker Fang Following Effect

While the trident travels through the air:

  • Evoker Fang effects should follow its movement.
  • Make them visually connected to the thrown trident.

When the trident lands:

  • Create a larger Evoker Fang impact effect.
  • Use an approximately 5×5-block impact area.
  • Use an Evoker Fang visual size/scale target of approximately 2–2.5, if supported.
  • The effect should appear around the landing location.

Do not create permanent or excessive entity buildup.

  1. Sword-Like Trident Hit Cooldown

Add a proper melee hit cooldown for the special trident.

Requirements:

  • Use Minecraft's normal weapon attack cooldown behavior as closely as possible.
  • Prevent players from rapidly hitting others without cooldown.
  • Make the cooldown configurable.
  • Do not break normal trident throwing.
  • Do not accidentally apply the cooldown to unrelated weapons.
  1. Player Hit Ability — 50% Chance

When the Thunder God Trident hits another player, there should be a 50% chance to activate the special hit ability.

On a successful activation:

Potion effects on the victim:

  • Blindness I — 3 seconds.
  • Weakness I — 3 seconds.

Visual effects:

  • TNT minecart-style explosion effect.
  • Lightning bolt at the victim.
  • Evoker Fang attack around the victim.

Requirements:

  • Only activate this ability when the special trident hits another player.
  • Exactly 50% activation probability.
  • Do not activate it when hitting mobs or blocks.
  • Avoid repeated activation from one projectile.
  • Make the effects configurable.
  1. Configuration

Add settings for:

  • Holding effects.
  • Impact explosion effects.
  • Fire and Netherrack effects.
  • Travelling lightning.
  • 20 lightning strikes on landing.
  • Travelling Evoker Fangs.
  • Landing Evoker Fang area and size.
  • Player-hit 50% ability chance.
  • Blindness and Weakness duration.
  • Trident melee cooldown.
  • Particle and sound effects.
  • Disabled worlds.

Use sensible defaults matching the requested abilities.

  1. Performance and Compatibility
  • Target Paper 26.3.
  • Preserve the existing V2 commands and permissions.
  • Avoid NMS, reflection and unsupported internal APIs.
  • Prevent duplicate scheduled tasks.
  • Prevent entity buildup and memory leaks.
  • Ensure multiple players can use the trident simultaneously.
  • Keep all effects server-side.
  • Do not cause unnecessary lag.
  1. Testing

Test all of the following:

  1. Real trident throwing works in every direction.
  2. All requested enchantments appear correctly.
  3. Holding effects activate and deactivate correctly.
  4. Nether impact effect triggers only after landing.
  5. Lightning follows the moving trident.
  6. Exactly 20 landing lightning effects are triggered.
  7. Evoker Fang effects follow the trident.
  8. Landing Fang effect uses the requested 5×5 area.
  9. Melee cooldown works.
  10. Player-hit ability activates with a 50% chance.
  11. Blindness and Weakness last 3 seconds.
  12. TNT, lightning and Fang effects work on successful player hits.
  13. Normal tridents remain unaffected.
  14. No unwanted permanent terrain damage.
  15. Multiple players can use the plugin simultaneously.
  16. No console errors.
  1. Deliverables

Provide:

  • ThunderGodTrident-3.0.0.jar
  • Complete updated source code.
  • Updated plugin.yml.
  • Updated config.yml.
  • Installation instructions.
  • Actual testing report.

Do not provide a fake JAR, incomplete source, or claim testing was successful if it was not performed.

FINAL INSTRUCTION:

This must be a complete V3 upgrade of the existing V2 plugin, not a new unrelated plugin. Preserve all V2 features and add every V3 ability listed above. The real throwable trident mechanic is the highest priority.

Kodari AI
KodariTue at 7:15 pm 12

I’ll preserve vanilla throwing and the V2 commands, then add V3’s item, held effects, projectile effects, and combat abilities with bounded settings. Real fang attacks and the requested enchantments can affect gameplay; the landing visuals will avoid changing terrain.

Updated the V2 source to V3, preserving vanilla throwing and the existing commands. New items have the requested enchantment defaults, and the holding, projectile, landing, melee, and player-hit abilities are configurable.

Limitations: Fang scaling is not supported by the checked Paper API, so fangs use vanilla size. Travel lightning uses sparks; impact lightning is visual-only. Explosion, fire, and netherrack effects use particles rather than terrain changes. Real fangs can damage entities, and vanilla Channeling can cause fire.

Testing: Compilation and all live-server tests were not run. No JAR was produced in this response. Tooltip display, projectile behavior, and Paper 26.3 compatibility remain unverified.

To install, back up and replace the old plugin config with the V3 default, compile and download the JAR in Kodari, place it in the server’s plugins folder, and restart. Give a fresh item with /godtrident give <player>; existing items are not rewritten.

ezz_123_ezz

ThunderGodTrident V4 — Elemental Impact Update

Upgrade ThunderGodTrident V3 to V4.

Preserve EVERY V2 and V3 feature. Do not remove, weaken or replace existing mechanics.

Add the following landing abilities:

  1. MASSIVE TNT IMPACT
  • Create multiple synchronized TNT explosion visuals when the trident lands.
  • Give the impression of several TNT minecarts exploding together.
  • Use visual effects without destroying permanent terrain.
  1. RESPAWN ANCHOR EXPLOSION
  • Show one Respawn Anchor charging animation.
  • Simulate exactly four Glowstone charges.
  • Trigger a dramatic Respawn Anchor-style explosion visual.
  • Do not consume actual player Glowstone or Respawn Anchors.
  1. LAVA IMPACT
  • Create a 3×3 lava-themed impact zone.
  • Use lava particles and magma effects.
  • Make the effect temporary and restore the original environment.
  1. FIRE EFFECT
  • Surround the landing location with fire particles.
  • Add suitable Nether-themed sounds.
  1. THUNDERSTORM IMPACT
  • Create a dramatic thunderstorm atmosphere.
  • Add lightning visuals around the impact point.
  • Synchronize with the existing V3 lightning effects without accidentally duplicating them.
  1. MAGMA ERUPTION
  • Add magma particles erupting outward from the impact location.
  • Add a dramatic Nether-themed eruption animation.
  1. WATER SHOCKWAVE
  • Create a water splash shockwave spreading outward.
  • Add bubble and splash particles.
  • Keep the effect visual and temporary.

TECHNICAL REQUIREMENTS:

  • All new effects activate when the thrown trident lands.
  • Keep all existing V3 travelling effects working.
  • Avoid duplicate impact triggers.
  • No permanent terrain destruction.
  • No permanent lava, fire or water placement.
  • No real Respawn Anchor consumption.
  • No excessive entity spawning.
  • Add configurable particle counts, effect radius, duration, sounds and enable/disable options.
  • Ensure multiple players can use the trident simultaneously.
  • Maintain Paper 26.3 compatibility.

DELIVERABLE:

ThunderGodTrident-4.0.0.jar, updated source code, config.yml, plugin.yml and an honest testing report.

This is an addition to V3, not a replacement. All existing throwing, enchantments, holding effects, combat effects and cooldown mechanics must remain functional.

Kodari AI
KodariTue at 7:36 pm 5

I’ll add the elemental sequence at V3’s existing guarded landing point, leaving the throw and combat handlers intact. The anchor, lava, fire, and water will be particle-and-sound simulations; the storm will reuse V3’s landing lightning rather than add a second set of bolts.

Updated the V3 source to 4.0.0, adding configurable elemental landing effects without changing the throwing or combat handlers. The new effects use particles and sounds rather than placing blocks or creating explosions; storm ambience reuses V3’s landing lightning.

Testing: Compilation and live Paper 26.3 tests were not performed. No JAR was produced, so ThunderGodTrident-4.0.0.jar and gameplay behavior remain unverified.

To install, use Kodari’s Compile button, download the successful build, and place it in the server’s plugins folder. Back up your existing config before replacing it with the updated default and reapplying your preferences.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
README.md
settings.gradle
Code
12 835
src/main/java/com/kodari/thunder/ThunderPlugin.java
package com.kodari.thunder;

import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSender;
import org.bukkit.command.TabCompleter;
import org.bukkit.entity.Player;
import org.bukkit.plugin.java.JavaPlugin;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
import java.util.Locale;

public final class ThunderPlugin extends JavaPlugin implements CommandExecutor, TabCompleter {
    private Settings settings;
    private TridentItems items;
    private TridentListener listener;
    private AdvancedAbilities abilities;

    @Override public void onEnable() {
        if (!Bukkit.getMinecraftVersion().equals("26.3")) {
            getLogger().severe("Unsupported Minecraft version; this development build targets Paper 26.3 only.");
            getServer().getPluginManager().disablePlugin(this);
            return;
        }
        saveDefaultConfig();
        if (!loadSettings()) { getServer().getPluginManager().disablePlugin(this); return; }
        items = new TridentItems(this);
        abilities = new AdvancedAbilities(this, items);
        getServer().getPluginManager().registerEvents(abilities, this);
        listener = new TridentListener(this, items);
        getServer().getPluginManager().registerEvents(listener, this);
        var command = getCommand("godtrident");
        if (command == null) throw new IllegalStateException("Missing godtrident command");
        command.setExecutor(this);
        command.setTabCompleter(this);
        for (Player player : Bukkit.getOnlinePlayers()) { listener.refreshLater(player); abilities.refreshLater(player); }
    }
    @Override public void onDisable() {
        Bukkit.getScheduler().cancelTasks(this);
        if (listener != null) listener.clear();
        if (abilities != null) abilities.clear();
    }
    public Settings settings() { return settings; }
    private boolean loadSettings() {
        try {
            Settings next = new Settings(new File(getDataFolder(), "config.yml"));
            next.text("item.name", "&b&lTHUNDER GOD TRIDENT");
            for (String key : List.of("prefix", "no-target", "cooldown", "busy", "disabled", "given", "reloaded", "reload-failed", "no-permission", "player-not-found", "usage")) next.text("messages." + key, "");
            settings = next;
            return true;
        } catch (Exception ex) {
            getLogger().severe("Cannot load config.yml; previous settings retained: " + ex.getMessage());
            return false;
        }
    }
    public static String color(String text) { return ChatColor.translateAlternateColorCodes('&', text); }
    public void message(CommandSender sender, String key, String fallback) { sender.sendMessage(color(settings.text("messages.prefix", "&8[&bThunder Trident&8] ") + settings.text("messages." + key, fallback))); }
    @Override public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {
        if (args.length == 1 && args[0].equalsIgnoreCase("reload")) {
            if (!sender.hasPermission("godtrident.reload")) { message(sender, "no-permission", "&cNo permission."); return true; }
            if (loadSettings()) {
                listener.resetAura();
                abilities.reload();
                for (Player p : Bukkit.getOnlinePlayers()) { listener.refreshLater(p); abilities.refreshLater(p); }
                message(sender, "reloaded", "&aConfiguration reloaded.");
            } else message(sender, "reload-failed", "&cInvalid configuration.");
            return true;
        }
        if (args.length == 2 && args[0].equalsIgnoreCase("give")) {
            if (!sender.hasPermission("godtrident.give")) { message(sender, "no-permission", "&cNo permission."); return true; }
            Player target = Bukkit.getPlayerExact(args[1]);
            if (target == null || sender instanceof Player p && !p.canSee(target)) { message(sender, "player-not-found", "&cPlayer not found."); return true; }
            try {
                var leftovers = target.getInventory().addItem(items.create(settings));
                for (var stack : leftovers.values()) target.getWorld().dropItemNaturally(target.getLocation(), stack);
                sender.sendMessage(color(settings.text("messages.prefix", "") + settings.text("messages.given", "&aGiven to %player%.").replace("%player%", target.getName())));
                listener.refreshLater(target);
                abilities.refreshLater(target);
            } catch (IllegalStateException ex) { getLogger().severe("Cannot create trident: " + ex.getMessage()); sender.sendMessage(color("&cUnable to create the trident; check the console.")); }
            return true;
        }
        message(sender, "usage", "&e/godtrident give <player> or reload");
        return true;
    }
    @Override public List<String> onTabComplete(CommandSender sender, Command command, String alias, String[] args) {
        List<String> options = new ArrayList<>();
        if (args.length == 1) {
            if (sender.hasPermission("godtrident.give")) options.add("give");
            if (sender.hasPermission("godtrident.reload")) options.add("reload");
        } else if (args.length == 2 && args[0].equalsIgnoreCase("give") && sender.hasPermission("godtrident.give")) {
            for (Player p : Bukkit.getOnlinePlayers()) if (!(sender instanceof Player viewer) || viewer.canSee(p)) options.add(p.getName());
        }
        String prefix = args[args.length - 1].toLowerCase(Locale.ROOT);
        return options.stream().filter(s -> s.toLowerCase(Locale.ROOT).startsWith(prefix)).toList();
    }
}