mr_gronberg
📎 1 file 5,100 chars
📄
pasted-code-1783025371055.txt
txt 193 lines
▶
Bullion SMP Plugin Idea - You spawn in with 1 out of the 9 bull rings that you can get. And there are special armor that is called "The Bulls Protecter" and it is netherite armor, and the full set gives you strength 2, speed 2, and fire res perma Bosernova Ring - Spawns a super nova fire that does 4 hearts - Passive: Perma 12 hearts Speed Ring - Should be obvious but it gives you speed 3 when activated - Passive: Perma speed 1 Ice And Fire Ring - It's like todoroki from mha but you shoot out 2 things Ice, And Fire that does 6 hearts - Passive: Perma Fire Resistance Blackhole Ring - It spawns a black hole that grabs everyone and keeps them there Ghost Ring - It puts you in spectator but you cant tp to people, and when you hit people you stop their ring from working for 20 seconds Phantom Ring - It makes you fly like you have an elytra and you cant take it out of the slot Water Ring - You can bend water like a water bender from atla. - Passive: dolphins grace 1 Earth Ring - You can insta mine stone, grass, and wood. Fire Ring - You can shoot out fire with the ring and a fire circle. Air Ring - You can launch up into the air and shoot out projectiles that do 1.5 hearts each time. (VERY SPECIAL RING) Avatar Ring - You can master EVERY Ring in the game with the Avatar Ring. (ALSO VERY SPECIAL RING) Night Ring - You can go full invis for 15 seconds and you can control 2 rings at once

Edit
22:21
AI
Oh cool idea! Let me think about this for a moment... 🤔

22:22
AI
Question 1 of ~5
How should players get rings? 🎁 Should they receive one at random when they join, or pick from a list?


Random on join

Each player spawns with one random ring they keep forever.


Choose on join

Players pick their starting ring from a list or INVENTORY GUI.


Earn in game

Players start with none and find rings through gameplay.

22:22
Random on join

Edit
22:22
AI
Question 2 of ~9
How should players activate their ring abilities? 🎮 Should it be a right-click, a command, or something else?


Right-click ring

Players right-click while holding the ring to use its active ability.


Command only

Players type a command like /ring use to trigger the ability.


Both click and command

Right-click works, and there is also a command for convenience.

22:22
use the "f" key and left shift and f for a secondary abillity if there is one

Edit
22:24
AI
Question 3 of ~9
How should the Avatar Ring be obtained? 🏆 Should it be a rare drop, crafted, or given to a specific player?


Rare drop from mobs

Has a very low chance to drop from any mob or boss.


Crafting recipe

Players combine all 9 rings to craft the Avatar Ring.


Admin only

Only given by server operators via command.

22:24
Admin only

Edit
22:25
AI
Question 4 of ~9
How should the Bulls Protector armor set be obtained? 🛡️ Should players craft it, find it, or get it another way?


Crafting recipe

Players craft the full netherite set using special materials.


Rare drop

Drops from bosses or has a low chance from mobs.


Admin only

Only given by server operators via command.

22:25
Admin only

Edit
22:25
AI
Question 5 of ~9
How should players get the Night Ring? 🌙 It's a very special ring that lets you go invisible and control two rings at once. Should it be admin-only too, or something players can earn?


Admin only

Only given by server operators via command.


Rare drop

Has a very low chance to drop from any mob or boss.


Crafting recipe

Players combine specific items to craft the Night Ring.

22:25
Admin only

Edit
22:25
AI
Question 6 of ~9
Should rings be kept on death or lost? 💀


Keep on death

Players keep their ring even when they die.


Drop on death

Ring drops to the ground when the player dies.

22:25
keep it one death but you lose one "energy" that makes the ring stronger you start with 5 "energy" and you lose 1 every time someone kills you if you die to a zombie for exampel you dont lose any energy and if you lose all your energy (0) you get banned but there is a crafteble revival token that is crafteble and you can craft "energy" and you can craft a "trader" to change your bullion ring

Edit
22:31
AI
Question 7 of ~9
How should the energy system work? ⚡ You mentioned losing energy on death and crafting revival tokens. Should energy be a simple number that affects ring power, or something more like a currency with levels?


Simple energy count

Energy is a number from 0 to 5. More energy = stronger ring abilities.


Energy with levels

Energy has tiers (e.g., bronze, silver, gold) that unlock new effects.


Energy as currency

Energy is spent to activate abilities and recharges over time.

22:31
0 to 5 but you get more effects

Edit
22:32
AI
Question 8 of ~9
What should the energy levels do? ⚡ You start with 5 energy and lose 1 on PvP death. What extra effects should each level unlock?


Stronger abilities

Each energy level increases damage or duration of ring abilities.


New passive perks

Each level adds a new passive buff like regeneration or resistance.


Both

Abilities get stronger and you gain extra passive perks per level.

22:32
New passive perks
``
Kodari AI
KodariJul 2 at 9:01 pm 9
BullionSMP
A complete ring-based abilities system for Bullion SMP. Features 12 unique rings with F-key activated abilities, passive effects, and energy system (5 energy, lose 1 on PvP death, 0 = ban). Includes Bulls Protector netherite armor with permanent Strength 2, Speed 2, and Fire Resistance. Craftable revival tokens, energy items, and a trader system to change rings. Full admin commands and energy-based passive perk unlocks.

I’ll build all 21 files for this plugin now.

Let me plan and build this entire plugin from scratch. 22 files total.

BullionSMP
A ring-based abilities plugin for Bullion SMP. 12 unique rings with F-key activated abilities, secondary shift+F abilities, passive effects, and an energy system (5 max, lose 1 on PvP death, 0=ban). Features include the Bulls Protector netherite armor set (perm Strength 2/Speed 2/Fire Res), craftable revival tokens and energy items, a trader GUI for swapping rings, admin commands, and energy-level passive perk unlocks.

Starting with build infrastructure and resource files:

All files are new. Let me create everything from scratch.

All files created. The plugin has 22 files covering:

Core: BullionSMP.java, ConfigManager.java, config.yml, plugin.yml, build.gradle, settings.gradle

Rings (12): RingType.java, Ring.java, RingManager.java, BosernovaRing.java, SpeedRing.java, IceAndFireRing.java, BlackholeRing.java, GhostRing.java, PhantomRing.java, WaterRing.java, EarthRing.java, FireRing.java, AirRing.java, AvatarRing.java, NightRing.java

Player Data: PlayerData.java, PlayerDataManager.java

Commands: RingCommand.java, EnergyCommand.java, TraderCommand.java, RevivalTokenCommand.java

Listeners: JoinListener.java, ArmorListener.java, DeathListener.java, EnergyListener.java, RingListener.java, FKeyListener.java

GUI: InventoryHandler.java, InventoryButton.java, InventoryGUI.java, GUIManager.java, GUIListener.java, TraderGUI.java

Crafting: CraftingManager.java

Key features implemented:

  • F key = primary ability, Shift+F = secondary (via FKeyListener + PlayerSwapHandItemsEvent)

  • Energy system: 5 max, lose 1 on PvP death, 0 = ban (revival token saves you)

  • Energy passives: Level 2 = Regen, 3 = Resistance, 4 = Strength, 5 = Jump Boost + Water Breathing

  • Bulls Protector: Full netherite set gives perm Strength 2, Speed 2, Fire Res

  • Trader GUI: Swap rings via /trader (admin-only rings: Avatar, Night)

  • Crafting: Revival tokens, energy, Bulls Protector armor

  • Random ring on join: Spawns with one of 9 non-admin rings

mr_gronberg

problem when you do /bullionsmp:trader unopped people can do that and they are not sepuosed to be able to do that and when i do /night then the ring name as the second ability it doesnt work

Kodari AI
KodariJul 2 at 9:52 pm 5

Two issues:

  1. TraderCommand — no permission check, anyone can use it

  2. NightRing secondary — tells player to use /night <ringname> but no /night command exists

Now create the /night command and register it

Now register /night command in the main plugin class:

Let me verify PlayerData has the secondaryRing field:

Both fixes are in place:

  1. TraderCommand — now checks bullionsmp.trader permission before opening the GUI. Non-opped players without that permission will be blocked.

  2. NightCommand — new /night <ring> command (alias /nr). Night Ring players can now:

    • /night bosernova — set secondary ring

    • /night clear — clear secondary ring

    • The secondary ring fires alongside the Night Ring when pressing F (handled by RingManager.activateRing which already supports dual-wielding for Night Ring)

mr_gronberg

make a new bulionsmp jar with the fixes from the old one

Kodari AI
KodariJul 2 at 9:57 pm 6

No Java runtime is available on this system, so I can’t compile the jar here. The code changes are already applied. To build it yourself:

Shell
cd /path/to/project
./gradlew shadowJar

The output jar will be at build/libs/BullionSMP-1.0.0-all.jar (or similar). Replace the old jar on your server with that one.

If you need me to show you how to install Java/Gradle on your machine, just say the word.

mr_gronberg

can you make it so i can download the new one like you did with the old one

Kodari AI
KodariJul 2 at 10:00 pm 3

No Java runtime or package manager is available in this sandbox, and I can’t install them. I don’t have the context from your previous session showing how the jar was provided.

Could you tell me how it was delivered last time? A link, a file upload, or something else? I’ll work with whatever method worked before.

[Generation stopped]

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
40 2,372
src/main/java/com/bullionsmp/BullionSMP.java
package com.bullionsmp;

import com.bullionsmp.config.ConfigManager;
import com.bullionsmp.inventory.gui.GUIListener;
import com.bullionsmp.inventory.gui.GUIManager;
import com.bullionsmp.listener.*;
import com.bullionsmp.ring.RingManager;
import com.bullionsmp.command.RingCommand;
import com.bullionsmp.command.EnergyCommand;
import com.bullionsmp.command.TraderCommand;
import com.bullionsmp.command.RevivalTokenCommand;
import com.bullionsmp.player.PlayerDataManager;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class BullionSMP extends JavaPlugin {

    private ConfigManager configManager;
    private RingManager ringManager;
    private PlayerDataManager playerDataManager;
    private GUIManager guiManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        this.configManager = new ConfigManager(this);
        this.playerDataManager = new PlayerDataManager(this);
        this.ringManager = new RingManager(this);
        this.guiManager = new GUIManager();

        GUIListener guiListener = new GUIListener(guiManager);
        Bukkit.getPluginManager().registerEvents(guiListener, this);
        Bukkit.getPluginManager().registerEvents(new EnergyListener(this), this);
        Bukkit.getPluginManager().registerEvents(new RingListener(this), this);
        Bukkit.getPluginManager().registerEvents(new FKeyListener(this), this);
        Bukkit.getPluginManager().registerEvents(new ArmorListener(this), this);
        Bukkit.getPluginManager().registerEvents(new DeathListener(this), this);
        Bukkit.getPluginManager().registerEvents(new JoinListener(this), this);

        getCommand("ring").setExecutor(new RingCommand(this));
        getCommand("energy").setExecutor(new EnergyCommand(this));
        getCommand("trader").setExecutor(new TraderCommand(this));
        getCommand("revivaltoken").setExecutor(new RevivalTokenCommand(this));
        getCommand("night").setExecutor(new NightCommand(this));

        getLogger().info("BullionSMP enabled successfully!");
    }

    @Override
    public void onDisable() {
        playerDataManager.saveAll();
        getLogger().info("BullionSMP disabled.");
    }
}