Home›Java›Mods›JailPlugin
JailPlugin
This plugin adds a jail system to your Minecraft server with various features:

  1. 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.
  2. 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.).
  3. Releasing a Player:
    • Command: /unjail <player>
      Releases a player from jail and teleports them to the server spawn.
  4. Automatic Distance Check:
    • Players who move beyond the allowed distance from the jail (configurable in config.yml) are automatically teleported back to the jail.
  5. 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
  6. Reloading Configuration:
    • Command: /jailreload
      Reloads the configuration from config.yml without restarting the server.
Configuration (config.yml):
Permissions:
  1. jailplugin.setjail: Allows the use of /setjail.
  2. jailplugin.jail: Allows the use of /jail.
  3. jailplugin.unjail: Allows the use of /unjail.
  4. jailplugin.reload: Allows the use of /jailreload.
Technical Details:

Commands

Plugin details

Read from the plugin's own plugin.yml.

Quick facts

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.

Explore more