voreixz
📎 1 file 10,086 chars
📄
pasted-code-1787108070832.txt
txt 442 lines
▶
Prism SMP Plugin — Full Specification
1. Overview

Create a Minecraft Paper plugin called Prism SMP.

The plugin is centered around a unique random rank system. When the SMP officially starts, the plugin randomly assigns ranks to the online players. The ranks range from Rank 1 to Rank 30.

The higher the rank, the better the player's perks.

There are no normal rank abilities. Ranks should primarily provide progression perks. The only custom abilities are attached to the exclusive Rank 1 King's Sword.

2. SMP Start Command
Command
/prism smpstart

This command starts the Prism SMP ranking ceremony.

The command should:

Check the number of online players.
Select up to 30 players.
Randomly assign unique ranks to the selected players.
Start the individual rank-rolling animation.
Reveal each player's final rank.
Apply their rank perks.
Give Rank 1 the exclusive King's Crown and King's Sword.
Player Limit

If exactly 30 players are online:

Rank 1 → Player
Rank 2 → Player
Rank 3 → Player
...
Rank 30 → Player

Every rank is unique.

If fewer than 30 players are online, only the available ranks are assigned.

Example:

15 players online


Rank 1 → Rank 15 assigned
Rank 16 → Rank 30 unused

Players outside the selected 30 are Unranked.

3. Individual Rank Rolling Animation

The ranking ceremony should use Minecraft titles displayed individually to each player.

Do NOT use a BossBar for the ranking animation.

Do NOT broadcast the same rank to everyone.

Every player should see their own personal rank roll.

For example, Player A might see:

YOUR RANK


RANK 7

while Player B simultaneously sees:

YOUR RANK


RANK 24

and Player C sees:

YOUR RANK


RANK 2
Rolling Effect

Before the final rank is revealed, the player's title rapidly changes through random ranks:

YOUR RANK
RANK 18
YOUR RANK
RANK 5
YOUR RANK
RANK 27
YOUR RANK
RANK 12
YOUR RANK
RANK 3

Then the animation stops on their actual assigned rank.

The animation should feel like an RNG/gacha-style rank roll.

The actual rank should be determined before the animation begins so that the visual rolling is only an animation and cannot accidentally assign duplicate ranks.

4. Rank System

There are 30 ranks:

Rank 1
Rank 2
Rank 3
Rank 4
Rank 5
Rank 6
Rank 7
Rank 8
Rank 9
Rank 10
Rank 11
Rank 12
Rank 13
Rank 14
Rank 15
Rank 16
Rank 17
Rank 18
Rank 19
Rank 20
Rank 21
Rank 22
Rank 23
Rank 24
Rank 25
Rank 26
Rank 27
Rank 28
Rank 29
Rank 30

Rank 1 is the strongest rank.

Rank 30 is the weakest ranked position.

The closer the player is to Rank 1, the stronger their default perks become.

5. Default Rank Perks

Every ranked player can receive the following four default perks.

XP Boost

The player's XP gain is increased depending on their rank.

Higher rank = larger XP boost.

Example:

Rank 30 → small XP boost
Rank 1  → largest XP boost

The exact percentages should be configurable.

The plugin should modify the amount of experience earned without requiring the player to use a special item or ability.

❤️ Heart Boost

Higher-ranked players receive additional maximum health.

However, there is a strict maximum:

20 hearts maximum.

The rank system must never allow a player's maximum health to exceed 20 hearts.

Example:

Rank 30 → small heart boost
Rank 20 → larger heart boost
Rank 10 → larger heart boost
Rank 1  → largest possible boost

If a player is already at the 20-heart cap, they should not receive additional health beyond the cap.

6. Extra Inventory

Higher-ranked players receive additional inventory storage.

Players can open their extra inventory with:

/extrainv

The extra inventory should be a custom inventory INVENTORY GUI.

Higher ranks receive more storage space.

Example:

Rank 30 → small extra inventory
Rank 20 → more slots
Rank 10 → more slots
Rank 1  → maximum extra inventory

The exact slot amounts should be configurable.

The extra inventory should safely save its contents when the player leaves and restore them when they return.

Players without the required rank should not be able to access inventory space they are not entitled to.

7. Effect Duration

Potion effects should last longer depending on the player's rank.

Higher rank = longer potion duration.

Scaling
Rank 30 receives only a slight increase.
The duration gradually increases as the rank gets higher.
Rank 1 can have potion effects last up to 2× as long.

The duration multiplier should be configurable.

Example:

Rank 30 → slight increase
Rank 20 → moderate increase
Rank 10 → significantly longer
Rank 1  → up to 2× duration

The system should work with normal Minecraft potion effects.

8. Rank Scaling

The four default perks should all scale with rank:

                    RANK 1
                      ▲
                      │
                BEST PERKS
                      │
                      │
                  RANK 15
                      │
                      │
                WEAKER PERKS
                      │
                      ▼
                   RANK 30

The plugin should make the scaling configurable so the server owner can modify the values without editing the plugin itself.

9. Rank 1 — The King

The player who receives Rank 1 becomes the King of the Prism SMP.

Rank 1 receives all normal rank perks plus two exclusive items:

King's Crown
King's Sword

These are not available to other ranks.

10. King's Crown

The King's Crown is an exclusive Rank 1 item.

The Crown provides permanent:

Speed I
Strength I
Fire Resistance I

These effects should remain active while the player is the current Rank 1.

The effects should not expire normally.

If the player loses Rank 1, the Crown and its benefits should be removed from them.

The Crown should have a unique custom name and appearance.

11. King's Sword

The King's Sword is an exclusive custom weapon available only to Rank 1.

It has two custom abilities.

The sword should have a unique name, lore, appearance, and preferably custom model/resource-pack support.

The abilities are combat-focused but should not be ordinary permanent passive buffs.

12. King's Sword — Ability 1: Combo Breaker

The first ability is a combo-based attack mechanic.

Combo Tracking

The sword tracks hits against individual players.

The combo is target-specific.

Example:

Player A → 2 hits
Player B → 1 hit

The hits against Player A do not transfer to Player B.

Combo

When the King hits the same player:

1st hit → 1 combo
2nd hit → 2 combo
3rd hit → Combo Breaker

On the third consecutive successful hit:

The attack deals 3× the normal sword damage.
A special yellow particle ring appears around the victim.
The particle effect lasts approximately 1 second.
After the effect, the particles disappear completely.
A custom sound effect can optionally play.
Combo Reset

The combo has a 4-second timeout.

If the King does not successfully hit that same target for 4 seconds:

Combo → 0

The combo should also reset if the King misses an attack.

The system should prevent players from building a combo by attacking different players.

13. King's Sword — Ability 2: King's Bind

The second ability is a crowd-control effect based around Slowness.

When the King's Sword successfully hits a player:

The target receives Slowness for 10 seconds.
A gray particle ring appears around the target.
The ring lasts approximately 1 second.
The particles then disappear.
The gray color represents the Slowness effect.

The ability should have a configurable cooldown to prevent the King from constantly reapplying Slowness.

Only the player actually hit by the King's Sword should receive the effect.

14. Ability Visual Identity

The two abilities should have different particle colors:

Combo Breaker

Yellow

Used for the powerful 3-hit combo attack.

King's Bind

Gray

Used for the Slowness effect.

Both abilities should use a similar circular ring particle effect, creating a recognizable King's Sword visual style.

The ring should be temporary and should not remain permanently around the player.

15. Rank 1 Transfer

If the server has a system that changes a player's rank, Rank 1 should always belong to only one player.

When a new player becomes Rank 1:

Previous King
Loses Rank 1.
Loses the King's Crown.
Loses the King's Sword.
Loses their Rank 1-exclusive benefits.
New King
Receives Rank 1.
Receives the King's Crown.
Receives the King's Sword.
Receives all Rank 1 perks.

There should never be two active King's Swords or two active Kings at the same time.

16. Important Design Rules

The plugin should follow these rules:

No normal rank abilities.
Rank perks are progression bonuses only.
Higher rank always means stronger default perks.
Maximum player health from the rank system is 20 hearts.
Extra inventory is accessed with /extrainv.
Rank 1 is the only rank with the King's Crown and King's Sword.
The King's Sword has exactly 2 custom abilities.
Rank rolling uses individual player titles.
Players must not see another player's rank during their personal roll unless the server later adds a separate ranking display.
Ranks are unique.
The rank animation must not create duplicate ranks.
Rank perks and extra inventory must persist through relogs and restarts.
All major values should be configurable.
17. Main Command
/prism smpstart

Starts the Prism SMP ranking ceremony.

Potential additional commands:

/prism rank 
/prism ranks
/prism reload
/prism reset
/extrainv

/extrainv should open the player's rank-based extra inventory.

18. Overall Concept

The main goal of Prism SMP is to make the beginning of the server feel like a massive RNG event.

30 players enter the server.

The Prism chooses their fate.

Every player sees their own screen rapidly rolling through ranks.

Then the rolls stop.

One player receives:

RANK 1 — THE KING

Another receives Rank 2.

Another receives Rank 3.

And so on until Rank 30.

The higher the rank, the better the player's XP Boost, Heart Boost, Extra Inventory, and Effect Duration.

But only Rank 1 receives the legendary King's Crown and King's Sword, making the highest rank the most desirable position on the entire SMP.
Kodari AI
KodariAug 19 at 2:57 am 3
PrismSMPRanks
Prism SMP is a Paper plugin that randomly assigns unique ranks (1-30) to online players when the SMP starts via /prism smpstart. Each player sees an individual gacha-style title animation rolling through ranks before their final rank is revealed. Higher ranks receive stronger progression perks including configurable XP boosts, heart boosts capped at 20 hearts, larger extra inventories accessed via /extrainv, and longer potion durations. Rank 1 becomes the King, receiving exclusive King's Crown with permanent Speed, Strength, and Fire Resistance, plus the King's Sword featuring two custom abilities: Combo Breaker (3x damage on third consecutive hit with yellow particle ring) and King's Bind (10-second Slowness with gray particle ring). All perks persist through relogs and restarts, with configurable values throughout.
  1. Create the Gradle/Paper project metadata and plugin configuration.

  2. Implement persistent rank data, configurable perk scaling, and ceremony assignment/animation.

  3. Implement the extra-inventory GUI with persistent storage and rank-based slot limits.

  4. Implement rank effects plus the Rank 1 crown and exactly two King’s Sword abilities.

  5. Add commands, listeners, lifecycle wiring, and reload/reset behavior.

Created the Prism SMP Paper plugin from scratch with:

  • Configurable random Rank 1–30 ceremony using individual title animations.

  • Persistent rank assignments and extra-inventory storage.

  • Rank-scaled XP, health, inventory slots, and potion duration.

  • Rank 1 King’s Crown and King’s Sword.

  • Combo Breaker and King’s Bind sword abilities with temporary particle rings.

  • /prism smpstart, /prism rank, /prism ranks, /prism reload, /prism reset.

  • /extrainv rank-based inventory GUI.

  • Join, quit, potion, experience, combat, and persistence handling.

  • Paper plugin metadata, Gradle setup, and configurable config.yml.

voreixz

Wheres the king sword and also when putting an arrow in ur extrainv u cant load a bow or a crossbow and also the king's crown can you not make the effects infinite only by like 1 second and repeateadly giving the effects and when getting rank 1 can the plugin automatically wear the king's crown with unbreaking 255 and protection 4 and curse of bidning plus curse of vanishing

Kodari AI
KodariAug 19 at 3:04 am 1
  1. Fix King’s Sword delivery and recovery for the Rank 1 player.

  2. Allow bows and crossbows to consume arrows from the extra inventory.

  3. Replace infinite crown effects with a one-second repeating refresh.

  4. Automatically equip a Rank 1 crown with the requested enchantments.

  • King’s Sword: Rank 1 now receives it automatically. It is placed in the main hand if empty, otherwise added to the inventory or dropped if completely full.

  • Extra-inventory arrows: Bows and crossbows now pull one compatible arrow from /extrainv when needed.

  • King’s Crown effects: Speed I, Strength I, and Fire Resistance I are reapplied every second with a 1-second duration instead of being infinite.

  • Automatic crown: Rank 1 automatically wears the crown. It now has:

    • Unbreaking 255

    • Protection IV

    • Curse of Binding

    • Curse of Vanishing

voreixz

also when hitting with the third strike can u make the combo reset and also when hitting with the third strike can you make a yellow gold particle effect like a really cool one and also can you display the rank on a players name example: [Unranked] example1

Kodari AI
KodariAug 19 at 3:19 am 2
  1. Update the third-hit combo to reset after activation and add a gold particle burst.

  2. Add each player’s rank prefix to their displayed name.

  1. Third-strike combo: The combo now resets after the third hit, preventing the next attack from continuing the previous combo.

  2. Third-strike particles: Added an expanding gold/yellow particle burst with multiple rings and sparks.

  3. Rank display: Players now show their rank in chat/display names and the tab list:

    • [Unranked] example1

    • [Rank 1] example1

voreixz

also when rolling each time can you make a sound and when getting your rank make a sound too

Kodari AI
KodariAug 19 at 3:20 am 1
  1. Add configurable ceremony sounds for each rolling display and the final rank result.

  2. Play the roll sound on every randomized rank step and the rank-awarded sound when the final rank is applied.

  • Added a sound for every rank roll.

  • Added a separate sound when the final rank is awarded.

  • Both sounds are configurable in config.yml:

    • ceremony.roll-sound

    • ceremony.rank-sound

voreixz

the particle in the king sword doesnt work

Kodari AI
KodariAug 19 at 3:30 am 1

Fixed the King’s Sword particle effect. It now:

  • Uses the gold/yellow dust effect when available.

  • Falls back to visible flame particles if dust particles aren’t supported.

  • Keeps the third-strike animation and spark effects active.

voreixz

the particle was pllaying but my video settings particles was off so please do the gold ring circle

Kodari AI
KodariAug 19 at 3:35 am 1
  • Make the third-strike effect a clear expanding horizontal gold ring.

  • Increase the ring’s smoothness and keep a brighter inner ring for visibility.

  • Note: Minecraft’s “Particles: Minimal/Off” client setting can still hide server-sent particles; the plugin cannot override that setting.

The King’s Sword third-strike effect is now a clearer gold ring circle:

  • Expands outward around the target.

  • Uses two bright gold/yellow rings.

  • Has smoother, denser particle coverage.

  • Rotates while expanding for a more dynamic effect.

If the client’s particles are set to Minimal or Off, Minecraft can still hide the effect; the plugin cannot override that client setting.

voreixz

i dont wnat flame i want dust

Kodari AI
KodariAug 19 at 3:37 am 1

Removed the flame fallback from the King’s Sword particle effect. The combo effect now uses only yellow/gold dust particles for both rings and sparks.

voreixz

also when first hitting an entity it already does the third hit

Kodari AI
KodariAug 19 at 3:39 am 1

Fixed the King’s Sword combo counting so one physical hit can’t count as all three strikes.

  • Duplicate damage events in the same server tick are now ignored.

  • The third-hit particle and bonus damage only activate after three separate hits.

  • Cancelled damage events no longer advance the combo.

  • Combo reset also clears the hit deduplication state.

voreixz

can you make the third hit sound changeable and add more commands please

Kodari AI
KodariAug 19 at 3:45 am 1
  1. Make the King’s Sword third-hit sound configurable.

  2. Review the existing command structure and add useful admin/player command subcommands without breaking current commands.

  1. Configurable third-hit sound: Added king.third-hit-sound to config.yml. Default:

    YAML
    third-hit-sound: 'ENTITY_PLAYER_ATTACK_CRIT'
    

    Change it to any supported XSound name.

  2. Added commands:

    • /prism help

    • /prism myrank

    • /prism status

    • /prism extrainv

    • /prism start

    • /prism setrank <player> <1-30>

    • /prism unrank <player>

  3. Existing commands still work, including /prism smpstart, /prism rank, /prism ranks, /prism reload, and /prism reset.

voreixz

the first hit isi still doing the third hit and the effect is completly gone

Kodari AI
KodariAug 19 at 3:51 am 1
  • Make the combo state explicit so only strike 3 triggers the bonus and then clears.

  • Stop PlayerInteractEvent from resetting the combo during normal attack animation.

  • Use XSeries’ cross-version REDSTONE dust particle for the gold ring; DUST was not resolving, which is why the effect disappeared.

Fixed both King’s Sword issues:

  • The first hit now counts only as strike 1.

  • The third-hit bonus resets immediately after triggering.

  • Removed the swing listener that was incorrectly resetting combo state during attacks.

  • Restored the effect using yellow/gold REDSTONE dust particles only.

  • The third-hit ring and sparks now use visible dust particles without flame.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
18 1,517
src/main/java/com/kodari/prism/PrismPlugin.java
package com.kodari.prism;

import org.bukkit.Bukkit;
import org.bukkit.NamespacedKey;
import org.bukkit.plugin.java.JavaPlugin;

public final class PrismPlugin extends JavaPlugin {
    private ConfigManager configManager;
    private RankManager rankManager;
    private CeremonyManager ceremonyManager;
    private ExtraInventoryManager extraInventoryManager;
    private NamespacedKey itemKey;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        itemKey = new NamespacedKey(this, "king_item");
        configManager = new ConfigManager(this);
        rankManager = new RankManager(this, configManager);
        ceremonyManager = new CeremonyManager(this, configManager, rankManager);
        extraInventoryManager = new ExtraInventoryManager(this, configManager, rankManager);

        Bukkit.getPluginManager().registerEvents(new RankListener(this, rankManager), this);
        Bukkit.getPluginManager().registerEvents(extraInventoryManager, this);
        Bukkit.getPluginManager().registerEvents(new KingSwordListener(this, rankManager, configManager), this);

        PrismCommand prismCommand = new PrismCommand(this);
        getCommand("prism").setExecutor(prismCommand);
        getCommand("prism").setTabCompleter(prismCommand);
        getCommand("extrainv").setExecutor(new ExtraInventoryCommand(this));
    }

    @Override
    public void onDisable() {
        if (ceremonyManager != null) {
            ceremonyManager.cancel();
        }
    }

    public ConfigManager getConfigManager() {
        return configManager;
    }

    public RankManager getRankManager() {
        return rankManager;
    }

    public CeremonyManager getCeremonyManager() {
        return ceremonyManager;
    }

    public ExtraInventoryManager getExtraInventoryManager() {
        return extraInventoryManager;
    }

    public NamespacedKey getItemKey() {
        return itemKey;
    }
}