light21zox

Create a complete, production-ready Minecraft Java Edition plugin named LiStar SMP.

The plugin is a 4-Life Star SMP with a personal random Ability Star system, animated Life Stars, cinematic spawn/revive animations, and Shift + Right Click ability activation.

---

  1. LIFE STAR SYSTEM
  • Every new player starts with 4 Life Stars (★).
  • Life Stars are displayed above the player's hotbar using the Action Bar.
  • Do NOT use hearts ("❤" / "♥") for the life display.
  • Use Star symbols such as:

"★★★★" "★★★" "★★" "★"

  • The Life Star display must be animated.

Example:

"★★★☆ | Lives: 3"

The exact display format must be configurable in "config.yml".

Kill System

When Player A kills Player B:

  • Player A receives +1 Life Star.
  • Player B loses -1 Life Star.
  • The transferred Life Star comes from the victim and is given to the killer.
  • Update both players' Action Bars immediately.

When a player gains a Star:

"★★★☆ → ★★★✦ → ★★★★"

When a player loses a Star:

"★★★★ → ★★★✦ → ★★★☆"

Add:

  • Star animation
  • Particles
  • Sound
  • Optional title/message

The animation should last approximately 1–2 seconds and be configurable.

---

  1. FOUR-LIFE ELIMINATION SYSTEM

Every player has 4 starting Life Stars.

When a player reaches 0 Life Stars:

  • Automatically switch the player to Spectator Mode.
  • Display a cinematic elimination animation.
  • Show:

NO LIFE STARS LEFT

YOU ARE ELIMINATED

The player must not be able to return to Survival normally.

Admins can revive the player using:

"/listar revive <player>"

---

  1. ANIMATED LIFE STAR DISPLAY

The Life Star counter must always appear above the hotbar.

Example:

"★★★★"

or

"★★★☆"

Do NOT use heart symbols.

The display should have smooth animation.

When gaining a Star:

"★★★☆ → ★★★✦ → ★★★★"

When losing a Star:

"★★★★ → ★★★✦ → ★★★☆"

Features:

  • Smooth animation
  • Star particles
  • Sound effects
  • Configurable animation speed
  • Configurable Star symbols
  • Configurable messages
  • Configurable sounds
  • Configurable particles

---

  1. PERSONAL ABILITY STAR

Every player receives one unique personal Ability Star.

IMPORTANT:

The Ability Star is completely separate from Life Stars.

The Ability Star:

  • Belongs only to its assigned player.
  • Cannot be transferred to another player.
  • Cannot be traded.
  • Cannot be dropped.
  • Cannot be put into chests.
  • Cannot be stored in containers.
  • Cannot be duplicated.
  • Must not transfer after death.
  • Must not become another player's Ability Star.
  • Must be permanently linked to the player's UUID.

Use PersistentDataContainer / custom NBT to identify the Ability Star.

Do NOT identify it only using the item display name.

---

  1. RANDOM ABILITY SYSTEM

When a completely new player joins the SMP for the first time:

  • Randomly assign them ONE Ability Star.
  • The ability must be randomly selected.
  • Any player can receive any ability.
  • Multiple players may receive the same ability unless configured otherwise.
  • Once assigned, the ability must be permanently saved.
  • Relogging must NOT change the ability.
  • Server restart must NOT change the ability.

Create at least 6 different abilities.

Example abilities:

  1. Speed Star

Temporarily gives the player increased movement speed.

  1. Strength Star

Temporarily gives increased attack damage.

  1. Regeneration Star

Gives temporary regeneration.

  1. Teleport Star

Allows the player to teleport a configurable short distance.

  1. Fire Star

Provides fire-related powers and/or fire resistance.

  1. Shadow Star

Provides temporary invisibility/stealth effects.

Make the ability system modular so more abilities can easily be added later.

---

  1. ABILITY ACTIVATION

ALL abilities must be activated using:

SHIFT + RIGHT CLICK

Requirements:

  • Player must hold their personal Ability Star in their main hand.
  • Player must press Shift + Right Click.
  • Normal Right Click must NOT activate the ability.
  • Shift + Right Click should detect the Ability Star and activate the assigned ability.
  • If the item belongs to another player, it must NOT activate.
  • Cooldown must be checked before activation.
  • Ability cannot be spammed during cooldown.

When activated:

  • Play ability-specific sound.
  • Create particles.
  • Show title/action bar.
  • Activate the ability.
  • Start cooldown.
  • Show remaining cooldown when appropriate.

Example:

"SHIFT + RIGHT CLICK"

↓

"🔥 FIRE STAR"

↓

"ABILITY ACTIVATED!"

↓

"Cooldown: 60s"

All cooldowns and durations must be configurable.

---

  1. ABILITY REVEAL / SKY ANIMATION

When a player receives their Ability Star for the first time:

  1. Teleport the player to a configurable location high in the sky.
  2. Temporarily prevent movement.
  3. Start a cinematic ability-reveal animation.
  4. Use particles, sounds and effects.
  5. Reveal the random Ability Star.
  6. Give the player their personal Ability Star.
  7. Display a title.

Example:

YOUR STAR

🔥 FIRE STAR

Then:

ABILITY UNLOCKED!

After the animation:

  • Safely return the player to the normal SMP spawn/location.
  • Unlock movement.
  • Start normal gameplay.

The sky/reveal location must be configurable.

---

  1. ABILITY STAR ITEM

Create a custom item:

★ Ability Star

The item should have:

  • Custom name
  • Custom lore
  • Enchantment glow
  • Custom Model Data support
  • Unique PersistentDataContainer ID
  • Owner UUID
  • Ability type

Example lore:

"★ Ability Star"

"Ability: Fire Star"

"Owner: <player>"

"This Star belongs only to you."

The item must be protected against:

  • Dropping
  • Trading
  • Container storage
  • Duplication
  • Item cloning
  • Death drops
  • Hopper movement
  • Inventory exploits

---

  1. PLAYER DEATH SYSTEM

When a player dies:

  • Remove exactly 1 Life Star.
  • If there is a valid player killer, transfer that Star to the killer.
  • The victim's personal Ability Star remains assigned to them.
  • The Ability Star must NOT drop.
  • The Ability Star must NOT transfer to the killer.

If the death is caused by:

  • Fall damage
  • Lava
  • Void
  • Fire
  • Mob
  • Other environmental damage

make this behavior configurable.

For environmental deaths, the server owner should be able to configure whether a Life Star is removed.

Only a valid player killer should receive the transferred Life Star.

---

  1. REVIVE SYSTEM

Admin command:

"/listar revive <player>"

When a player is revived:

Do NOT instantly put them into Survival.

Instead create a cinematic Revive Animation.

Steps:

  1. Teleport the player to a configurable Revive Location.
  2. Temporarily lock movement.
  3. Protect them from damage.
  4. Create magical/star particles around them.
  5. Play cinematic sounds.
  6. Slowly reveal their Life Stars.
  7. Show a Star animation.

Example:

"☆ → ✦ → ★ → ★★ → ★★★ → ★★★★"

Then show:

★ REVIVED ★

YOUR JOURNEY CONTINUES!

After the animation:

  • Put player into Survival Mode.
  • Unlock movement.
  • Restore configured number of Life Stars.
  • Update the Action Bar.
  • Allow normal gameplay.

The entire animation must be configurable.

---

  1. FIRST SPAWN ANIMATION

When a player joins the SMP for the FIRST TIME:

Do not instantly spawn them normally.

Play a cinematic spawn animation.

Steps:

  1. Teleport player to a configured spawn/reveal location.
  2. Temporarily lock movement.
  3. Create particles around the player.
  4. Play sounds.
  5. Show stars/energy effects.
  6. Display:

WELCOME TO LiSTAR SMP

YOUR JOURNEY BEGINS...

Then reveal their Life Stars.

If Ability Star assignment happens during first spawn, play the Ability Reveal animation.

After the animation:

  • Teleport player to normal SMP spawn.
  • Unlock movement.
  • Start normal gameplay.

The first-spawn status must be saved in the database so the animation does NOT play every time the player relogs.

---

  1. BAN / NEW PLAYER SYSTEM

If a player is banned or permanently removed:

  • Their personal Ability Star must NOT be transferred.
  • Their Ability Star must NOT automatically be given to another player.
  • A completely new player must receive a new randomly generated Ability Star.
  • Never duplicate an old player's Ability Star.

Use UUID-based data storage.

---

  1. COMMANDS

Create:

"/listar"

"/listar help"

"/listar lives <player>"

"/listar setlives <player> <amount>"

"/listar addlife <player>"

"/listar removelife <player>"

"/listar revive <player>"

"/listar ability <player>"

"/listar setability <player> <ability>"

"/listar randomize <player>"

"/listar menu"

"/listar reload"

Admin commands must require:

"listar.admin"

---

  1. GUI

Create an optional:

"/listar menu"

GUI showing:

  • Player's current Life Stars
  • Ability Star
  • Current Ability
  • Ability description
  • Cooldown
  • Ability status

Use a clean SMP-style Minecraft GUI.

---

  1. CONFIG.YML

Make everything configurable.

Include:

  • Starting Life Stars
  • Maximum Life Stars
  • Star symbols
  • Star animation
  • Action Bar format
  • Ability types
  • Ability cooldowns
  • Ability duration
  • Ability reveal location
  • Spawn location
  • Revive location
  • Spawn animation duration
  • Revive animation duration
  • Sounds
  • Particles
  • Titles
  • Messages
  • Environmental death rules
  • Duplicate ability rules
  • Spectator settings
  • Ability Star name
  • Ability Star lore
  • Custom Model Data

---

  1. DATA STORAGE

Use reliable persistent storage.

Prefer SQLite for production.

Store:

  • Player UUID
  • Player name
  • Life Stars
  • Ability type
  • Ability Star ownership
  • First-spawn status
  • Cooldowns
  • Required player data

Always use UUID as the primary identifier, NOT player name.

Data must survive:

  • Relog
  • Server restart
  • Server crash
  • Death

---

  1. EXPLOIT PROTECTION

The plugin must prevent:

  • Life Star duplication
  • Ability Star duplication
  • Ability Star trading
  • Ability Star dropping
  • Chest storage
  • Hopper storage
  • Death duplication
  • Item cloning
  • Inventory exploits
  • Relog exploits
  • Restart exploits
  • Ability duplication
  • Random ability reassignment on relog

The plugin should be carefully event-safe.

---

  1. VISUAL QUALITY

Make the plugin feel like a professional high-quality SMP plugin.

Use:

  • Animated Stars
  • Particles
  • Sounds
  • Titles
  • Subtitles
  • Action Bar
  • Ability-specific effects
  • Cinematic spawn animation
  • Cinematic revive animation
  • Cinematic ability reveal

All animations should be smooth and optimized.

Avoid excessive particle spawning that can cause server lag.

---

  1. CODE STRUCTURE

Write clean, modular and maintainable code.

Separate systems into classes/modules such as:

  • LifeManager
  • AbilityManager
  • AbilityStarManager
  • PlayerDataManager
  • DeathListener
  • KillListener
  • SpawnManager
  • ReviveManager
  • AnimationManager
  • CommandManager
  • GUIManager
  • ConfigManager

Make it easy to add new abilities in the future.

---

  1. FINAL REQUIREMENTS

Provide the complete working plugin including:

  • Full source code
  • plugin.yml
  • config.yml
  • SQLite database system
  • Life Star system
  • Animated Life Star display
  • Kill/Death Life Star transfer
  • 0-Life Spectator system
  • Personal Ability Star
  • 6 random abilities
  • Shift + Right Click activation
  • Ability cooldown system
  • Sky Ability Reveal animation
  • First Spawn animation
  • Revive animation
  • Admin commands
  • GUI
  • Permissions
  • Exploit protection
  • README
  • Installation instructions

The final result should be production-ready, optimized, bug-resistant, and easy to expand with more Star abilities later.

IMPORTANT:

The Life Star system uses ★ Stars, NOT hearts.

Every Ability Star power is activated using SHIFT + RIGHT CLICK.

The Ability Star is personal and permanently bound to its owner.

Kodari AI
KodariSep 9 at 11:23 am 4
LiStarSMP
LiStar SMP is a 4-Life Star survival Minecraft plugin with a personal random Ability Star system. Players start with 4 animated Life Stars displayed above the hotbar, gaining and losing them through PvP kills. Each player receives one unique, permanently-bound Ability Star with a randomly assigned power from 6 modular abilities (Speed, Strength, Regeneration, Teleport, Fire, Shadow), activated via Shift+Right Click with configurable cooldowns. Features cinematic first-spawn, ability-reveal sky, and revive animations, a 0-Life Spectator elimination system, admin commands, SQLite persistence, and a GUI menu. Includes comprehensive exploit protection against item duplication, trading, and storage exploits.
  1. Create the Gradle project, plugin metadata, configuration, README, and SQLite manifest.

  2. Add the modular player-data, life-star, animation, ability, and personal-item systems.

  3. Add spawn/revive/death listeners, command handling, GUI, and exploit-protection listeners.

  4. Wire every service in the main plugin class with permissions and lifecycle persistence.

Created the complete LiStar SMP plugin project from scratch.

Included:

  • Gradle build configuration targeting Paper 1.20.6 and Java 21

  • SQLite UUID-based player persistence

  • Configurable Life Star system with animated Action Bars

  • Kill/death Life Star transfer

  • Environmental death configuration

  • Elimination and Spectator mode handling

  • Six modular abilities:

    • Speed

    • Strength

    • Regeneration

    • Teleport

    • Fire

    • Shadow

  • Shift + Right Click activation

  • Persistent cooldowns

  • UUID-bound Ability Stars using PersistentDataContainer

  • Ability Star exploit protection for:

    • Dropping

    • Container storage

    • Hopper movement

    • Death drops

    • Creative cloning

    • Duplication

  • First-spawn cinematic animation

  • Ability reveal animation

  • Admin revive animation

  • /listar command suite

  • /listar menu GUI

  • Permissions and plugin metadata

  • Fully configurable messages, titles, sounds, particles, locations, symbols, abilities, and animations

  • README installation and usage instructions

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
manifest.kod
README.md
settings.gradle
Code
31 2,022
src/main/java/com/kodari/listar/LiStarPlugin.java
package com.kodari.listar;

import com.kodari.listar.ability.AbilityManager;
import com.kodari.listar.ability.AbilityStarManager;
import com.kodari.listar.animation.AnimationLockListener;
import com.kodari.listar.animation.AnimationManager;
import com.kodari.listar.command.CommandManager;
import com.kodari.listar.data.PlayerDataManager;
import com.kodari.listar.gui.GUIManager;
import com.kodari.listar.life.LifeManager;
import com.kodari.listar.revive.ReviveManager;
import com.kodari.listar.spawn.SpawnManager;
import com.kodari.listar.storage.DatabaseManager;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

public class LiStarPlugin extends JavaPlugin {
    private DatabaseManager databaseManager;
    private PlayerDataManager playerDataManager;
    private AnimationManager animationManager;
    private AbilityManager abilityManager;
    private AbilityStarManager abilityStarManager;
    private LifeManager lifeManager;
    private ReviveManager reviveManager;
    private GUIManager guiManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        databaseManager = new DatabaseManager(this);
        databaseManager.open();
        playerDataManager = new PlayerDataManager(this, databaseManager);
        animationManager = new AnimationManager(this);
        abilityManager = new AbilityManager(this, playerDataManager);
        abilityStarManager = new AbilityStarManager(this, playerDataManager, abilityManager);
        abilityManager.setStarManager(abilityStarManager);
        lifeManager = new LifeManager(this, playerDataManager, animationManager);
        reviveManager = new ReviveManager(this, playerDataManager, lifeManager, animationManager);
        guiManager = new GUIManager(this, playerDataManager, lifeManager, abilityManager, abilityStarManager);

        SpawnManager spawnManager = new SpawnManager(this, playerDataManager, abilityManager, abilityStarManager, animationManager);
        Bukkit.getPluginManager().registerEvents(abilityStarManager, this);
        Bukkit.getPluginManager().registerEvents(abilityManager, this);
        Bukkit.getPluginManager().registerEvents(lifeManager, this);
        Bukkit.getPluginManager().registerEvents(new AnimationLockListener(animationManager), this);
        Bukkit.getPluginManager().registerEvents(spawnManager, this);
        Bukkit.getPluginManager().registerEvents(guiManager, this);

        CommandManager commandManager = new CommandManager(this, playerDataManager, lifeManager, abilityManager,
                abilityStarManager, reviveManager, guiManager);
        if (getCommand("listar") != null) {
            getCommand("listar").setExecutor(commandManager);
            getCommand("listar").setTabCompleter(commandManager);
        }
        lifeManager.startDisplayTask();
        getLogger().info("LiStar SMP enabled with " + abilityManager.ids().size() + " abilities.");
    }

    @Override
    public void onDisable() {
        if (lifeManager != null) {
            lifeManager.stopDisplayTask();
        }
        if (reviveManager != null) {
            reviveManager.cancelAll();
        }
        if (animationManager != null) {
            animationManager.cancelAll();
        }
        if (playerDataManager != null) {
            playerDataManager.saveAll();
        }
        if (databaseManager != null) {
            databaseManager.close();
        }
    }

    public PlayerDataManager getPlayerDataManager() {
        return playerDataManager;
    }

    public LifeManager getLifeManager() {
        return lifeManager;
    }

    public AbilityManager getAbilityManager() {
        return abilityManager;
    }
}