This plugin adds a jail system to your Minecraft server with various features:
- Setting the Jail Location:
- Command: /setjail
Allows setting the jail's location. - The coordinates are stored in config.yml, and players are teleported to this location when jailed.
- Command: /setjail
- Jailing a Player:
- Command: /jail <player> [time][unit]
Jails a player for a specified duration. Time can be given in seconds (s), minutes (m), or hours (h).
If no time is provided, the jail is permanent. - The jailed player has their interactions restricted (e.g., breaking blocks, attacking, accessing inventory, etc.).
- Command: /jail <player> [time][unit]
- Releasing a Player:
- Command: /unjail <player>
Releases a player from jail and teleports them to the server spawn.
- Command: /unjail <player>
- Automatic Distance Check:
- Players who move beyond the allowed distance from the jail (configurable in config.yml) are automatically teleported back to the jail.
- Configurable via config.yml:
- All messages can be customized in config.yml.
- Maximum allowed distance from the jail can also be set (jail.max_distance)
-
Code (YAML):jail:
world : "world"
x : 0.0
y : 64.0
z : 0.0
max_distance : 10.0
- Reloading Configuration:
- Command: /jailreload
Reloads the configuration from config.yml without restarting the server.
- Command: /jailreload
- world, x, y, z: The world and coordinates of the jail.
- max_distance: Maximum allowed distance (in blocks) players can move away from the jail.
- Messages:
- All plugin messages (e.g., jail notifications, release messages, distance alerts) are customizable under the messages section.
- jailplugin.setjail: Allows the use of /setjail.
- jailplugin.jail: Allows the use of /jail.
- jailplugin.unjail: Allows the use of /unjail.
- jailplugin.reload: Allows the use of /jailreload.
- Supported Versions: Compatible with the latest Minecraft server versions.
- Author: Developed by Mesiacik.
- Email: [email protected]
- Applied and tested on live server: majnuj.com
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft version listed: 1.21
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Spigot — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
JailPlugin is a free Minecraft Java mod. Compatible with Minecraft 1.21. Downloaded 426 times (via Spigot). Download it and open it directly in the game.