itzrealmeglazer

Create a fully configurable point capture plugin that adds teams, elections to pick a player as a leader but make it so you cant vote yourself as the leader, area selection with a notification if you enter or leave someones area or your own and add a crown that will be given to the elected leaders that will be unbreakable, dosent drop but stays in your inventory is you die, you cant drop it, it will be a retextured netherite protection 4, resperation3, aqua infinity helmet and will grant the holder 20 hearts. Also add a networth counter where evry item has its own value based on how rare it is (like dirt is worth 0.01 money) it needs to count the players inventory ender chest and items in side shulkerboxes make it so server operators can change the value of the items and make it so it shows the players networth next to their username in tab and in game. Make a command for operators to be able to tp all players into diffrent random cordinates in a 5.5k block radius.

Kodari AI
KodariJun 5 at 5:52 pm 70
PointCapture
A competitive Minecraft plugin featuring team management with color-coded chat, democratic leader elections (no self-voting), GUI voting system, territory area claiming with enter/leave notifications, a special Crown item for elected leaders (unbreakable, death-persistent, undrop-pable, netherite helmet with Protection IV/Respiration III/Aqua Affinity + 20 hearts), full item-based networth tracking across inventory/ender chest/shulker boxes shown in tab and nametags, and an admin scatter command for random deployment.

Here’s a full breakdown of everything built:


πŸ† PointCapture β€” Feature Summary

πŸ‘₯ Teams (/team)

Subcommand
Who
Description
create <name>
Any player
Creates a team, you become leader
join <name>
Any player
Joins an existing team
leave
Members
Leave your current team
info [name]
Any
Shows team info
list
Any
Opens team browser GUI
kick <player>
Leader/Admin
Removes a member
color <COLOR>
Leader/Admin
e.g.
RED
,
GOLD
,
AQUA
disband <name>
Leader/Admin
Permanently removes a team

πŸ—³οΈ Elections (/election)

Subcommand
Who
Description
start [team]
Leader/Admin
Starts an election (needs 2+ members)
vote <player>
Members
Text vote (blocks self-voting)
gui
Members
Opens skull-based click-to-vote GUI
status [team]
Any
Live vote counts + time remaining
end [team]
Admin
Forces election to conclude

When the election ends, the winner is crowned automatically. The previous leader’s crown is removed.


πŸ‘‘ Crown of Leadership

  • Netherite helmet β€” Protection IV, Respiration III, Aqua Affinity I

  • +20 Hearts (40 HP total) via GENERIC_MAX_HEALTH attribute modifier

  • Unbreakable, custom model data 1001 (retextured via resource pack)

  • Cannot be dropped β€” PlayerDropItemEvent cancelled

  • Kept on death β€” removed from drop list, re-given on respawn

  • Identified via PersistentDataContainer (survives server restarts)


πŸ—ΊοΈ Area Claiming (/area)

  1. /area wand β€” Get the selection wand (PDC-tagged blaze rod)

  2. Left-click a block β†’ Position 1

  3. Right-click a block β†’ Position 2

  4. /area claim β€” Claims the rectangle for your team

  5. Entry/exit fires configurable color-coded messages (different if it’s your own team)


πŸ’° Networth System

  • Scans: main inventory + ender chest + shulker box contents (including shulkers inside inventory)

  • Displayed as scoreboard team prefix on nametag AND tab list: [Β§6$1.2KΒ§8] PlayerName

  • Updates on: join, inventory close, item pickup, and every N seconds (configurable)

  • Operators: /setvalue <MATERIAL> <value> β€” persists to config.yml, refreshes all players instantly


🌍 Scatter (/scatter) β€” Admin only

  • Teleports all online players to unique random coordinates

  • Uses uniform disk distribution (no center-clustering)

  • Finds safe Y via getHighestBlockYAt()

  • Radius configurable (scatter.radius, default 5500)

  • World configurable (scatter.world, default world)

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
28 2,292
src/main/java/com/kodari/pointcapture/PointCapturePlugin.java
package com.kodari.pointcapture;

import com.kodari.pointcapture.command.*;
import com.kodari.pointcapture.inventory.gui.GUIListener;
import com.kodari.pointcapture.inventory.gui.GUIManager;
import com.kodari.pointcapture.listener.AreaListener;
import com.kodari.pointcapture.listener.CrownListener;
import com.kodari.pointcapture.listener.NetworthListener;
import com.kodari.pointcapture.manager.AreaManager;
import com.kodari.pointcapture.manager.ElectionManager;
import com.kodari.pointcapture.manager.NetworthManager;
import com.kodari.pointcapture.manager.TeamManager;
import com.kodari.pointcapture.util.CrownUtil;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class PointCapturePlugin extends JavaPlugin {

    private TeamManager teamManager;
    private ElectionManager electionManager;
    private AreaManager areaManager;
    private NetworthManager networthManager;
    private GUIManager guiManager;

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

        CrownUtil.init(this);

        teamManager = new TeamManager(this);
        areaManager = new AreaManager(this);
        networthManager = new NetworthManager(this);
        electionManager = new ElectionManager(this);
        guiManager = new GUIManager();

        // Listeners
        getServer().getPluginManager().registerEvents(new GUIListener(guiManager), this);
        getServer().getPluginManager().registerEvents(new CrownListener(this), this);
        getServer().getPluginManager().registerEvents(new AreaListener(this), this);
        getServer().getPluginManager().registerEvents(new NetworthListener(this), this);

        // Commands
        TeamCommand teamCmd = new TeamCommand(this);
        getCommand("team").setExecutor(teamCmd);

        ElectionCommand electionCmd = new ElectionCommand(this);
        getCommand("election").setExecutor(electionCmd);

        AreaCommand areaCmd = new AreaCommand(this);
        getCommand("area").setExecutor(areaCmd);

        NetworthCommand networthCmd = new NetworthCommand(this);
        getCommand("networth").setExecutor(networthCmd);
        getCommand("setvalue").setExecutor(networthCmd);

        ScatterCommand scatterCmd = new ScatterCommand(this);
        getCommand("scatter").setExecutor(scatterCmd);

        getLogger().info("PointCapture enabled successfully.");
    }

    @Override
    public void onDisable() {
        if (teamManager != null) teamManager.saveTeams();
        if (areaManager != null) areaManager.saveAreas();
        getLogger().info("PointCapture disabled.");
    }
}