notvishuyt

VOLATILE SMP

Create a professional, production-ready Minecraft Java plugin named:

VolatileSmp

This plugin is the core gameplay plugin for a private Hardcore SMP.

The plugin must focus exclusively on the Hardcore, Revival, Death, and Proximity systems described below.

---

TARGET ENVIRONMENT

  • Minecraft: 26.2
  • Server software: Paper 26.2
  • Java: 25
  • Language: Java
  • Build system: Gradle Kotlin DSL
  • API: Paper 26.2

Use modern Paper 26.2 APIs wherever available.

Do not use outdated APIs unnecessarily.

The final project must compile successfully into a working ".jar".

---

  1. HARDCORE PLAYER SYSTEM

Implement a complete Hardcore player-state system.

Every player must have persistent data identified by their Minecraft UUID.

Track:

  • UUID
  • Current username
  • Alive status
  • Eliminated status
  • Death count
  • Revival count
  • First join timestamp
  • Last seen timestamp
  • Last death timestamp
  • Last revival timestamp
  • Elimination timestamp

Never use usernames as the permanent player identifier.

Player data must survive:

  • Server restarts
  • Player reconnects
  • Plugin reloads

---

  1. PLAYER STATES

The plugin must clearly distinguish between:

ALIVE DEAD / AWAITING REVIVAL ELIMINATED

Do not treat every death as automatically permanent elimination unless configured to do so.

The state system must be designed so the revival mechanics can change later without rewriting the entire plugin.

---

  1. DEATH SYSTEM

When a player dies:

  1. Detect the death.
  2. Determine the death cause.
  3. Determine the killer if applicable.
  4. Increment the player's death count.
  5. Record the death.
  6. Update the player's Hardcore state.
  7. Create a revival record.
  8. Send the appropriate proximity death message.
  9. Apply the configured death behavior.
  10. Determine whether the player becomes permanently eliminated.

Death handling must be reliable and must not trigger twice for a single death.

---

  1. DEATH INFORMATION

Record useful information about every death.

A death record should contain:

  • Player UUID
  • Player name
  • Death cause
  • Killer UUID if applicable
  • Killer name if applicable
  • World
  • X/Y/Z location if configured
  • Timestamp

Death history must persist in the database.

---

  1. ELIMINATION SYSTEM

Implement a proper permanent-elimination system.

When a player becomes eliminated:

  • Set their status to "ELIMINATED".
  • Record the elimination timestamp.
  • Prevent normal gameplay access according to configuration.
  • Record the elimination event.
  • Trigger the VolatileLink integration event/API if available.

Do NOT implement Discord functionality directly inside this plugin.

VolatileLink handles Discord elimination notifications.

---

  1. REVIVAL SYSTEM

Implement a complete configurable revival system.

The system must support:

  • Revival of eliminated/dead players
  • Revival count
  • Maximum revival count
  • Revival cooldown
  • Revival requirements
  • Admin/manual revival
  • Revival history
  • Configurable revival announcements

Example configuration:

revival: enabled: true max-revivals: -1 cooldown-seconds: 0 announce: true

"-1" should mean unlimited unless configured otherwise.

Do not hardcode gameplay rules.

---

  1. REVIVAL COMMANDS

Implement:

/volatile revive <player>

Only authorized administrators can use it.

Also implement:

/volatile eliminate <player>

for administrative testing/management.

And:

/volatile status [player]

to display player Hardcore information.

The status command should show useful information such as:

Player Status Deaths Revivals Last Death Last Revival Elimination Status

---

  1. REVIVAL VALIDATION

Before reviving a player, verify:

  • Player exists.
  • Player has valid persistent data.
  • Player is actually dead/eliminated.
  • Revival is allowed.
  • Revival cooldown has expired.
  • Maximum revival count has not been reached.
  • Any configured revival requirements are satisfied.

If revival fails, provide a clear configurable error message.

---

  1. REVIVAL LOCATION

Make the revival location configurable.

Support options such as:

revival: location: mode: "world_spawn"

Possible future modes can include:

  • World spawn
  • Original death location
  • Configured location

Do not assume a location that hasn't been configured.

---

  1. PROXIMITY TEXT CHAT

Implement proximity-based Minecraft text chat.

Only players within the configured radius can receive another player's message.

Example:

proximity: chat: enabled: true radius: 50.0

Requirements:

  • Configurable radius
  • Decimal radius support
  • World-aware distance checking
  • Configurable message format
  • Permission-based bypass
  • Efficient recipient filtering
  • No global broadcasting

Use the modern Paper chat/event API.

---

  1. PROXIMITY CHAT TOGGLE

Players may optionally toggle proximity chat.

Command:

/volatile chat toggle

Configuration:

proximity: chat: player-toggle: true

When disabled:

  • The player should follow the configured normal-chat behavior.
  • The toggle state should persist if configured.

Do not make this feature mandatory if the administrator disables it.

---

  1. PROXIMITY JOIN MESSAGES

Implement dedicated proximity join messages.

When a player joins:

Only players within the configured radius should receive the join message.

Example:

proximity: join: enabled: true radius: 100.0

Support:

  • Configurable radius
  • Configurable message
  • World-aware checking
  • Optional self-message
  • Permission bypass

Do not globally broadcast join messages.

---

  1. PROXIMITY LEAVE MESSAGES

Implement dedicated proximity leave messages.

When a player disconnects:

Only players within the configured radius should receive the leave message.

Example:

proximity: leave: enabled: true radius: 100.0

The system must handle:

  • Normal disconnects
  • Server kicks
  • Unexpected disconnects

Do not globally broadcast leave messages.

---

  1. PROXIMITY DEATH MESSAGES

Implement dedicated proximity death messages.

When a player dies:

Only nearby players should receive the death message.

Example:

proximity: death: enabled: true radius: 100.0

Support:

  • Configurable radius
  • Configurable death message
  • Killer information
  • Death cause
  • World-aware checking
  • Permission bypass

Do not globally broadcast death messages.

---

  1. PROXIMITY RANGE LOGIC

Distance calculations must be accurate.

A player should receive a proximity event only if:

distance <= configured radius

Do not use expensive unnecessary calculations for every player.

Use squared-distance calculations where appropriate.

Players in different worlds must not receive proximity messages.

Allow configurable bypass permissions.

Example:

volatilesmp.proximity.bypass

---

  1. MESSAGE SYSTEM

Create a centralized message system.

All player-facing messages must be configurable.

Create:

messages.yml

Support:

  • Prefix
  • Colors
  • MiniMessage formatting where appropriate
  • Placeholders
  • Success messages
  • Error messages
  • Death messages
  • Join messages
  • Leave messages
  • Revival messages
  • Elimination messages
  • Command usage messages

Do not hardcode player-facing messages throughout Java classes.

---

  1. PLACEHOLDERS

Support useful placeholders such as:

%player% %display_name% %killer% %death_cause% %world% %deaths% %revivals% %status% %radius%

Only display placeholders when their data is available.

---

  1. DATABASE

Use SQLite as the default database.

The database must persist all important player information.

Suggested tables:

players

uuid username status death_count revival_count first_join last_seen last_death last_revival eliminated_at

deaths

id player_uuid player_name death_cause killer_uuid killer_name world x y z timestamp

revivals

id player_uuid executor_uuid reason timestamp

Use prepared statements.

Never construct SQL using raw user input.

---

  1. DATABASE PERFORMANCE

Never perform blocking database operations on the Minecraft main thread.

Use asynchronous database operations where appropriate.

Cache only data that is safe and useful to cache.

Flush important player data safely when:

  • Player quits
  • Server shuts down
  • Data changes

Prevent duplicate or conflicting writes.

---

  1. CONFIGURATION

Create:

config.yml messages.yml database.yml

Configuration should include:

Proximity

proximity: chat: enabled: true radius: 50.0 player-toggle: true

join: enabled: true radius: 100.0

leave: enabled: true radius: 100.0

death: enabled: true radius: 100.0

Revival

revival: enabled: true max-revivals: -1 cooldown-seconds: 0 announce: true

All important gameplay values must be configurable.

---

  1. COMMANDS

Implement:

/volatile /volatile reload /volatile status [player] /volatile revive <player> /volatile eliminate <player> /volatile chat toggle

Provide proper tab completion.

Tab completion should intelligently suggest:

  • Subcommands
  • Online players
  • Relevant player names

---

  1. PERMISSIONS

Use the standard Paper/Bukkit permission system.

Suggested permissions:

volatilesmp.admin volatilesmp.reload volatilesmp.status volatilesmp.revive volatilesmp.eliminate volatilesmp.chat volatilesmp.proximity.bypass

Do not hardcode administrator usernames or UUIDs.

---

  1. VOLATILELINK INTEGRATION

VolatileSmp may integrate with VolatileLink.

VolatileSmp must NOT implement Discord functionality itself.

When a player becomes permanently eliminated, expose an integration event/API that allows VolatileLink to receive:

  • Player UUID
  • Player name
  • Death cause
  • Killer
  • World
  • Timestamp

If VolatileLink is unavailable:

  • Hardcore functionality must continue normally.
  • Do not crash.
  • Do not disable the elimination system.

Use a clean optional integration.

---

  1. NO DUPLICATED SYSTEMS

Do NOT implement any of the following:

  • Discord bot
  • Discord account linking
  • Discord verification
  • Discord chat bridge
  • Discord elimination embeds
  • Authentication
  • Password system
  • Punishment system
  • Voice chat
  • Economy
  • Teams
  • Claims
  • Bounties
  • Custom weapons
  • Custom armor

Keep this plugin focused strictly on its defined responsibilities.

---

  1. PLAYER LIFECYCLE

Correctly handle:

  • First join
  • Normal join
  • Quit
  • Kick
  • Death
  • Revival
  • Elimination
  • Server shutdown
  • Server restart

Player data must not be lost during normal lifecycle events.

---

  1. PERFORMANCE

The plugin must be optimized for a real SMP.

Avoid:

  • Blocking main-thread database operations
  • Excessive repeating tasks
  • Unnecessary full-player scans
  • Memory leaks
  • Duplicate listeners
  • Duplicate death processing
  • Unbounded caches

Proximity calculations should be efficient even with many online players.

---

  1. SECURITY

Validate:

  • Commands
  • Player names
  • UUIDs
  • Database input
  • Configuration
  • Administrative permissions

Never trust client-provided information.

Do not allow normal players to execute administrative commands.

---

  1. ERROR HANDLING

Handle failures gracefully.

Examples:

  • Database unavailable → log clear error.
  • Invalid player → configurable error.
  • Invalid revival → clear reason.
  • Missing VolatileLink → continue normally.
  • Invalid configuration → report exact configuration problem.

Never crash the entire server because of a non-critical feature.

---

  1. PROJECT STRUCTURE

Use a clean modular architecture.

Suggested:

VolatileSmp/ ├── build.gradle.kts ├── settings.gradle.kts ├── gradle.properties ├── README.md │ └── src/ └── main/ ├── java/ │ └── <package>/ │ ├── VolatileSmp.java │ │ │ ├── core/ │ ├── database/ │ ├── player/ │ ├── hardcore/ │ ├── death/ │ ├── revival/ │ ├── proximity/ │ ├── commands/ │ ├── integration/ │ └── util/ │ └── resources/ ├── plugin.yml ├── config.yml ├── messages.yml └── database.yml

You may improve the architecture if a better modern Paper design is appropriate.

---

  1. PAPER 26.2 REQUIREMENTS

Use:

  • Java 25
  • Paper 26.2 API
  • Modern Paper APIs
  • Correct plugin metadata
  • Correct API version

Do not target an older Minecraft version.

Do not use obsolete APIs unnecessarily.

Do not package the Paper API/server itself into the final plugin JAR.

---

  1. DEVELOPMENT PROCESS

Do NOT generate the entire plugin as one huge untested code dump.

Develop and test it in stages.

Stage 1

Project setup + Paper 26.2 + Gradle

Stage 2

Configuration + message system

Stage 3

SQLite + persistent player data

Stage 4

Hardcore + death tracking

Stage 5

Elimination system

Stage 6

Revival system

Stage 7

Proximity text chat

Stage 8

Proximity join/leave/death messages

Stage 9

Commands + permissions + tab completion

Stage 10

VolatileLink API integration

Stage 11

Testing + optimization

Stage 12

Final build

After every stage:

  1. Compile.
  2. Fix all errors.
  3. Test the current functionality.
  4. Check for regressions.
  5. Continue only when the current stage works.

---

  1. TESTING REQUIREMENTS

Test all of the following.

Hardcore

  • First join
  • Normal join
  • Death
  • Death cause
  • Killer detection
  • Death counter
  • Elimination
  • Elimination persistence
  • Server restart persistence

Revival

  • Valid revival
  • Invalid revival
  • Cooldown
  • Maximum revival count
  • Revival counter
  • Revival history
  • Revival persistence

Proximity Chat

  • Nearby player receives message
  • Distant player does not
  • Different-world player does not
  • Radius configuration
  • Player toggle
  • Permission bypass

Proximity Join

  • Nearby player receives join message
  • Distant player does not
  • Different-world player does not

Proximity Leave

  • Nearby player receives leave message
  • Distant player does not
  • Different-world player does not

Proximity Death

  • Nearby player receives death message
  • Distant player does not
  • Different-world player does not
  • Correct death cause
  • Correct killer

Database

  • Save
  • Load
  • Restart
  • Multiple players
  • Multiple deaths
  • Multiple revivals

Integration

  • VolatileLink installed
  • VolatileLink unavailable
  • Elimination event sent correctly

---

  1. FINAL DELIVERABLES

Provide:

  1. Complete source code
  2. Complete Gradle project
  3. "plugin.yml"
  4. "config.yml"
  5. "messages.yml"
  6. "database.yml"
  7. Database implementation
  8. Commands
  9. Permissions
  10. Tab completion
  11. VolatileLink integration
  12. Installation instructions
  13. Configuration documentation
  14. Testing instructions
  15. Build instructions
  16. Final JAR location

Do not claim the plugin is production-ready merely because it compiles.

The plugin must be tested on an actual Paper 26.2 server before being considered complete.

---

FINAL OBJECTIVE

Create VolatileSmp as a stable, modular Hardcore SMP gameplay plugin responsible for:

Hardcore Player States

Death Tracking

Elimination

Revival

Proximity Text Chat

Proximity Join Messages

Proximity Leave Messages

Proximity Death Messages

Persistent Player Data

VolatileLink Integration

Nothing outside these responsibilities should be implemented unless explicitly requested later.

Kodari AI
KodariAug 15 at 12:18 pm 4
VolatileSmp
VolatileSmp is a modular Hardcore SMP gameplay plugin for Paper 26.2 servers. It manages persistent player states (ALIVE, DEAD, ELIMINATED) with SQLite storage, tracks death and revival history, and implements a configurable revival system with cooldowns and limits. The plugin provides proximity-based text chat, join, leave, and death messages with world-aware distance calculations and permission bypasses. It includes administrative commands for revival, elimination, and status viewing, plus tab completion and a centralized configurable message system. VolatileSmp exposes an optional integration API for VolatileLink to handle Discord elimination notifications without implementing Discord functionality itself.
  1. Project setup and Paper/Gradle metadata.

  2. Configuration, centralized messages, and SQLite persistence.

  3. Persistent player states, death tracking, elimination, and revival.

  4. Proximity chat and proximity lifecycle/death messaging.

  5. Commands, permissions, VolatileLink event API, and documentation.

Created the VolatileSmp Gradle project with:

  • Paper 26.2 / Java 25 project configuration

  • UUID-based persistent player profiles

  • SQLite database with asynchronous prepared-statement operations

  • ALIVE, DEAD, and ELIMINATED states

  • Death tracking, killer/cause/location history, and duplicate-death protection

  • Configurable elimination behavior

  • Revival system with cooldowns, limits, requirements, announcements, and locations

  • Proximity chat with toggles, radius checks, world filtering, and bypass permission

  • Proximity join, leave, and death messages

  • /volatile reload|status|revive|eliminate|chat toggle

  • Permissions and tab completion

  • Public PlayerEliminatedEvent for optional VolatileLink integration

  • config.yml, messages.yml, database.yml, plugin.yml, and README documentation

Build with:

Shell
gradle build

Expected JAR:

Plain Text
build/libs/VolatileSmp-1.0.0.jar

Actual Paper 26.2 server testing and final runtime verification still need to be performed before treating it as production-ready.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle.kts
gradle.properties
manifest.kod
README.md
settings.gradle.kts
Code
25 1,264
src/main/java/com/volatilemc/volatilesmp/VolatileSmp.java
package com.volatilemc.volatilesmp;

import com.volatilemc.volatilesmp.commands.VolatileCommand;
import com.volatilemc.volatilesmp.commands.VolatileTabCompleter;
import com.volatilemc.volatilesmp.database.DatabaseManager;
import com.volatilemc.volatilesmp.death.DeathService;
import com.volatilemc.volatilesmp.player.PlayerDataManager;
import com.volatilemc.volatilesmp.player.PlayerLifecycleListener;
import com.volatilemc.volatilesmp.proximity.ProximityService;
import com.volatilemc.volatilesmp.revival.RevivalService;
import com.volatilemc.volatilesmp.util.MessageService;
import org.bukkit.Bukkit;
import org.bukkit.configuration.file.YamlConfiguration;
import org.bukkit.plugin.java.JavaPlugin;

import java.io.File;

public final class VolatileSmp extends JavaPlugin {
    private DatabaseManager database;
    private PlayerDataManager playerData;
    private MessageService messages;
    private DeathService deaths;
    private RevivalService revivals;
    private ProximityService proximity;

    @Override
    public void onEnable() {
        saveDefaultConfig();
        saveResource("messages.yml", false);
        saveResource("database.yml", false);
        messages = new MessageService(this);

        YamlConfiguration databaseConfiguration = YamlConfiguration.loadConfiguration(new File(getDataFolder(), "database.yml"));
        String path = databaseConfiguration.getString("file", "data/volatilesmp.db");
        File databaseFile = new File(getDataFolder(), path);
        database = new DatabaseManager(databaseFile);
        playerData = new PlayerDataManager(database);
        proximity = new ProximityService(this, playerData, messages);
        deaths = new DeathService(this, playerData, proximity, messages);
        revivals = new RevivalService(this, playerData, messages);

        database.initialize().exceptionally(throwable -> {
            getLogger().severe("Could not initialize SQLite: " + throwable.getMessage());
            return null;
        });

        Bukkit.getPluginManager().registerEvents(proximity, this);
        Bukkit.getPluginManager().registerEvents(deaths, this);
        Bukkit.getPluginManager().registerEvents(new PlayerLifecycleListener(this, playerData, deaths), this);
        if (getCommand("volatile") != null) {
            VolatileCommand command = new VolatileCommand(this, playerData, revivals, deaths, messages);
            getCommand("volatile").setExecutor(command);
            getCommand("volatile").setTabCompleter(new VolatileTabCompleter());
        }
        getLogger().info("VolatileSmp enabled with SQLite persistence.");
    }

    @Override
    public void onDisable() {
        if (playerData != null) playerData.saveAll();
        if (database != null) database.shutdownAndAwait();
    }

    public void reloadConfiguration() {
        reloadConfig();
        if (messages != null) messages.reload();
    }
}