HomeJavaModsNexJail
NexJail
ModsJava

NexJail

Advanced & Lightweight Jail System for Paper 1.21.x. Free Minecraft Java mod for 1.21.

⬇ Download on Spigot
NexJail
Advanced & Lightweight Jail System for Paper 1.21.x

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

ABOUT

NexJail is a powerful and fully configurable jail plugin for modern Minecraft servers.

It provides permanent and temporary jails, protected jail regions, automatic inventory saving and restoration, persistent jail data, customizable messages, custom jail locations, and complete command blocking while players are jailed.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

✨ FEATURES

✔ Permanent Jail
✔ Temporary Jail
✔ Persistent Jail Timers
✔ Offline Timer Support
✔ Automatic Temporary Jail Expiration
✔ Jail Region Protection
✔ Custom Jail Center
✔ Custom Jail Location
✔ Custom UnJail Location
✔ Complete Command Blocking
✔ Configurable Blocked Command Fallback
✔ Teleport Escape Protection
✔ Block Break/Place Protection
✔ Container Protection
✔ Entity Interaction Protection
✔ Item Pickup/Drop Protection
✔ Item Use Protection
✔ Death & Respawn Protection
✔ Rejoin Protection
✔ Server Restart Persistence

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

INVENTORY SAVE & RESTORE

When a player is jailed, NexJail automatically saves their original inventory.

Saved contents include:

✔ Main Inventory
✔ Armor
✔ Off-Hand

The inventory is then cleared while the player is jailed.

When the player is released, their exact original inventory is automatically restored.

Inventory data remains persistent through:

✔ Server Restarts
✔ Server Shutdowns
✔ Player Reconnects
✔ Death While Jailed
✔ Offline Temporary Jail Expiration

NexJail is designed to prevent inventory loss and duplication.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

COMMAND BLOCKING

While jailed, players cannot use commands.

ALL commands are blocked by default.

This includes commands such as:

/spawn
/home
/tpa
/tp
/warp
/back
/gamemode
/give
/kill

and commands from other plugins.

A configurable fallback blocked-command list is also available in config.yml.

Jailed players receive:

NexJail: This command does not work in Jail.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

JAIL LOCATIONS

NexJail supports:

• Jail Center
• Jail Location
• UnJail Location

Jail Location has priority over Jail Center.

UnJail Location has priority over the normal server spawn.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

JAIL REGION

Create a protected jail region using:

/jailpos1
/jailpos2
/setjail

The region works correctly regardless of which position is higher or lower on the X, Y, or Z axis.

Players cannot escape the configured jail region.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

⏱️ TEMPORARY JAIL

Temporary jail supports:

Seconds
Minutes
Hours
Days
Weeks
Months
Years

Combined durations are also supported:

1h30m
2d12h
1w2d
1mo5d12h30m
1y2mo

Timers use real timestamps instead of simply counting down server ticks.

This means timers remain accurate during:

✔ Lag
✔ TPS Drops
✔ Server Restart
✔ Server Shutdown
✔ Player Disconnect

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

FULLY CUSTOMIZABLE MESSAGES

All messages can be customized through:

plugins/NexJail/messages.yml

Supports:

✔ Legacy & color codes
✔ Formatting codes
✔ HEX colors
✔ Gradients
✔ Custom Prefixes
✔ Custom Message Text

Example:

&c&lNexJail: &eYour pos1 has been set.

HEX example:

&#FF0000&lNexJail: &#FFFF00Your pos1 has been set.

Gradient example:

<gradient:#FF0000:#FFFF00>NexJail</gradient>

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

COMMANDS

/jail <player>
Permanently jail a player.

/jail setcenter
Set the jail center.

/tempjail <player> <time>
Temporarily jail a player.

/unjail <player>
Release a jailed player.

/jailpos1
Set the first jail region position.

/jailpos2
Set the second jail region position.

/setjail
Create the jail region.

/setjaillocation
Set the exact jail teleport location.

/setunjail
Set the exact release location.

/nexjail help
Show NexJail help.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

PERMISSIONS

nexjail.jail
nexjail.tempjail
nexjail.unjail
nexjail.jailpos
nexjail.setjail
nexjail.setcenter
nexjail.setjaillocation
nexjail.setunjail
nexjail.help
nexjail.admin

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

️ PERMISSION SAFETY

NexJail does NOT remove or modify player permissions.

It does NOT:

✘ De-op players
✘ Remove LuckPerms groups
✘ Remove LuckPerms permissions
✘ Change ranks
✘ Change prefixes
✘ Change suffixes

Jail restrictions are handled through event-based protection.

When the player is released, their original permissions and commands work again automatically.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

⚙️ CONFIGURATION

NexJail provides easy-to-edit configuration files.

Main files:

config.yml
messages.yml
jails.yml
inventories.yml

No source-code editing is required for normal configuration.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

REQUIREMENTS

Server Software:
Paper

Minecraft:
1.21 – 1.21.11

Java:
21

Dependencies:
None

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

INSTALLATION

1. Download NexJail.
2. Put NexJail.jar into your server's plugins folder.
3. Restart your server.
4. Configure config.yml and messages.yml.
5. Set your jail positions:

/jailpos1
/jailpos2
/setjail

6. Set your jail location:

/setjaillocation

7. Set your release location:

/setunjail

8. NexJail is ready to use.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

SUPPORT

If you find a bug, please provide:

• Minecraft version
• Paper version
• NexJail version
• Console error
• Steps to reproduce the issue

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

© NexJail

Commands

Plugin details

Read from the plugin's own plugin.yml.

NexJail is a free Minecraft Java mod. Compatible with Minecraft 1.21. Downloaded 11 times (via Spigot). Download it and open it directly in the game.

Explore more