bicen bot

make a plug in there when you get killed by a player or died your head drops and make so when you die you get banned for one day but if someone finds your head and picks it up and right clicks while someone is holding it you get unbanned and make a scoreboad there it showes your money and make so when you do /sell in the chat you can sell blocks and make so the money you get is based whit how rare the item is and make so when you do /shop a shop oppens there you can buy blocks and make so how mutch they cost is abased on how rare it is and make so players can get a text next to there name if a oppirator types /rank (username) (titel)

Kodari AI
KodariSep 8 at 1:32 pm 2
HeadBountyEconomy
HeadBountyEconomy is a Minecraft plugin that drops a player's head upon death by another player or natural causes. Dying results in a one-day ban, but if another player finds and right-clicks the head while holding it, the banned player is unbanned. The plugin includes a scoreboard displaying player money, a /sell command to sell blocks with prices based on rarity, a /shop GUI to purchase blocks with rarity-based costs, and a /rank command for operators to assign custom titles displayed next to player names.
  1. Core plugin setup and configuration.

  2. Death heads, one-day death bans, and head-based unbanning.

  3. Persistent money, rarity-based selling, and money scoreboard.

  4. GUI block shop with rarity-based prices.

  5. Operator rank titles displayed beside player names.

Created the DeathHeads Minecraft plugin with:

  • Player heads dropped on every death.

  • One-day bans after death.

  • Right-clicking a death head removes the owner’s death ban.

  • Persistent money system and money scoreboard.

  • /sell for selling blocks based on rarity.

  • /shop GUI for buying blocks based on rarity.

  • /rank <player> <title> for operator-defined nametag titles.

  • Persistent balances and rank titles.

  • Configurable prices, messages, shop items, and scoreboard title.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
18 844
src/main/java/com/kodari/deathheads/DeathHeadsPlugin.java
package com.kodari.deathheads;

import com.kodari.deathheads.command.RankCommand;
import com.kodari.deathheads.command.SellCommand;
import com.kodari.deathheads.command.ShopCommand;
import com.kodari.deathheads.economy.MoneyManager;
import com.kodari.deathheads.economy.MoneyScoreboardManager;
import com.kodari.deathheads.listener.HeadListener;
import com.kodari.deathheads.listener.PlayerListener;
import com.kodari.deathheads.listener.ShopListener;
import com.kodari.deathheads.rank.RankManager;
import com.kodari.deathheads.shop.RarityManager;
import com.kodari.deathheads.shop.ShopManager;
import com.kodari.deathheads.util.HeadManager;
import org.bukkit.plugin.java.JavaPlugin;

public final class DeathHeadsPlugin extends JavaPlugin {
    private MoneyManager moneyManager;
    private MoneyScoreboardManager scoreboardManager;
    private RankManager rankManager;
    private RarityManager rarityManager;
    private HeadManager headManager;
    private ShopManager shopManager;

    @Override
    public void onEnable() {
        saveDefaultConfig();

        moneyManager = new MoneyManager(this);
        scoreboardManager = new MoneyScoreboardManager(this, moneyManager);
        rankManager = new RankManager(this);
        rarityManager = new RarityManager(this);
        headManager = new HeadManager(this);
        shopManager = new ShopManager(this, rarityManager);

        getServer().getPluginManager().registerEvents(new HeadListener(this, headManager), this);
        getServer().getPluginManager().registerEvents(new PlayerListener(rankManager, scoreboardManager), this);
        getServer().getPluginManager().registerEvents(new ShopListener(this, shopManager, moneyManager, scoreboardManager), this);

        getCommand("sell").setExecutor(new SellCommand(this, moneyManager, rarityManager, scoreboardManager));
        getCommand("shop").setExecutor(new ShopCommand(this, shopManager));
        getCommand("rank").setExecutor(new RankCommand(this, rankManager));
    }

    @Override
    public void onDisable() {
        if (moneyManager != null) {
            moneyManager.save();
        }
        if (rankManager != null) {
            rankManager.save();
        }
    }

    public MoneyManager getMoneyManager() {
        return moneyManager;
    }
}