devhoops

Create a Minecraft Java plugin for Paper/Spigot (latest version 1.21+) with the following features:

PLUGIN NAME: PointRanks

CORE SYSTEM:

  • Each player has a points value (integer, starts at 0)
  • If a player has 0 points, they are considered "Unranked"
  • Points must NEVER go below 0

RANK DISPLAY:

  • Display rank as a prefix before the player’s username in chat, tab, and nametag
  • Format example: [Unranked]PlayerName OR [#1]PlayerName
  • Rank is based on leaderboard position (highest points = #1)

POINT SYSTEM:

  1. KILL REWARD:
  • When a player kills another player, they gain +30 points
  • Add a cooldown system PER PLAYER:

- If Player A kills Player B, Player A cannot gain points from killing Player B again for 5 hours - This cooldown is tracked individually between players

  1. PLAYTIME REWARD:
  • Every 10 minutes of playtime = +2 points automatically
  1. DEATH PENALTY:
  • When a player dies, they lose 40 points
  • Points cannot go below 0
  • If points reach 0 → player becomes Unranked again

LEADERBOARD:

  • Track top players by points
  • Automatically update rankings in real-time

BUFF SYSTEM:

  1. TOP 5 PLAYERS:
  • Players in top 5 receive a permanent Luck potion effect
  • Effect is active ONLY while they are in top 5
  • If they drop out, remove the effect immediately
  1. TOP 2 PLAYERS:
  • Players in top 2 gain +2 extra hearts (increase max health)
  • Remove bonus if they lose top 2 position

COMMANDS:

PLAYER COMMANDS:

  1. /points

- Shows the player’s current points

  1. /leaderboard

- Shows top 10 players ranked by points

ADMIN COMMANDS:

  1. /setpoints <player> <amount>

- Sets a player's points

  1. /checkpoints <player>

- Shows a specific player's points

OTHER REQUIREMENTS:

  • Data must be saved (use config or database so it persists after restart)
  • Plugin must be optimized for multiplayer servers
  • Use permissions:

- pointranks.admin for admin commands

  • No errors on startup
  • Clean, organized code structure

OUTPUT:

  • Provide full compiled .jar file
  • Include source code and plugin.yml
Kodari AI
KodariMar 23 at 1:03 am 19,515 (v2)

I’ll create a comprehensive PointRanks plugin with persistent data storage, cooldown tracking, and real-time buff management.

PointRanks
A competitive ranking system where players earn points through PvP kills and playtime, lose points on death, and receive special buffs based on leaderboard position. Features individual kill cooldowns, automatic rank prefixes in chat/tab/nametag, top player buffs (Luck effect for top 5, bonus hearts for top 2), and persistent SQLite data storage with real-time leaderboard tracking.
PointRanks
A competitive ranking system where players earn points through PvP kills and playtime, lose points on death, and receive special buffs based on leaderboard position. Features individual kill cooldowns, automatic rank prefixes in chat/tab/nametag, top player buffs (Luck effect for top 5, bonus hearts for top 2), and persistent SQLite data storage with real-time leaderboard tracking.

PointRanks plugin created with full functionality:

Features Implemented:

  • ✅ Points system (starts at 0, never goes below 0)

  • ✅ Kill rewards (+30 points with 5-hour per-player cooldown)

  • ✅ Death penalty (-40 points, min 0)

  • ✅ Playtime rewards (+2 points every 10 minutes)

  • ✅ Real-time leaderboard with automatic ranking

  • ✅ Rank prefixes in chat, tab list, and nametag ([Unranked] or [#1], [#2]…)

  • ✅ Top 5 buff: Permanent Luck effect

  • ✅ Top 2 buff: +2 extra hearts (4 HP)

  • ✅ SQLite database for persistent storage

  • ✅ All commands with permissions

  • ✅ Automatic cooldown cleanup

  • ✅ Auto-save system

Commands:

  • /points - Check your points

  • /leaderboard - View top 10

  • /setpoints <player> <amount> - Admin: set points

  • /checkpoints <player> - Admin: check points

The plugin uses XSeries for cross-version compatibility, Lombok for clean code, and SQLite for reliable data persistence. All buffs update in real-time when rankings change.

devhoops

add 3 more things 1. make it so you can see the rank no only beside the players username in chat and on the tab leaderboard but when they are walking around for example 2. fix it because when you talk in chat it repeats your rank twice so you see this #1 #1 player: hello 3. if a player not in top 5 kills a top 5 player they get twice the ammount of points

Kodari AI
KodariMar 23 at 12:29 pm 13,242 (v2)

I’ll read the relevant files to understand the current implementation and make these three changes.

I’ll fix all three issues: add nametag display above players, fix the duplicate rank in chat, and add 2x points for non-top-5 killing top-5.

All three features have been implemented:

  1. Nametags above players - Ranks now display above players’ heads using scoreboard teams

  2. Fixed duplicate rank in chat - Removed duplicate prefix so chat shows correctly as “#1 player: hello”

  3. 2x points for killing top 5 - Non-top-5 players now receive double points when killing a top-5 player with a bonus message

devhoops

make some changes top 10 players get a luck boost instead of top 5, 3rd place gets 3 hearts, 2nd place gets 4 hearts, and 1st place gets 5 hearts

Kodari AI
KodariMar 24 at 10:05 pm 9,526 (v2)

I’ll read the relevant files to understand the current buff implementation.

Now I’ll make the changes:

  • Top 10 players get luck boost (instead of top 5)

  • 3rd place gets 3 hearts

  • 2nd place gets 4 hearts

  • 1st place gets 5 hearts

Changes complete! Now:

  • Top 10 players receive a permanent luck boost

  • 1st place gets 5 hearts (10 bonus health)

  • 2nd place gets 4 hearts (8 bonus health)

  • 3rd place gets 3 hearts (6 bonus health)

devhoops

edit it so you only lose points when you die to players not anything else

Kodari AI
KodariApr 3 at 7:17 pm 7,097 (v2)

I’ll read the relevant files to understand the current death/kill mechanics and then modify them so points are only lost when dying to players.

I can see the issue. Currently, PlayerDeathListener removes points on any death, regardless of the cause. I’ll modify it to only remove points when the player is killed by another player.

Modified PlayerDeathListener to only apply death penalty when killed by another player - checked via victim.getKiller().

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
manifest.kod
Code
23 1,210
src/main/java/com/pointranks/PointRanks.java
package com.pointranks;

import com.pointranks.commands.CheckPointsCommand;
import com.pointranks.commands.LeaderboardCommand;
import com.pointranks.commands.PointsCommand;
import com.pointranks.commands.SetPointsCommand;
import com.pointranks.data.PlayerDataManager;
import com.pointranks.listeners.ChatListener;
import com.pointranks.listeners.PlayerDeathListener;
import com.pointranks.listeners.PlayerJoinListener;
import com.pointranks.listeners.PlayerKillListener;
import com.pointranks.listeners.PlayerQuitListener;
import com.pointranks.managers.BuffManager;
import com.pointranks.managers.DatabaseManager;
import com.pointranks.managers.PrefixManager;
import com.pointranks.managers.RankManager;
import com.pointranks.tasks.AutoSaveTask;
import com.pointranks.tasks.BuffUpdateTask;
import com.pointranks.tasks.PlaytimeTask;
import lombok.Getter;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class PointRanks extends JavaPlugin {
    private DatabaseManager databaseManager;
    private PlayerDataManager playerDataManager;
    private RankManager rankManager;
    private BuffManager buffManager;
    private PrefixManager prefixManager;

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

        this.databaseManager = new DatabaseManager(this);
        this.databaseManager.initialize();

        this.playerDataManager = new PlayerDataManager(this);
        this.rankManager = new RankManager(this);
        this.buffManager = new BuffManager(this);
        this.prefixManager = new PrefixManager(this);

        registerCommands();
        registerListeners();
        startTasks();

        getLogger().info("PointRanks has been enabled!");
    }

    @Override
    public void onDisable() {
        if (playerDataManager != null) {
            playerDataManager.saveAll();
        }
        if (databaseManager != null) {
            databaseManager.close();
        }
        getLogger().info("PointRanks has been disabled!");
    }

    private void registerCommands() {
        getCommand("points").setExecutor(new PointsCommand(this));
        getCommand("leaderboard").setExecutor(new LeaderboardCommand(this));
        getCommand("setpoints").setExecutor(new SetPointsCommand(this));
        getCommand("checkpoints").setExecutor(new CheckPointsCommand(this));
    }

    private void registerListeners() {
        Bukkit.getPluginManager().registerEvents(new PlayerJoinListener(this), this);
        Bukkit.getPluginManager().registerEvents(new PlayerQuitListener(this), this);
        Bukkit.getPluginManager().registerEvents(new PlayerKillListener(this), this);
        Bukkit.getPluginManager().registerEvents(new PlayerDeathListener(this), this);
        Bukkit.getPluginManager().registerEvents(new ChatListener(this), this);
    }

    private void startTasks() {
        long playtimeInterval = getConfig().getLong("points.playtime-interval", 600) * 20L;
        new PlaytimeTask(this).runTaskTimer(this, playtimeInterval, playtimeInterval);

        new BuffUpdateTask(this).runTaskTimer(this, 100L, 100L);

        long autosaveInterval = getConfig().getLong("database.autosave-interval", 300) * 20L;
        new AutoSaveTask(this).runTaskTimer(this, autosaveInterval, autosaveInterval);
    }

    public String getMessage(String path) {
        return getConfig().getString("messages." + path, path).replace("&", "§");
    }
}