Jail

Configuration

config.yml and jails.yml

There are two config files in jail: config.yml and jails.yml. First one contains global options, which are applied to all jails that do not have their own option.

jails.yml contains per-jail settings. That means that every setting here will be bound to specific jail. For example:

   MyJail:
    Protections:
        EnableBlockDestroyProtection: false
    StoreInventory: false

Above example will disable block destroy protection and inventory storage in jail named "MyJail". Every other setting will read from global config, since It's not specified here.

Protection settings

see Protections.


Guards settings

see Guards


JailStick settings

see JailStick


JailPay settings

see JailPay


MySQL Settings


UseMySQL

Should jail data be saved in MySQL? If false, SQLite will be used.

MySQLConn

MySQL connection string (only needed when using MySQL)

MySQLUsername

Username for MySQL database (only needed when using MySQL)

MySQLPassword

Password for MySQL database (only needed when using MySQL)


Miscellaneous settings


SelectionTool

Tool that is used for selecting jail. Default is wooden sword.

ExecutedCommandsOnJail

Here you can specify commands that will be executed when jailing someone. For example you can make him deop when he is jailed or stuff like that.

These commands will be run as console. Unfortunately, many plugins does not support commands from console, so test it first (just type command into server console to see the result).

You can specify multiple commands, separate them by semicolon (;) and don't use beginning slash! (for example: `deop <Player>;slap <Player>`). You can use Prisoner tags in this setting.

ExecutedCommandsOnRelease

Same as above, except that commands will be execute when player is released, not when he is jailed.

DeleteInventoryOnJail

Should prisoner's inventory be deleted when he is jailed?

AutomaticMute

When prisoner is jailed, should he be muted by default?

NearestJailCode

When you want to specify reason, but not jail, you still have to type in jail name, because jail command works that way. But instead of jail, you can specify "nearest jail code", which will automatically select nearest jail. By default this is, `nearest`, but if you have jail with that name, here is option to change it.

StoreInventory

Shoud prisoner inventory be stored when he get jailed and then returned when he gets released?

SignText

This setting determines, what will say on cell sign. Define 4 lines, separated by [NEWLINE]. You can use Prisoner tags in this setting.

Each line of sign can only hold up to 15 characters so make sure that there is not too much text in it.

AlwaysTeleportIntoJailCenter

If you are using teleport as movement protection action, plugin will simply prevent player from moving outside (he will stay inside even if holding movement keys). By setting this to true, you will activate old behavior which always teleports prisoner to teleport point of the jail when he tries to escape.

CanPrisonerOpenHisChest

By default, prisoners cannot open their chests, since that would kinda ruin the purpose of inventory storage (prevent prisoners from using their items in jail). But if you have role play server, your prisoners are supposed to escape. And when they escape, they don't get their items back. So you can turn this setting on to let prisoners open their own chests and grab their items. Prisoners still need `jail.openchest` permissions to open chests.

ReleaseBackToPreviousPosition

By default, prisoners will be released to the release point of the jail. But if you enable this setting, prisoners will be jailed to point, where he was jailed from. For example if prisoner was in his house when you jailed him, he will be teleported back to his house after releasing.



IgnorePrisonersSleepingState

This setting will enable ignoring sleeping state of prisoners. That means that if everyone else on the server is sleeping, night will turn into day even if prisoners are not sleeping. Use this to prevent prisoners from annoying other players by preventing them from changing night to day.



TeleportPrisonerOnRelease

Should we teleport prisoner after he is released? Disable this option if you want to use your own teleportation method after release.



Debug

Enables debug mode that will output additional information that might help resolve issues to debug.log inside Jail folder.



DefaultJailTime

When you jail prisoner without specifying time, this time will be used.



MaximumReasonLength

Maximum length for a reason. Enter 15 to make sure reason will always fit to a sign. 250 is maximum.

UseBukkitSchedulerTimer

Enabling this will make Jail use Bukkit Scheduler instead of Java timer. This can be helpful if you are having problems like prisoner's time not counting down. However, this relies on speed of the server. So if your server is running slower than full speed, counting down will also be slower.

You must login to post a comment. Don't have an account? Register to get one!

  • 7 comments
  • Avatar of Dalek5961 Dalek5961 Dec 19, 2012 at 01:14 UTC - 0 likes

    is there a way to enable pvp while they are in jail, for riots and what not? if so how?

  • Avatar of Tech_Lewis Tech_Lewis Aug 26, 2012 at 04:57 UTC - 1 like

    Would it be possible to clear a cell completely "automatically" if the jailed player goes offline for more than a set amount of time, and possibly clear their inventory as well. The cells get used up quickly on my server, and a lot of the jailed players leave for days-on-end, when they do this the cell remains registered to that player, and it clogs up all of my cells. Even with CountOfflineTime: true, the timer remains on 0.0 until the player returns to the server. any help is appreciated. :D

  • Avatar of Nfell2009 Nfell2009 Jun 09, 2012 at 12:08 UTC - 0 likes

    my players fall out of the jail when i jail them and then they cant speak and i cant unjail them please help!!

    MyMinecraft


    The new forums for Minecrafters! Join Now: MyMC.bugs3.com (Proper domain coming soon :P)

  • Avatar of Dasachi Dasachi Feb 04, 2012 at 02:25 UTC - 0 likes

    im the owner of my server, but sometimes my admins get a little too power happy. and id like to be able to jail them, but i cant without first deopping them and removing them from the admin group. how do i make it so i have the power to jail all groups that are lower than mine(which is owner)

  • Avatar of Mr_H4mm3r Mr_H4mm3r Jan 17, 2012 at 18:23 UTC - 0 likes

    @re4397: Go

    If you have set the jail time the players needs to be online, this will help them not to be afk "away from keyboard" It will kick them automatical. You can disable this by typing 0 :-)

    DiaCraft My server :-D

  • Avatar of re4397 re4397 Jan 17, 2012 at 17:44 UTC - 0 likes

    what is "MaximumAFKTime: 5.0" ? and how disable this ?

  • Avatar of jasiu2002 jasiu2002 Nov 10, 2011 at 20:25 UTC - 0 likes

    IgnorePrisonersSleepingState is helpfyl cuz, i made my jail beds more jail style. not sleep-able but looks jaily.

  • 7 comments

Facts

Date created
Aug 27, 2011
Last updated
Dec 20, 2012

Author