HomeJavaModsJail Logic
Jail Logic
ModsJava

Jail Logic

by n3mmuss · on Modrinth

The Jail (Logic) Mod is a server-side mod lets you imprison players in a virtual prison, blocking their interactions with the world until released. It's…

⬇ Download on Modrinth
Jail Logic — screenshot 1Jail Logic — screenshot 2Jail Logic — screenshot 3Jail Logic — screenshot 4

Jail Mod (Fabric)

The Jail Mod is a server-side mod that allows you to imprison players in a virtual prison, preventing them from interacting with the world until they are released. It is perfect for Minecraft servers where you want to impose temporary penalties or temporarily limit the movement of certain players.

jail

Key Features

How to use:

  1. Build a prison (a closed structure).

  2. Set the coordinates where you want the prisoner to spawn with the command /jail set x y z  (example /jail set 0 60 0)

  3. Reload the configuration using /jail reload .

  4. Send someone to jail with /jail playerexample 120 Griefing.

  5. If you don't want to wait for the prison time you set in seconds (example 120 seconds), you can release the player early with the command /unjail playerexample

Requirements

Installation

  1. Place the mod's .jar file in the mods folder of the Minecraft server.
  2. Start the server to generate configuration files.

Available Commands

1. /jail player time reason

2. /unjail player

3. /jail info

4. /jail reload

5. /jail set

Interactions blocked during jail

When a player is jailed, they cannot do the following:

Automatic release

Configuration file

config/jailmod/config.json

This file is automatically generated and allows you to configure the jail's location and the player's release location. Here are the options you can find:

Example configuration:

    {
    "use_previous_position": true,
    "release_position": {
      "x": 100,
      "y": 65,
      "z": 100
    },
    "jail_position": {
      "x": 0,
      "y": 60,
      "z": 0
    }
    }

config/jailmod/language.txt

This file contains the messages that are displayed in-game, customizable to match the tone or style of the server. If the file does not exist, it is automatically generated with default messages. Here are some of the messages you can modify:

Default language.txt example:

    jail_player=You have been jailed for {time} seconds! Reason: {reason}
    jail_broadcast={player} has been jailed for {time} seconds. Reason: {reason}
    unjail_player_manual=You have been manually released from jail!
    unjail_broadcast_manual={player} has been manually released from jail!
    unjail_player_auto=You have been released after serving your sentence.
    unjail_broadcast_auto={player} has been released after serving their sentence.
    block_interaction_denied=You cannot interact with blocks while in jail!
    entity_interaction_denied=You cannot interact with entities while in jail!
    bucket_use_denied=You cannot use lava or water buckets while in jail!
    item_use_denied=You cannot use items while in jail!
    block_break_denied=You cannot break blocks while in jail!
    jail_info_message=You are in jail for another {time} seconds. Reason: {reason}.
    not_in_jail_message=You are not in jail!

Usage Tips

Use the /jail reload command after changing configuration or language messages to apply the changes without having to restart the server. Always specify a clear reason for the jailing, so the player knows why they were jailed.

Usage Examples

Set Jail spawn position:

/jail set 0 60 0

Jailing a player for an unfair action:

/jail Alex 600 Offending another player

This jails Alex for 10 minutes with the reason "Offending another player".

Checking jail time:

/jail info

A jailed player can use this command to check how much time they have left.

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.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more