Protections

This page contains a list of all protections in jail plugin

Block Destroy Protection

A protection that prevents prisoners (and other players) from destroying blocks in jail.

Associated Settings:

EnableBlockDestroyProtection - Enable/Disable this protection
BlockDestroyPenalty - Sentence time penalty when prisoner tries to destroy block in minutes. Use 0 to disable penalty.
BlockPlaceProtectionExceptions - IDs of blocks that can be placed inside jail without triggering this protection
BlockDestroyProtectionExceptions - IDs of blocks that can be broken inside jail without triggering this protection

Associated Permissions:

jail.modifyjail - Players with that permissions are omitted from this protection and can destroy blocks.


Block Place Protection

A protection that prevents prisoners (and other players) from placing blocks in jail.

Associated Settings:

EnableBlockPlaceProtection - Enable/Disable this protection
BlockPlacePenalty - Sentence time penalty when prisoner tries to place block in minutes. Use 0 to disable penalty.
BlockProtectionExceptions - Blocks that are omitted from this protection (prisoners can destroy them). For example when you want prisoners to do some work for you in jail like placing seeds.

Associated Permissions:

jail.modifyjail - Players with that permissions are omitted from this protection and can place blocks.


PlayerMoveProtection

A protection that prevents prisoners from simply moving out of jail.

Associated Settings:

EnablePlayerMoveProtection - Enable/Disable this protection
PlayerMoveProtectionPenalty - Sentence time penalty when prisoner tries to move out of jail in minutes. Use 0 to disable penalty.
PlayerMoveProtectionAction - Determines, what happens when player moves out of jail. 3 options:

  • teleport - will keep player inside jail by simply teleporting him back each time he would want to escape.
  • escape - will simply release player out of jail, when he manages to get out (useful for Role Play servers)
  • guards - will spawn some guards when player moves out

Command Protection

A protection that prevents prisoners from using specified commands, for example /warp or /spawn.

Associated Settings:

PreventCommands - List of commands that will be prevented. Use comma to separate them. For example: "/warp,/spawn".
CommandPenalty - Sentence time penalty when prisoner tries to use forbidden command in minutes. Use 0 to disable penalty.


Interaction Protection

A protection that prevents prisoner from interacting with specific blocks (for example switching levers or igniting TNT) and prevents prisoner from interacting with specified items (for example prevent prisoners from using cookies).

Associated Settings:

PreventInteractionBlocks - List of blocks that prisoners cannot interact with. Separate multiple blocks by comma (,). For example "69,48".
PreventInteractionItems - List of items that prisoners cannot interact with. Separate multiple items by comma (,). For example "357,319".
InteractionPenalty - Sentence time penalty when prisoner tries to interact with forbidden block or item in minutes. Use 0 to disable penalty.


Explosion Protection

A protection that protects prison from being destroyed by TNT or Creepers.

Associated Settings:

EnableExplosionProtection - Enable/Disable this protection


PvP Protection

A protection that prevents prisoners to hurt each other.

Associated Settings:

EnablePVPProtection - Enable/Disable this protection


Permissions change

If this protection is turned on, player will be "transferred" to another permissions group when jailed. That will prevent them from using functions that might help him escape. You need Vault to use this feature. Associated Settings:

EnableChangingPermissions - Enable/Disable this protection
PrisonersPermissionsGroups - A list of new groups that prisoner will be changed to.
RestorePermissionsToEscapedPrisoners - Should old permissions be restored to prisoners that escaped instead of being normally released?


AFK Protection

This protection will prevent prisoners from being AFK in jail. That means that prisoners must always be active in jail and cannot just leave Minecraft open and do something else.

Associated Settings:

MaximumAFKTime - How long can person be AFK, before it gets kicked. Set to 0 to disable this protecton.


Food Control

This protection will control hunger of the prisoners, making sure that they don't starve and die or that they don't get their food meter too high, allowing them to jump over jail's walls using running.

Food bar is measured in numbers from 1 to 20. So 10 means half of the food bar full.

Associated Settings:

EnableFoodControl - Enable/disable this protection.
FoodControlMinimumFood - Minimum amount of food that prisoner can have
FoodControlMaximumFood - Maximum amount of food that prisoner can have