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".
---
- 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
---
- 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.
---
- DEATH SYSTEM
When a player dies:
- Detect the death.
- Determine the death cause.
- Determine the killer if applicable.
- Increment the player's death count.
- Record the death.
- Update the player's Hardcore state.
- Create a revival record.
- Send the appropriate proximity death message.
- Apply the configured death behavior.
- Determine whether the player becomes permanently eliminated.
Death handling must be reliable and must not trigger twice for a single death.
---
- 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.
---
- 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.
---
- 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.
---
- 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
---
- 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.
---
- 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.
---
- 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.
---
- 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.
---
- 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.
---
- 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.
---
- 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.
---
- 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
---
- 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.
---
- 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.
---
- 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.
---
- 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.
---
- 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.
---
- 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
---
- 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.
---
- 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.
---
- 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.
---
- 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.
---
- 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.
---
- 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.
---
- 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.
---
- 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.
---
- 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.
---
- 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:
- Compile.
- Fix all errors.
- Test the current functionality.
- Check for regressions.
- Continue only when the current stage works.
---
- 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
---
- FINAL DELIVERABLES
Provide:
- Complete source code
- Complete Gradle project
- "plugin.yml"
- "config.yml"
- "messages.yml"
- "database.yml"
- Database implementation
- Commands
- Permissions
- Tab completion
- VolatileLink integration
- Installation instructions
- Configuration documentation
- Testing instructions
- Build instructions
- 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.