Cider.official

The plugin should save player data in the plugin folder upon joining, assign an ID, and update the scoreboard. (Scoreboard) &4&lHARDCORE &eTwoje Statystyki &eTwój Nick: %player% (player's username) &eTwoje Kille&4(Kill count) &eCzas Gry (time saved in the folder alongside the player's ID and username) &6&lŻywi Gracze e.g., &a50 (players without a ban) &e/ &a63 (players in the folder—i.e., everyone who has ever joined the server) &aGacze Online (Number of online players) Upon death, the player should be banned with the message: "You died in this edition." The "death ban" is recorded in the players folder. The /reset command resets bans, kills, playtime, and the player count on the scoreboard; it will show 0/0 when the first player joins, 1/1 for the next, and 2/2 after that. If one player dies and receives a ban associated with that custom ID, the scoreboard will show 1/2 under "players alive."

Kodari AI
KodariSep 8 at 5:41 pm 1
HardcoreSurvivalTracker
A hardcore Minecraft plugin that tracks player statistics and enforces permanent death bans. Upon joining, each player is assigned a unique ID and their data (username, ID, playtime, kill count) is saved in the plugin folder. A persistent scoreboard displays player nicknames, kills, playtime, total registered players, alive players, and online count. When a player dies, they receive a permanent ban with the message "You died in this edition." The /reset command clears all bans, kills, playtime, and player counts, resetting the scoreboard to show 0/0, then incrementing as new players join. Death bans are tied to each player's custom ID, and the scoreboard's "players alive" counter reflects the ratio of alive to total registered players.
  1. Create the Gradle/Paper plugin scaffold and manifest.

  2. Implement persistent player records with custom IDs, kills, playtime, and death-ban state.

  3. Add join/death/quit handling, the live scoreboard, periodic persistence, and /reset.

Created the Hardcore plugin project with:

  • Persistent player files under plugins/Hardcore/players/

  • Custom player IDs, usernames, kills, playtime, and death-ban status

  • Automatic death bans with message: You died in this edition.

  • Polish sidebar scoreboard showing:

    • Player name

    • Kills

    • Playtime

    • Alive/total players

    • Online players

  • /reset command for operators

  • Ban, kill, and playtime reset support

  • Gradle/Paper plugin configuration for Paper 1.20.6

Cider.official

Let's change the ban message to "Zginąłeś na tej edycji" and ensure that after dying, the player remains in spectator mode for 5 seconds before being banned, while respawning at the spot where they died.

Kodari AI
KodariSep 8 at 6:25 pm 1
  1. Update the death/login message to Zginąłeś na tej edycji.

  2. Capture the death location, force respawn there, and switch the player to spectator.

  3. Delay the permanent ban and data recording for 5 seconds, then kick the player and refresh the scoreboard.

Implemented:

  • Death/login ban message changed to: Zginąłeś na tej edycji

  • Death location is saved and used as the respawn location

  • Player is automatically respawned and placed in spectator mode

  • Ban is delayed by 5 seconds

  • After 5 seconds:

    • Death ban is saved to the player file

    • Player is permanently banned

    • Player is kicked with the Polish message

    • Scoreboard updates alive-player count

Cider.official

build plugin?

Kodari AI
KodariSep 8 at 6:26 pm 1

The plugin is configured to build with Gradle. Run:

Shell
./gradlew build

The compiled JAR will be located in:

Plain Text
build/libs/

Copy that JAR into your server’s plugins/ folder and restart the server.

Cider.official

/gradlew build

Kodari AI
KodariSep 8 at 6:26 pm 1

Use:

Shell
./gradlew build

On Windows:

Shell
gradlew.bat build

The compiled plugin will be in:

Plain Text
build/libs/
Cider.official

gradlew.bat build

Kodari AI
KodariSep 8 at 6:27 pm 1

Run this from the project root on Windows:

Shell
gradlew.bat build

The compiled plugin JAR will be generated in:

Plain Text
build\libs\
Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
settings.gradle
Code
9 485
src/main/java/com/kodari/hardcore/HardcorePlugin.java
package com.kodari.hardcore;

import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;
import org.bukkit.scheduler.BukkitRunnable;

public class HardcorePlugin extends JavaPlugin {

    private PlayerDataManager dataManager;
    private HardcoreScoreboard scoreboard;

    @Override
    public void onEnable() {
        dataManager = new PlayerDataManager(this);
        scoreboard = new HardcoreScoreboard(dataManager);

        Bukkit.getPluginManager().registerEvents(
                new HardcoreListener(this, dataManager, scoreboard),
                this
        );
        getCommand("reset").setExecutor(new ResetCommand(dataManager, scoreboard));

        new BukkitRunnable() {
            private int saveRuns;

            @Override
            public void run() {
                scoreboard.updateAll();
                if (++saveRuns >= 20) {
                    dataManager.saveOnlineSessions();
                    saveRuns = 0;
                }
            }
        }.runTaskTimer(this, 20L, 20L);
    }

    @Override
    public void onDisable() {
        if (dataManager != null) {
            dataManager.saveOnlineSessions();
        }
    }
}