profitae

can you make a plugin Called StarSMP heres the idea: You can trigger the abilities of the Stars if u do /ability1 /ability2 and some stars dont have 2 abilities and add admin utilities like /starsmp start (gives everyone a random star) and /starsmp star give (playerusername) (which star) and a /starsmp give reroll (Basically a reroll is you get a new random star and ur old star gets removed for the new star that u js rerolled and make it fancy with the visuals when u reroll) (right click to use reroll) also remember to add a actionbar For the actual cooldowns and when they are ready, also remember to add sound effects when they use the abilities and when the ability is on cooldown and if they try using it make it so it says in chat (ability not ready yet) with an angry villager sound effect, also add a /trust and /untrust where if u trust a player the abilities do not damage the trusted player.

Movement star ability1 dash 10 blocks in any direction the player is looking, Cooldown: 25 seconds.

Passive, Permanent Speed 1 (make it loop so they dont just get it infinitely even when they reroll their gem)

Fire Star ability1 fireball, when a player uses this they shot the fireball where they look and on impact if it hits the ground it breaks about a circle of blocks and does about 4.5 hearts of damage (cooldown 1 minute and 25 seconds) ability2 Warped, makes a circle like a domain that lasts for 12 seconds and drains any water placed while the ability is active. (cooldown is 2 minutes and 55 seconds) Passive infinite fire resistance (make it loop so they dont just get it infinitely even when they reroll their gem)

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Legendary Stars

Dragon Star Ability1 dragon breath, shoot a dragon breath where the player is looking and every second it does 3 hearts of true damage and lasts for 8 seconds. (cooldown is 1 minute 15 seconds) Ability2 Dragon Sore, Sore up into the skies about 20 blocks above and get a fake mace that deals the dmg of a density 3 mace. When the ability is done clear the mace from the users inventory.

Passive, Infinite speed 1 (make it loop so they dont just get it infinitely even when they reroll their gem)

Warden Star ability1 Sonic Beam, Shoot a sonic beam that deals 5 hearts of true damage (cooldown is 2 minutes) ability2 upon use everyone in a circle around the user gets blindess 3 and slowness 5 for 6 seconds (unless their trusted.) (cooldown is 2mins) Passive, mobs dont target the user with warden star.

Debt Star Ability1 when the user uses ability1 there will be a circle around the player (people that are trusted do not get affected) where if a player is in the circle they have a 50% chance that if they eat it doesent work and if they wind charge or throw a potion it doesent work.

Ability2 when activated if the user hits a player it steals they're item that they're holding for a short period before it gives it back.

Kodari AI
KodariAug 6 at 7:41 pm 2
StarSMP
StarSMP is a Minecraft plugin that grants players unique star-based abilities triggered via /ability1 and /ability2 commands. Stars include Movement (dash and speed), Fire (fireball and water-draining domain), Dragon (breath attack and soar strike), Warden (sonic beam and debuff aura), and Debt (item sabotage and item theft). Admin utilities via /starsmp include starting a game to give random stars, assigning specific stars, and granting rerolls that visually swap stars on right-click. The plugin features actionbar cooldown displays, sound effects for ability use and failed attempts, chat warnings with angry villager sounds, and a /trust system preventing ability damage to trusted players. Passive effects loop correctly when stars are rerolled.
  1. Core plugin setup and persistent star/trust management.

  2. Ability execution, cooldown action bars, sounds, visuals, passives, and reroll handling.

  3. Event listeners for combat, projectiles, restrictions, mob targeting, and reroll items.

  4. Commands and resource/build files.

  1. Created the StarSMP plugin with Movement, Fire, Dragon, Warden, and Debt stars.

  2. Added /ability1, /ability2, /starsmp, /trust, and /untrust.

  3. Implemented cooldown action bars, ability sounds, cooldown failure feedback, passives, trusted-player protection, and persistent star assignments.

  4. Added /starsmp start, star assignment, reroll item distribution, right-click rerolls, reroll visuals, and temporary Dragon mace handling.

  5. Added event handling for fireballs, water-draining Warped domains, Warden mob targeting, Debt restrictions, item stealing, and combat effects.

profitae

so the legendary stars should not be able to be given when doing /star start. and rather from an admin, and also. can you add a custom mace called the Star Mace the abilities should be dash in any direction (not a tp) and add a /ritualmace to star the ritual of the mace, also when i do movement stars first ability i can tp into walls so fix that too.

Kodari AI
KodariAug 6 at 7:51 pm 2
  1. Exclude legendary stars from /starsmp start while keeping admin-only assignment.

  2. Add the Star Mace, /ritualmace, and its directional dash behavior.

  3. Prevent Movement Star dashes from entering walls.

Implementing the changes with the existing APIs: legendary filtering stays on all random rolls so legendary stars can only come from /starsmp star give; the Star Mace will be an admin-started ritual reward with a physics-based right-click dash and cooldown feedback.

  1. Legendary stars are now excluded from random assignment through /starsmp start and rerolls. Admins can still assign them with /starsmp star give <player> <star>.

  2. Added the custom Star Mace:

    • /ritualmace starts a visual 5-second ritual.

    • The mace is awarded when the ritual completes.

    • Right-clicking launches the player in the direction they are looking using velocity, not teleportation.

    • Added a 15-second cooldown with action-bar status and cooldown sound feedback.

  3. Fixed Movement Star’s dash:

    • It now checks each half-block along the dash path.

    • It stops safely before solid blocks.

    • It will no longer teleport the player into walls.

profitae

and also, rerolls also shouldnt be able to give legendary stars. And add a /starsmp admingui where an admin can click whatever gem they want, and a /starsmp cooldown username to remove an admins cooldowns. and also add 5 more casual gems and make the author Profitae

Kodari AI
KodariAug 6 at 7:52 pm 1
  1. Keep legendary stars out of rerolls and all non-admin random assignment.

  2. Add /starsmp admingui with clickable star selection for admins.

  3. Add /starsmp cooldown <username> to clear that player’s ability and mace cooldowns.

  4. Add five casual stars with abilities/passives and update author metadata to Profitae.

  1. Legendary stars and rerolls

    • Legendary stars were already excluded from random assignment and rerolls.

    • /starsmp star give <player> <star> remains the admin-only way to assign legendary stars.

  2. Admin GUI

    • Added /starsmp admingui.

    • Admins can click any star, including legendary stars, to give it to themselves.

    • Added all current stars to the GUI.

  3. Cooldown reset

    • Added /starsmp cooldown <username>.

    • Clears that player’s ability and Star Mace cooldowns.

  4. Five casual stars

    • Added Wind Star.

    • Added Ice Star.

    • Added Earth Star.

    • Added Shadow Star.

    • Added Ocean Star.

    • Each has two abilities and a passive effect.

  5. Author

    • Updated plugin.yml author to Profitae.

profitae

also, can u add a config file where i can choose how long a ability lasts what the cooldown is and how much damage the abilities does

Kodari AI
KodariAug 6 at 7:55 pm 1
  1. Add configurable duration, cooldown, and damage values for every ability.

  2. Route ability logic through the config while preserving current defaults and behavior.

  3. Add clear config entries and fallback handling for missing or invalid values.

  • Configured cooldowns now override the enum defaults for every star ability.

  • Added configurable active durations for timed abilities and configurable damage/healing values where applicable.

  • Added fallback values so existing behavior remains intact if entries are missing.

  • Fixed the ability-2 check so a configured cooldown: 0 means no cooldown instead of disabling the ability.Added configurable ability settings in config.yml.

You can now change for each ability:

  • cooldown — cooldown in seconds

  • duration — active duration in seconds

  • damage — damage in Minecraft damage points, where 2.0 = 1 heart

  • heal — healing amount where applicable

This applies to all current stars, including:

  • Movement

  • Fire

  • Wind

  • Ice

  • Earth

  • Shadow

  • Ocean

  • Dragon

  • Warden

  • Debt

Also added configurable Star Mace cooldown:

YAML
star-mace:
  cooldown: 15

Missing or invalid values safely fall back to the original defaults. Fixed the ability-two validation so configurable cooldown values do not accidentally disable abilities.

profitae

ive found a bug with the mace where when i do /ritualmace it spams the chat with the mace has been forged and spams my inventory with them

1 image attached
Kodari AI
KodariAug 6 at 7:57 pm 1

The ritual task can be started repeatedly for the same player, creating multiple timers that each forge a mace. I’m adding a per-player ritual lock and clearing it exactly when the ritual finishes or the player leaves.

Fixed the /ritualmace duplication bug.

  • A player can no longer start multiple mace rituals at once.

  • Repeated commands now show: Your Star Mace ritual is already in progress.

  • The ritual lock clears when the mace is forged.

  • The lock also clears if the player disconnects during the ritual, preventing a permanent lock.

profitae

also when a admin does do /ritualmace add a bossbar and with the bossbar add coordinates to the ritual and make it so the ritual takes 30 mins to make , also when doing /starsmp i cant even see options can u fix that

1 image attached
Kodari AI
KodariAug 6 at 8:00 pm 1
  1. Update /ritualmace to create a 30-minute ritual at the admin’s location with a progress bossbar and coordinates.

  2. Fix /starsmp help/options visibility and tab completion so available subcommands are shown reliably.

  • Added a 30-minute Star Mace ritual duration, configurable with:

    YAML
    star-mace:
      cooldown: 15
      ritual-duration: 1800
    
  • Added a progress bossbar showing:

    • Ritual coordinates

    • Remaining time

    • Progress toward completion

  • The ritual now stays at the location where /ritualmace was started.

  • The bossbar and ritual clean up when the mace is forged, the player disconnects, or the plugin shuts down.

  • Fixed /starsmp so its help options are visible without requiring admin permission.

  • Added tab completion for /starsmp, including players and star names.

  • Admin permission is still required for protected subcommands such as start, give, admingui, and cooldown.

profitae

also when i did /ritual mace i cant see the mace glowing (as an entity) and make it so it drops by the end of the 30 mins and also the timer doesent count down also when i use dragonstar and get the mace, the mace doesent get taken away even tho its already on cooldown (the ability should last 20 seconds and after the 20 seconds take the mace away)

1 image attached
Kodari AI
KodariAug 6 at 8:14 pm 2
  • Fixed the ritual timer to count down using real elapsed time, so it remains accurate over the full 30 minutes.

  • Added a glowing Star Mace item entity at the ritual coordinates while the ritual is active.

  • The glowing mace is protected from pickup during the ritual.

  • At the end of 30 minutes, the mace is dropped at the ritual location instead of being placed directly in the admin’s inventory.

  • The ritual bossbar now reaches 00:00 and cleans up correctly.

  • Changed Dragon Star’s mace ability duration to 20 seconds in config.yml.

  • Dragon’s temporary mace is removed automatically after those 20 seconds, even if its cooldown is still active.

profitae

when i use debt gem and use ability2 i dont get the item they are holding, so the item should go to my inventory when i use debt gem, also if a player has a mythical/legendary gem they cannot use a reroll to reroll it, also when a player does /starsmp star info they get the info of their own gem.

Kodari AI
KodariAug 6 at 8:15 pm 1
  1. Fix Debt Star ability 2 so the stolen held item is transferred to the user’s inventory.

  2. Block rerolls for players holding Mythical or Legendary stars.

  3. Make /starsmp star info display the executing player’s own star details.

  • Debt Star ability 2: the stolen held item now goes directly into the Debt player’s inventory; overflow items drop at their location.

  • Rerolls: players with Legendary stars can no longer use rerolls. The reroll is not consumed.

  • /starsmp star info: now shows the executing player’s own star, rarity, and ability cooldowns.

  • Added tab completion for /starsmp star info.

profitae

also if a player has a legendary star, they should get custom particles surrounding them. All differently, also make it impossible to store the dragon mace in a bundle or in a chest or they cannot drop it also with the star mace

Kodari AI
KodariAug 6 at 8:19 pm 2
  1. Add distinct custom particle effects around players holding each Legendary Star.

  2. Protect Dragon and Star Maces from bundling, container storage, and dropping.

The protections now cover normal inventory clicks, drags, hoppers, drops, and death drops. I’m also blocking hopper pickup of the forged mace so it cannot be moved into a chest automatically.- Added distinct legendary particle effects:

  • Dragon: rotating Dragon Breath particles

  • Warden: sculk soul particles

  • Debt: soul-fire particles

  • Effects appear around legendary-star players every second.

  • Protected both Dragon Maces and Star Maces from:

    • Being dropped

    • Being moved into chests

    • Hopper/container transfers

    • Inventory dragging or shift-clicking

    • Being placed in bundles

    • Dropping on death

  • Maces can still be picked up and used normally.

profitae

also the dragon mace should be auto-enchanted with wind burst 1 and density 2

Kodari AI
KodariAug 6 at 8:20 pm 1
  1. Update the Dragon Mace creation path to apply Wind Burst I and Density II automatically.

  2. Use XSeries enchantment lookups so the plugin remains cross-version compatible.

Dragon Maces are now automatically enchanted with:

  • Wind Burst I

  • Density II

The enchantments are applied when the Dragon Mace is created, using XSeries for cross-version compatibility.

profitae

also can u make it alot more visually and sound effect more appealling and add a /starsmp admintools in the admin tools add the mace and other admin stuff

Moonlight sword Add a cold quote and a auraful description to this sword make some of the words in the description scribbled out / like the invisible killer plugin

/ability1 should be anyone in the radius of 32 blocks of the user gets the other people around the user making it so they cant use their gems for 15 seconds and they get slowness 3 for 5 seconds and in the chat it says "Be Faithful Cause the Moonlight is out." (unless they are trusted)

Ability2 deals 2.5 hearts of damage while giving blindess and weakness and slowness 4 for 10 seconds. and in chat it says "Dont run away now, The Moon just started."

Kodari AI
KodariAug 6 at 8:32 pm 2
  1. Add /starsmp admintools with mace and other existing admin actions.

  2. Add the Moonlight Sword item, lore, ability behavior, cooldown/config integration, and trusted-player bypass.

  3. Improve the new ability’s particle, sound, and message feedback while preserving existing cross-version patterns.

  • Added /starsmp admintools with:

    • Star Mace

    • Dragon Mace

    • Moonlight Sword

    • Star selector GUI

    • Star reroll

    • Clear cooldowns

  • Added the Moonlight Sword with:

    • Cold, aura-themed lore

    • Scribbled/strikethrough text

    • Ability 1: silences nearby players’ gems for 15 seconds and applies Slowness III for 5 seconds within 32 blocks.

    • Ability 2: deals 2.5 hearts of damage and applies Blindness, Weakness, and Slowness IV for 10 seconds.

    • Trusted players are unaffected.

    • Added particles, sound effects, messages, and cooldowns.

  • Added configurable Moonlight settings in config.yml:

    YAML
    moonlight-sword:
      ability1:
        cooldown: 60
        duration: 15
        slow-duration: 5
      ability2:
        cooldown: 45
        duration: 10
        damage: 5.0
    
profitae

also the bossbar for the star smp mace ritual isnt moving and make it suspended up in the air 2.5X larger so people can see it.

Kodari AI
KodariAug 6 at 8:33 pm 1
  • Make the ritual bossbar update once per second with real elapsed time and show it to nearby players.

  • Replace the small dropped-item visual with a glowing suspended mace display scaled to 2.5×.

  • Keep the actual mace item hidden until the 30-minute ritual completes, then drop it normally.

  • Fixed the ritual bossbar countdown by updating it every second using the real remaining time.

  • Bossbar now displays to all players within 64 blocks of the ritual and removes viewers who leave the area.

  • Replaced the small dropped-item visual with a suspended glowing ItemDisplay.

  • The mace display is now raised 2.5 blocks and scaled to 2.5× its normal size.

  • The visible display disappears when the ritual finishes, and the real Star Mace drops at the ritual location.

profitae

also for the warden Star make a boss called "Guardian Of The Warden Star" and make it so the warden has Blue Glowing and every 15 seconds the wardens coordinates will get broadcasted in chat

Kodari AI
KodariAug 6 at 8:36 pm 2
  • Spawn one Warden guardian when a player is assigned the Warden Star, and remove it when their star changes.

  • Apply an actual blue scoreboard glow and the exact boss name.

  • Broadcast the guardian’s world and block coordinates every 15 seconds, including guardians restored when Warden-Star players join.

  • Added a Warden boss named Guardian Of The Warden Star.

  • The boss:

    • Spawns when a player receives the Warden Star.

    • Has a blue glowing outline.

    • Cannot despawn naturally.

    • Is removed when the player changes to another star or the plugin shuts down.

  • Every 15 seconds, the server broadcasts the guardian’s world and block coordinates:

    Plain Text
    [Warden Star] Guardian Of The Warden Star is at world 120, 64, -35
    
  • Warden guardians are also recreated when a Warden-Star player joins.

profitae

whoever gets the last hit on the warden star b4 dying gets the star and it says in chat "username has gotten the warden star, He will be glowing for 5 minutes." and make it so after the guy with warden star gets it no more warden guardians ever exist

Kodari AI
KodariAug 6 at 8:39 pm 1
  1. Track the Warden guardian’s killer and award the Warden Star on its death.

  2. Announce the winner, apply a five-minute glow, and transfer the star from the previous owner.

  3. Persist the claimed state and permanently prevent future Warden guardian spawns.

  • The last player to kill the Guardian Of The Warden Star now receives the Warden Star.

  • Broadcast message added: username has gotten the warden star, He will be glowing for 5 minutes.

  • The winner glows for five minutes.

  • The previous Warden Star owner loses their star.

  • The defeated guardian and any other Warden guardians are removed.

  • The Warden Star claim is saved, so no new Warden guardians will ever spawn after the first guardian is killed.

profitae

and make it so a admin has to use /wardenboss to start the event

Kodari AI
KodariAug 6 at 8:40 pm 1
  1. Gate all Warden guardian spawning behind the new admin-only /wardenboss command.

  2. Make /wardenboss spawn one Guardian at the admin’s location and announce the event.

  3. Preserve the last-hit award flow while preventing any guardian from respawning after the Warden Star is claimed.

  • Added admin-only /wardenboss.

  • Warden guardians no longer spawn automatically when a player receives or joins with the Warden Star.

  • /wardenboss starts the event at the admin’s location and broadcasts the coordinates.

  • Prevents starting another event while one is active or after the Warden Star has been claimed.

  • The guardian’s last hitter still receives the Warden Star, triggers the five-minute glow message, and permanently ends future guardian events.

profitae

also, when i get the star mace i cannot move it in my inventory

1 image attached
Kodari AI
KodariAug 6 at 8:47 pm 1

The inventory handler is cancelling every click involving a protected mace, including normal clicks inside the player inventory. I’ll narrow it so the mace can move between player-inventory slots while still blocking chest/container transfers, hoppers, bundles, drops, and death drops.

Fixed the Star Mace inventory restriction.

It can now be moved between the player’s own inventory slots, while it remains protected from:

  • Moving into chests or other containers

  • Shift-clicking into containers

  • Hopper transfers

  • Inventory dragging into containers

  • Bundles

  • Dropping

  • Death drops

profitae

add a circling star particles too the mace ritual, and make it spin around

Kodari AI
KodariAug 6 at 8:50 pm 1
  1. Add circling star particles around the suspended ritual mace.

  2. Animate the mace display with continuous rotation during the ritual.

  3. Keep the existing bossbar, display cleanup, and ritual completion behavior intact.

Added to the Star Mace ritual:

  • A continuous ring of circling End Rod star particles around the suspended mace.

  • The mace now spins smoothly in the air.

  • Effects stop automatically when the ritual ends or the display is removed.

  • Existing 2.5× size, elevation, bossbar, and completion behavior remain unchanged.

profitae

the timer of the mace rituals isnt even moving

1 image attached
Kodari AI
KodariAug 6 at 8:55 pm 1
  1. Replace the ritual’s wall-clock calculation with a server-tick countdown so the displayed seconds decrement reliably.

  2. Update the bossbar title and progress every second, including an explicit visible state.

  3. Preserve the existing ritual completion, mace animation, and cleanup behavior.

profitae

can you improve and make the particles of all the stars and custom items larger so people can see them? also make it so if the user has star mace it grants them pink glow and when someone uses the dragon star mace it gives them darkish purple glow

Kodari AI
KodariAug 6 at 8:58 pm 3
  1. Enlarge the particle effects used by all stars and custom items.

  2. Apply a pink glow while holding the Star Mace and a dark-purple glow while using the Dragon Star Mace.

  • Increased visibility of particle effects globally by doubling particle counts and adding a small spread.

  • Updated the Star Mace dash effect to use the larger particle system.

  • Players carrying a Star Mace now receive a pink/light-purple glow.

  • Players carrying a Dragon Star Mace now receive a dark-purple glow.

  • Dragon Mace glow takes priority if both mace types are present.

  • Existing five-minute Warden glow continues to work alongside the mace glow.

profitae

also when a player wiht a casual gem killed a guy with a legendary gem u should make it so their gem gets swapped and also make it so the mace can get dropped

Kodari AI
KodariAug 6 at 9:11 pm 2
  1. Implement gem swapping when a Casual Gem holder kills a Legendary Gem holder.

  2. Allow Star Maces to be dropped while preserving other item protections.

  • Casual Gem players who kill a Legendary Gem player now swap gems:

    • Killer receives the victim’s Legendary Gem.

    • Victim receives the killer’s Casual Gem.

    • Both players are notified and the change is saved.

  • Star Maces and Dragon Maces can now be dropped normally, including on death. Container, hopper, and inventory-transfer protections remain active.

profitae

when i drop the star mace it doesent drop

Kodari AI
KodariAug 6 at 10:24 pm 1

Fixed the Star Mace drop handler so dropping it is explicitly allowed. The existing container, hopper, and inventory-transfer protections remain unchanged.

profitae

also can u pptimize it since the server is lagging

Kodari AI
KodariAug 6 at 10:29 pm 2
  1. Trace the recurring particle, glow, ritual, and event tasks to identify the main server-load sources.

  2. Reduce unnecessary work while preserving the mace/star effects and gameplay behavior.

Optimized the main lag sources while preserving the effects:

  • Reduced the global player update task from every second to every 2 seconds.

  • Reduced legendary aura particle density.

  • Ritual mace animation now runs every 2 ticks instead of every tick.

  • Reduced ritual ring particles while keeping the spinning mace visible.

  • Optimized the Warped ability:

    • Runs every 2 ticks.

    • Uses fewer particles.

    • Scans for water every 10 ticks instead of every tick.

  • Optimized Dragon Soar and reroll particle tasks to run every 2 ticks.

  • Kept potion effects reliable by refreshing them before their duration expires.

profitae

also its spamming the console can u fix that and the server is refusing to start now

1 image attached
Kodari AI
KodariAug 6 at 10:30 pm 1
  1. Fix the startup/runtime crash caused by the scheduled task accessing StarManager.activeMaceEntities through an invalid private-field reference.

  2. Remove the repeated exception source so the console stops being spammed.

  3. Preserve the optimization changes and ritual animation behavior.

Fixed the crash causing the console spam.

The ritual scheduler was directly accessing private mace-tracking fields from its generated task class, causing the IllegalAccessError. I changed it to use safe public accessor methods instead.

This should stop the repeated exceptions and allow the server/plugin to run normally.

profitae

can uadd a /starsmp wardenbosstest to js spawn it

Kodari AI
KodariAug 6 at 10:33 pm 1
  1. Add /starsmp wardenbosstest to the existing StarSMP command.

  2. Spawn the configured/custom Warden boss at the sender’s location with permission and usage feedback.

  3. Register the subcommand without changing existing commands.

Added /starsmp wardenbosstest.

  • Requires starsmp.admin.

  • Can only be used by a player.

  • Spawns a glowing Warden named Warden Test Boss at the player’s location.

  • Added tab completion and updated command usage.

profitae

also can u save the data of whoever had the stars so when restarting i dont gotta

Kodari AI
KodariAug 6 at 10:36 pm 1
  1. Inspect the current star ownership model and save/load lifecycle.

  2. Persist each player’s star across shutdown/restart and restore it when they rejoin.

  3. Ensure updates from kills/swaps are saved immediately and cleanly.

The star map is currently written into config.yml; I’m moving ownership data to a dedicated stars.yml file, with migration from the existing config data, and restoring effects immediately when players rejoin.

Star ownership is now persistent across restarts.

  • Added a dedicated stars.yml data file for star ownership and trusted-player data.

  • Existing star data in config.yml is automatically loaded as a fallback and migrated into stars.yml when the plugin saves.

  • Star changes and Casual/Legendary swaps continue saving immediately.

  • All data is saved during plugin shutdown.

  • Passive effects and mace glow are restored when a player rejoins.

profitae

when i use an ability it says this acn u fix this

1 image attached
Kodari AI
KodariAug 6 at 10:52 pm 4
  • Fix the particle call that crashes block-based abilities because BLOCK particles require block-data payload.

  • Keep all other ability particle behavior unchanged.

Fixed the ability error. The Earth abilities were using the BLOCK particle without supplying block data, which caused the command to fail. Block particles now include valid block data, while all other particle effects remain unchanged.

profitae

can u make it so ice stars ability 1 freezes the opponent on hit for 3 seconds ?

Kodari AI
KodariAug 7 at 9:09 am 1
  • Update Ice Star ability 1 to apply a 3-second freeze on a successful hit.

  • Keep its existing damage and snowflake effects unchanged.

Ice Star ability 1 now freezes the hit opponent for 3 seconds:

  • Applies maximum Slowness for 60 ticks.

  • Applies Minecraft’s freeze effect for 60 ticks.

  • Keeps the existing damage and snowflake effects.

profitae

can you add a /wardentest where the admin can spawn as many warden bosses as they want? also can u add a flashy effect when an admin does /starsmp start in the middle of their screen with a sound effect to make it seem very cool

Kodari AI
KodariAug 7 at 9:18 am 1
  1. Add /wardentest as an admin-only command that spawns unlimited Warden test bosses.

  2. Add a centered title/subtitle and sound effect when an admin runs /starsmp start.

Added both features:

  • /wardentest

    • Admin-only via starsmp.admin

    • Spawns unlimited Warden test bosses at the admin’s location

    • Plays the Warden emergence sound

  • /starsmp start

    • Shows a centered title: STAR SMP The stars have chosen…

    • Plays a level-up sound for the admin who starts it

Both commands are registered in plugin.yml.

profitae

can u add a /assassinsevent start and stop like the assassins event from lifesteal world but with this whoever gets the most kills by the end when the admin does /assassinsevent stop gets a mythical Star Chestplate with Prot 5 unbreaking 3 Mending and it says in chat "A Player Among You Has gotten a Cosmic Protection, Beware as they will not die quickly" and add a /starchestplate command where if he uses it there will be a circle with particles and whoever is in the circles cannot use cobwebs and windcharges and it does 1.5 hearts passively

also make the chestplate netherite with resin brick and eye trim

Kodari AI
KodariAug 7 at 2:41 pm 3
  1. Add /assassinsevent start|stop with admin controls, kill tracking, and winner reward.

  2. Create the Mythical Star Chestplate item with Netherite, Resin Brick trim, and Eye trim.

  3. Add /starchestplate activation with a particle circle, restrictions, and passive damage.

  • Implement the event as a small service so kill tracking, rewards, active zones, and cleanup stay isolated.

  • Register the two commands and connect player deaths, joins, cobweb placement, and wind-charge launches to it.

  • Build the chestplate with XSeries enchantments and apply the Eye/Resin Brick trim through runtime-compatible Bukkit reflection, since the project compiles against 1.20.4 while Resin Brick is newer.

The event, kill tracking, field restrictions, and reward are in place. I’m correcting the trim setter to use Bukkit’s actual armor-trim API so the item receives the Eye pattern reliably on supported server versions.Implemented:

  • /assassinsevent start

    • Admin-only.

    • Resets and begins kill tracking.

    • Broadcasts the event announcement.

  • /assassinsevent stop

    • Admin-only.

    • Player with the most kills wins.

    • Awards the Mythical Star Chestplate.

    • Offline winners receive it when they rejoin.

    • Broadcasts:

      A Player Among You Has gotten a Cosmic Protection, Beware as they will not die quickly

  • Mythical Star Chestplate

    • Netherite chestplate.

    • Protection V.

    • Unbreaking III.

    • Mending.

    • Eye trim with Resin Brick material where supported.

    • Custom name, lore, and item identification.

  • /starchestplate

    • Requires the player to wear the special chestplate.

    • Creates a 6-block particle circle for 30 seconds.

    • Deals 1.5 hearts every second to nearby players.

    • Prevents players inside the circle from placing cobwebs.

    • Prevents wind charges from being launched inside the circle.

  • Added event cleanup on plugin shutdown and offline reward handling.

profitae

it looks like this when using

2 images attached
Kodari AI
KodariAug 7 at 3:13 pm 1
  • Change Ice Star ability 1 from an immediate raycast into a one-use “next hit” ability.

  • Apply the 3-second freeze and existing ability damage on the first valid melee hit.

  • Send the primed message once and prevent it from lingering or spamming.

Ice Star ability 1 now works as a next-hit ability:

  • Activating it displays WINTER’S WRATH PRIMED once.

  • Your next valid melee hit freezes the opponent for 3 seconds.

  • Applies the existing damage and snowflake effects.

  • The ability is consumed after one hit.

  • The primed state expires after 15 seconds to prevent it lingering indefinitely.

  • Removed the repeated activation-style behavior.

profitae

when the star mace ritual is over, it just spawns infinite maces. can u fix it so only 1 spawns, and also the plugin doesent work anymore

also can u make it so u can activate the abils by adding a command called /controls, in the /controls u can turn on offhand to use the abilities or /controls again to use command for the abilities, for the offhand version make it (offhand for the left ability aka ability 1) and shift offhand for ability 2

and also when the player kills the warden boss, they have glowing infinitely. can u fix that too?

btw plugin doesent work

Kodari AI
KodariAug 8 at 12:54 pm 3
  1. Fix the star-mace ritual so it produces exactly one mace and restore any broken plugin startup/runtime references.

  2. Add /controls to toggle ability activation between offhand and commands, with offhand/shift-offhand mappings.

  3. Remove permanent glowing from players who kill the Warden boss.

The startup failure is from a command-name mismatch: the Java code registers assassinsevent, while plugin.yml had assassinevent, causing getCommand(...) to return null during startup. I’ve corrected that and am aligning the build API with the 1.21-only Mace/Wind Charge features already in the code.

Fixed the plugin issues:

  • Star Mace ritual

    • Only one ritual can run at a time.

    • Only one Star Mace can ever be forged.

    • Completion is saved, so restarting the server will not allow another ritual.

    • The ritual still cleans up its display and boss bar correctly.

  • Plugin startup

    • Fixed the command mismatch between Java and plugin.yml: assassinevent → assassinsevent.

    • This was causing the plugin to fail while enabling.

  • /controls

    • Added /controls.

    • First use enables offhand controls:

      • Offhand right-click = Ability 1.

      • Sneak + offhand right-click = Ability 2.

    • Using /controls again switches back to /ability1 and /ability2.

    • The setting is saved across restarts.

  • Warden glowing

    • Players no longer receive permanent glowing after killing the Warden.

    • Existing glowing is also cleared by the regular glow update system.

profitae

also, when the assassin event starts, can u add an action bar saying this: username u have to kill, and how far away so for example if they are 500 blocks away it says 500m

Kodari AI
KodariAug 8 at 1:02 pm 1

Added the Assassin’s Event action bar.

While the event is active, each player now sees:

You have to kill: Username | 500m

  • Updates every second.

  • Shows the target’s live distance in meters.

  • Shows Different world if the target is elsewhere.

  • Assigns targets when the event starts.

  • Assigns a target to players who join during the event.

  • Clears the action bar when the event stops.

profitae

also the offhand then crouch offhand doesent work can u fix that? could you also add a star data so if i put a new version of the plugin it doesent reset players stars

Kodari AI
KodariAug 8 at 1:07 pm 1
  1. Fix offhand and crouch-offhand ability activation.

  2. Add persistent star data so plugin updates do not reset player stars.

  • Fixed offhand ability activation:

    • Offhand right-click activates Ability 1.

    • Sneaking while using the offhand activates Ability 2.

    • Added a short debounce to prevent double activations.

    • Added swap-hand fallback support so pressing the offhand key also works.

  • Made sure the persistent star data folder/file is created automatically.

  • Player stars continue saving in plugins/StarSMP/stars.yml whenever they are changed and when the server shuts down, so updating the plugin will not reset them. Keep that file when replacing the plugin.

profitae

ALSO ITS SPAMMING console, can u add star chestplate into the /starsmp give starchestplate user

1 image attached
Kodari AI
KodariAug 8 at 1:27 pm 1
  1. Fix the Assassin Event scheduled-task exception causing repeated console warnings.

  2. Add starchestplate to /starsmp give <item> <player> with the existing custom chestplate item.

Fixed both issues:

  • Console spam

    • Made the Assassin Event scheduled-task methods accessible to their Bukkit scheduler callbacks:

      • tickFields()

      • updateTargetActionBars()

    • This fixes the repeated IllegalAccessError shown in the console.

  • Star Chestplate admin give

    • Added:

      Plain Text
      /starsmp give starchestplate <player>
      
    • Gives the existing Netherite Mythical Star Chestplate with Protection V, Unbreaking III, Mending, and its trim/custom data.

    • Added tab completion and help text.

profitae

can u make it so if a user clicks tab this happens

If they have star chestplate their username in tab will become Red. If they have star mace their user becomes pink

Kodari AI
KodariAug 9 at 1:05 pm 2
  1. Extend the existing player-status refresh to color tab names red for the Star Chestplate and pink for the Star Mace.

  2. Refresh the tab color on joins and during the existing periodic inventory/status update, with chestplate taking priority if a player has both.

Updated tab list colors:

  • Wearing the Star Chestplate → username appears red.

  • Carrying the Star Mace → username appears pink.

  • Chestplate color takes priority if they have both.

  • Players without either item return to white.

  • Updates automatically through the existing status refresh and when joining.

profitae

also can u make it fx a circle make it so its a circle of particles and make it so debt gem has a 50% chance of making it so u cant use something not a 100% and make it so ocean 2nd abil fluxuates people to come near the ocean that used /ability2 so they like suck people in for 5 seconds

Kodari AI
KodariAug 10 at 5:28 pm 2
  1. Correct the Star Chestplate field so its particles render as a visible circle.

  2. Change the Death Gem restriction effect from guaranteed to a 50% chance.

  3. Make Ocean Star ability 2 pull nearby players toward the activating ocean player for 5 seconds.

  • Star Chestplate field: particles now render as a precise, stable circle without random spread.

  • Death/Debt Gem: restrictions now have a 50% chance instead of triggering every time.

  • Ocean ability 2: now pulls nearby untrusted players toward the Ocean Star user for 5 seconds, with water particle effects. The existing healing and regeneration effect remains.

profitae

can u make a gem called juggernaut star its passive is inf 12 hearts,

when i do /starsmp juggernautevent Theusernameiwanttobejuggernaut start and stop, can u add a bossbar for 1hr so if the juggernaut also the juggernaut gem ability 1 is Star Strengthening, what it does is give u strength 1.5 for 5 seconds, /ability2 is it gives u 20 hearts for 10 seconds.

also instead of /assassinsevent add it to be like /starsmp assassinsevent start/stop

also the dragon mace when i do /ability2 it doesent get taken away

Kodari AI
KodariAug 10 at 5:56 pm 3
  1. Add the Juggernaut Star, event command, one-hour boss bar, passive health, and both abilities.

  2. Move Assassin’s Event control under /starsmp assassinsevent start|stop.

  3. Fix Dragon Mace ability 2 so the mace is consumed correctly.

  1. Juggernaut Star/event: added.

  2. Assassin’s Event command: moving control into /starsmp assassinsevent start|stop.

  3. Dragon Mace: fixing Ability 2 consumption.

The main feature patch is in. I’m applying one lifecycle correction so the Juggernaut’s original star is restored even if the event timer ends while that player is offline or the server shuts down.Implemented:

  • Juggernaut Star

    • Added JUGGERNAUT star.

    • Passive maximum health is 12 hearts.

    • /ability1: Star Strengthening — Strength I for 5 seconds.

    • /ability2: increases health to 20 hearts for 10 seconds.

    • The temporary health is removed correctly afterward.

  • Juggernaut event

    Plain Text
    /starsmp juggernautevent <player> start
    /starsmp juggernautevent <player> stop
    
    • Runs for 1 hour.

    • Displays a boss bar to online players.

    • Restores the player’s previous star when the event ends or the server shuts down.

  • Assassin event

    Plain Text
    /starsmp assassinsevent start
    /starsmp assassinsevent stop
    
    • Moved the controls under /starsmp.

    • Removed the old standalone command.

  • Dragon Mace Ability 2

    • Existing temporary Dragon Maces are removed before creating a new one.

    • The temporary mace is removed when the ability duration ends.

profitae

also can u make it so when i do /starsmp start even if other people join late they still get a star? and can u make it so when i do /starsmp juggernaut username start/stop they get red glowing on loop until i do /starsmp juggernaut stop or until they die.

Kodari AI
KodariAug 11 at 7:34 pm 1
  1. Update /starsmp start so players joining an active event receive the event star automatically.

  2. Add Juggernaut event glow that reapplies red glow until the event is stopped or the Juggernaut dies.

Implemented:

  • Late joiners after /starsmp start

    • The plugin now remembers that the Star event has started.

    • Players joining afterward receive a random star if they do not already have one.

    • The setting persists through restarts.

  • Juggernaut red glowing

    • The active Juggernaut now has a red glowing effect refreshed continuously.

    • It stops when:

      • /starsmp juggernaut <username> stop is used, or

      • The Juggernaut dies.

    • Added the shorter command format while keeping juggernautevent compatible.

profitae

can you make a custom Dimension called the "star dimension" it can be used by using /starsmp dimension start/stop,

and by doing that it opens a portal (its always night time and mobs dont spawn there) and there make it terrain generation very good and add any dependencies if needed

Kodari AI
KodariAug 11 at 7:37 pm 2
  1. Inspect the existing command, plugin lifecycle, and world/event systems.

  2. Add /starsmp dimension start|stop with a persistent Star Dimension world, portal entry, night-only time, and mob prevention.

  3. Add a custom terrain generator without introducing unnecessary dependencies.

Implemented the Star Dimension.

  • Command:

    Plain Text
    /starsmp dimension start
    /starsmp dimension stop
    
  • Creates a persistent world named star_dimension.

  • Opens a custom obsidian portal near the main world spawn.

  • Entering the portal teleports players into the Star Dimension.

  • Entering a portal inside the Star Dimension returns players to the main world.

  • Always nighttime with daylight and weather cycles disabled.

  • Natural mob spawning is disabled, with an additional spawn-event safeguard.

  • Added custom terrain generation with hills, valleys, underground layers, beaches, and water.

  • Automatically closes the portal when stopped.

  • No external dependencies were needed.

profitae

can you add a /starsmp info whichstar then it says in chat what the abilities does! (exclude mythical/legendary gems)

Kodari AI
KodariAug 12 at 6:16 pm 1
  1. Add /starsmp info <star> for non-mythical/non-legendary stars.

  2. Display each eligible star’s passive and ability descriptions in chat, with validation and tab completion.

Added:

Plain Text
/starsmp info <star>

This displays the passive, Ability 1, and Ability 2 descriptions for casual stars:

  • Movement

  • Fire

  • Wind

  • Ice

  • Earth

  • Shadow

  • Ocean

Mythical and Legendary stars are excluded and show a message explaining that their information is unavailable. Added tab completion and updated the command usage text.

profitae

Legendary Awakening — A random Legendary Star awakens and causes a server-wide event

add a gem called the "star" mix every single gem into 1 (the abilities)

Kodari AI
KodariAug 12 at 6:20 pm 3
  1. Add the Star gem, combining the abilities/passives of every existing star.

  2. Add a server-wide Legendary Awakening event that randomly selects and announces a Legendary Star.

For the Star gem, I’m making both abilities draw from the full existing ability pool, while also combining the existing passive effects. It will be treated as a special Legendary gem, so it won’t be assigned by normal random rolls.

Implemented both features.

  • Added the Star Gem:

    • /starsmp star give <player> star

    • Combines all existing star passives.

    • Ability 1 activates every star’s first ability.

    • Ability 2 activates every star’s second ability.

    • Includes Juggernaut health effects and legendary effects.

  • Added Legendary Awakening:

    Plain Text
    /starsmp awakening start
    /starsmp awakening stop
    
    • Randomly selects an online player.

    • Gives them a random Legendary Star.

    • Announces the awakening server-wide.

    • Displays a one-hour boss bar.

    • Restores the player’s previous star when stopped, when the timer ends, or when the server shuts down.

    • Added tab completion and help text.

profitae

also add a /starsmp starawakening start/stop, make it like the ritual of the mace

Kodari AI
KodariAug 12 at 6:21 pm 2
  1. Find the existing Mace Ritual implementation and its event lifecycle.

  2. Add /starsmp starawakening start|stop using the same ritual flow, visuals, timing, and cleanup.

  3. Register the command and preserve existing awakening behavior.

The existing /starsmp awakening is an event, not a physical ritual. I’m extending that service so starawakening starts the same one-hour awakening at the command user’s location, with a floating Star Gem, beacon-style particles, location boss bar, and full cleanup on stop, completion, or shutdown.

Added:

Plain Text
/starsmp starawakening start
/starsmp starawakening stop

The Star Awakening now works like the Mace Ritual:

  • Starts at the command user’s location.

  • Displays a floating, rotating Nether Star.

  • Creates a particle circle and magical particle effects.

  • Plays beacon activation and completion sounds.

  • Shows a nearby boss bar with the ritual location and one-hour timer.

  • Awakens a random Legendary Star for a random online player.

  • Cleans up the display, particles, boss bar, effects, and restored star when stopped, completed, or the server shuts down.

  • Added tab completion and help text.

profitae

can u redo the /starsmp start announcement where it syas every gems name (excluding the legendarys of course) like gambling.

Kodari AI
KodariAug 12 at 6:22 pm 1
  • Change /starsmp start into a server-wide “gamble/roll” announcement.

  • List every non-legendary gem, including the existing casual gems only.

  • Keep the current random assignment and late-join behavior unchanged.

Updated /starsmp start to announce the event server-wide like a gamble:

  • Announces that Star SMP has started.

  • Lists every available non-legendary gem:

    • Movement

    • Fire

    • Wind

    • Ice

    • Earth

    • Shadow

    • Ocean

  • Excludes all Legendary/Mythical gems.

  • Keeps random gem assignment, titles, and sounds unchanged.

profitae

can u make the text in the middle start spinning of the names of the stars it could be?, and can u wait until its done then it gives u the star

1 image attached
Kodari AI
KodariAug 12 at 6:28 pm 1
  1. Make /starsmp start run a timed, visible star-name roulette instead of assigning immediately.

  2. Give each player their selected star only when the roulette finishes.

  3. Keep the existing non-legendary pool and late-join behavior, while showing the spinning result in the action bar/title area.

Updated /starsmp start:

  • Displays a spinning roulette of all non-legendary star names in the center of the screen.

  • The roulette runs for about 5 seconds.

  • Players receive their random star only after the roulette finishes.

  • Players who join while the roulette is running are included and receive a star when it ends.

  • Late joiners after the event has finished still receive a random star automatically.

  • Prevents the event from being started again while the roulette is active.

profitae

yo it doesent give me the gem

Kodari AI
KodariAug 12 at 6:32 pm 1
  1. Trace the roulette completion path and star assignment.

  2. Fix the missing gem grant without changing the roulette behavior.

  3. Ensure late joiners use the same completed-event assignment path.

Fixed the roulette reward issue. The selected star now gets applied immediately when the roll finishes, including its passive abilities. Late joiners also receive their star correctly after the event is complete.

profitae

add a /starsmp debug for any bugs

Kodari AI
KodariAug 12 at 6:50 pm 1

Added /starsmp debug.

It reports:

  • Plugin and /starsmp command registration status

  • Required service initialization

  • Number of available non-legendary stars

  • Every online player’s assigned star

  • Players missing a star

  • Star event and roulette status

  • Star Dimension world and portal status

Usage:

Plain Text
/starsmp debug

The command requires the existing starsmp.admin permission.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
19 3,704
src/main/java/com/kodari/starsmp/StarSMPPlugin.java
package com.kodari.starsmp;

import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.Location;
import org.bukkit.boss.BarColor;
import org.bukkit.boss.BarStyle;
import org.bukkit.boss.BossBar;
import org.bukkit.entity.ItemDisplay;
import org.bukkit.entity.Player;
import org.bukkit.entity.Warden;
import org.bukkit.plugin.java.JavaPlugin;
import org.bukkit.scoreboard.Scoreboard;
import org.bukkit.scoreboard.Team;
import org.bukkit.util.Transformation;
import org.joml.AxisAngle4f;
import org.joml.Vector3f;

import java.util.HashSet;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;
import java.util.UUID;

public final class StarSMPPlugin extends JavaPlugin {
    private StarManager starManager;
    private AbilityService abilityService;
    private AssassinEventService assassinEventService;
    private JuggernautEventService juggernautEventService;
    private LegendaryAwakeningService legendaryAwakeningService;
    private StarDimensionManager starDimensionManager;
    private final Set<UUID> activeMaceRituals = new HashSet<>();
    private final Map<UUID, BossBar> activeMaceBossBars = new HashMap<>();
    private final Map<UUID, ItemDisplay> activeMaceEntities = new HashMap<>();
    private final Map<UUID, Warden> wardenGuardians = new HashMap<>();
    private Team wardenGlowTeam;
    private Team starMaceGlowTeam;
    private Team dragonMaceGlowTeam;
    private Team juggernautGlowTeam;
    private boolean wardenStarClaimed;
    private boolean maceRitualRunning;
    private boolean maceRitualCompleted;
    private boolean starEventStarted;
    private boolean starEventRolling;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        wardenStarClaimed = getConfig().getBoolean("warden-star-claimed", false);
        maceRitualCompleted = getConfig().getBoolean("star-mace.ritual-completed", false);
        starEventStarted = getConfig().getBoolean("star-event-started", false);
        starManager = new StarManager(this);
        abilityService = new AbilityService(this, starManager);
        assassinEventService = new AssassinEventService(this, starManager);
        juggernautEventService = new JuggernautEventService(this, starManager);
        legendaryAwakeningService = new LegendaryAwakeningService(this, starManager);
        starDimensionManager = new StarDimensionManager(this);
        setupWardenGlowTeam();
        getServer().getPluginManager().registerEvents(new StarListener(this, starManager, abilityService, assassinEventService), this);
        getServer().getPluginManager().registerEvents(new StarDimensionListener(starDimensionManager), this);
        new org.bukkit.scheduler.BukkitRunnable() {
            @Override
            public void run() {
                broadcastWardenGuardianLocations();
            }
        }.runTaskTimer(this, 300L, 300L);

        StarCommand starCommand = new StarCommand(this, starManager, juggernautEventService, assassinEventService,
                legendaryAwakeningService);
        getCommand("ability1").setExecutor((sender, command, label, args) -> {
            if (sender instanceof org.bukkit.entity.Player player) {
                if (starManager.usesOffhandControls(player)) {
                    player.sendMessage(StarManager.color("&cOffhand controls are enabled. Use /controls to switch to commands."));
                } else {
                    abilityService.use(player, 1);
                }
            }
            return true;
        });
        getCommand("ability2").setExecutor((sender, command, label, args) -> {
            if (sender instanceof org.bukkit.entity.Player player) {
                if (starManager.usesOffhandControls(player)) {
                    player.sendMessage(StarManager.color("&cOffhand controls are enabled. Use /controls to switch to commands."));
                } else {
                    abilityService.use(player, 2);
                }
            }
            return true;
        });
        getCommand("starsmp").setExecutor(starCommand);
        getCommand("starsmp").setTabCompleter(starCommand);
        getCommand("starchestplate").setExecutor(new StarChestplateCommand(assassinEventService));
        getCommand("controls").setExecutor(new ControlsCommand(starManager));
        getCommand("trust").setExecutor(new TrustCommand(starManager, true));
        getCommand("untrust").setExecutor(new TrustCommand(starManager, false));
        getCommand("ritualmace").setExecutor((sender, command, label, args) -> {
            if (!sender.hasPermission("starsmp.admin")) {
                sender.sendMessage(StarManager.color("&cYou do not have permission."));
                return true;
            }
            if (!(sender instanceof org.bukkit.entity.Player player)) {
                sender.sendMessage("Only players can perform the ritual.");
                return true;
            }
            if (maceRitualCompleted) {
                player.sendMessage(StarManager.color("&cThe Star Mace ritual has already forged its one mace."));
                return true;
            }
            if (maceRitualRunning) {
                player.sendMessage(StarManager.color("&cA Star Mace ritual is already in progress."));
                return true;
            }
            if (!activeMaceRituals.add(player.getUniqueId())) {
                player.sendMessage(StarManager.color("&cYour Star Mace ritual is already in progress."));
                return true;
            }
            org.bukkit.inventory.ItemStack mace = starManager.createStarMace();
            if (mace == null) {
                activeMaceRituals.remove(player.getUniqueId());
                player.sendMessage(StarManager.color("&cThe Star Mace is unavailable on this server."));
                return true;
            }
            maceRitualRunning = true;
            Location ritualLocation = player.getLocation().clone();
            long ritualSeconds = Math.max(1L, getConfig().getLong("star-mace.ritual-duration", 1800L));
            long finishAt = System.currentTimeMillis() + ritualSeconds * 1000L;
            BossBar bossBar = Bukkit.createBossBar(ritualTitle(ritualLocation, ritualSeconds), BarColor.PURPLE, BarStyle.SOLID);
            bossBar.setProgress(1.0);
            activeMaceBossBars.put(player.getUniqueId(), bossBar);
            updateRitualViewers(bossBar, ritualLocation);
            ItemDisplay maceEntity = spawnRitualDisplay(ritualLocation, mace);
            activeMaceEntities.put(player.getUniqueId(), maceEntity);
            startRitualEffects(player.getUniqueId(), ritualLocation);
            player.sendMessage(StarManager.color("&d&lThe Star Mace ritual has begun!"));
            player.sendMessage(StarManager.color("&7Ritual coordinates: &f" + ritualLocation.getBlockX() + ", "
                    + ritualLocation.getBlockY() + ", " + ritualLocation.getBlockZ()));
            player.getWorld().playSound(player.getLocation(), starManager.sound("BLOCK_BEACON_ACTIVATE"), 1.0f, 0.8f);
            new org.bukkit.scheduler.BukkitRunnable() {
                @Override
                public void run() {
                    long remainingMillis = finishAt - System.currentTimeMillis();
                    if (remainingMillis <= 0L) {
                        if (!maceRitualRunning || !isActiveMaceRitual(player.getUniqueId())) {
                            cancel();
                            return;
                        }
                        maceRitualRunning = false;
                        maceRitualCompleted = true;
                        getConfig().set("star-mace.ritual-completed", true);
                        saveConfig();
                        ItemDisplay currentEntity = removeActiveMaceEntity(player.getUniqueId());
                        if (currentEntity != null && currentEntity.isValid()) currentEntity.remove();
                        ritualLocation.getWorld().dropItemNaturally(ritualLocation.clone().add(0, 1, 0), mace);
                        if (player.isOnline()) {
                            player.sendMessage(StarManager.color("&d&lThe Star Mace has been forged and dropped at the ritual coordinates."));
                            player.getWorld().playSound(ritualLocation, starManager.sound("ENTITY_PLAYER_LEVELUP"), 1.0f, 1.4f);
                        }
                        removeActiveMaceRitual(player.getUniqueId());
                        removeActiveMaceBossBar(player.getUniqueId());
                        bossBar.setProgress(0.0);
                        bossBar.setTitle(ritualTitle(ritualLocation, 0L));
                        bossBar.removeAll();
                        cancel();
                        return;
                    }
                    long remainingSeconds = (remainingMillis + 999L) / 1000L;
                    bossBar.setProgress(Math.max(0.0, Math.min(1.0, (double) remainingMillis / (ritualSeconds * 1000L))));
                    bossBar.setTitle(ritualTitle(ritualLocation, remainingSeconds));
                    updateRitualViewers(bossBar, ritualLocation);
                }
            }.runTaskTimer(this, 0L, 20L);
            return true;
        });
        getCommand("wardenboss").setExecutor((sender, command, label, args) -> {
            if (!sender.hasPermission("starsmp.admin")) {
                sender.sendMessage(StarManager.color("&cYou do not have permission."));
                return true;
            }
            if (!(sender instanceof org.bukkit.entity.Player player)) {
                sender.sendMessage("Only players can start the Warden Star event.");
                return true;
            }
            if (wardenStarClaimed) {
                player.sendMessage(StarManager.color("&cThe Warden Star has already been claimed."));
                return true;
            }
            if (!wardenGuardians.isEmpty()) {
                player.sendMessage(StarManager.color("&cThe Guardian Of The Warden Star event is already active."));
                return true;
            }
            Warden guardian = player.getWorld().spawn(player.getLocation(), Warden.class);
            guardian.setCustomName(StarManager.color("&3&lGuardian Of The Warden Star"));
            guardian.setCustomNameVisible(true);
            guardian.setGlowing(true);
            guardian.setRemoveWhenFarAway(false);
            wardenGlowTeam.addEntry(guardian.getUniqueId().toString());
            wardenGuardians.put(UUID.randomUUID(), guardian);
            Bukkit.broadcastMessage(StarManager.color("&3[Warden Star] &bThe Guardian Of The Warden Star has appeared at &f"
                    + player.getWorld().getName() + " " + player.getLocation().getBlockX() + ", "