Create multiple prisons where you can send naughty players indefinitely or for a specified amount of time
Permissions
jail.admin- Required to use the /jail chat commandjail.canenter- Allows players to enter a restricted jail zone
Chat Commands
/jail- Display help menu/jail create <name> <spawnfile> <zoneId> <opt:kit>- Create a new jail by supplying the required parameters. Setting a kit for this jail is optional/jail remove <name>- Remove the jail with the specified name/jail list- List all jail names/jail send "<player name or Id>" <opt:time> "<opt:reason>" "<opt:jailname>"- Send the specified player to jail. You can optionally specify a amount of time (in seconds), a reason why they are going to jail and select which jail to send them to./jail free <player name or Id>- Free the specified player from jail/jail clear <jailname>- Release all inmates from the specified jail
Console Commands
jail list- List all jail namesjail send "<player name or Id>" <opt:time> "<opt:reason>" "<opt:jailname>"- Send the specified player to jail. You can optionally specify a amount of time (in seconds), a reason why they are going to jail and select which jail to send them to.jail free <player name or Id>- Free the specified player from jailjail clear <jailname>- Release all inmates from the specified jail
Creating a Jail
To create a jail you will need to do atleast 3 things first.
Create a jail building.This is not necessary, you could leave players on a iceberg if you want to.Create a spawnfile.This is used to spawn inmates inside the prison. The maximum amount of inmates per jail is determined by how many spawnpoints you add to your spawnfileCreate a zone. This is used to ensure jailed players stay inside the jail, and is also useful for protecting your jail structure. You can add any zone flags to it that you wishCreate a jail kit. This is optional, but if you want your inmates to be wearing prisons clothes you have the option
Once you have completed those steps you can add a jail using the chat command show above.
Configuration
{
"Allow chat between inmates (when chat is blocked)": true,
"Allow players to escape jail": false,
"Automatically release prisoners when their sentence has expired": true,
"Blacklisted commands for prisoners": [
"tp",
"event",
"tpa",
"tpr",
"s"
],
"Block chat for inmates": true,
"Broadcast player imprisonment globally": true,
"Disable damage dealt by prisoners": true,
"Give prisoners a designated kit": true,
"Restrict public access to prison zones": true,
"Return prisoners belongings if they escape jail": true,
"Return prisoners to the position they were incarcerated at when released": true
}
Configuration Options
"Block chat for inmates"- This blocks prisoners from using global chat"Allow chat between inmates (when chat is blocked)"- This is only applicable when you have blocked chat for prisoners. It allows prisoners to use chat but only other prisoners in the same jail can see what they type"Allow players to escape jail"- Setting this option to true will not enforce players to stay inside the jail zone. If they manage to get out their jail sentence will be erased and they will be free to go"Return prisoners belongings if they escape jail"- If a prisoner manages to escape their belongings they had on them at the time of incarceration will be restored."Broadcast player imprisonment globally"- This will display a message in global chat when someone is imprisoned"Disable damage dealt by prisoners"- Completely disable any damage done to anything by prisoners"Automatically release prisoners when their sentence has expired"- When a prisoners sentence has expired they will automatically be restored and kicked to the outside of the prison zone"Return prisoners to the position they were incarcerated at when released"- When a prisoner is released they will be teleported back to the location they were at the time of incarceration"Give prisoners a designated kit"- Enabling this will give the prisoner the specified kit when they enter the prison. If you have not set a kit for the prison they will receive nothing"Restrict public access to prison zones"- Keeps non-prisoners out of any prison zone"Blacklisted commands for prisoners"- This is a list of blacklisted chat commands for prisoners. This is useful to block prisoners from entering a event, opening a store or teleporting out
MIT License
Copyright (c) 2019 k1lly0u
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

