SwornJail
SwornJail
Description
SwornJail adds a single region-defined jail for your server. It was created because our server needed a balance between the levels of functionality of existing jail plugins. Where other jail plugins might mess with the permission groups of your players, SwornJail instead blocks commands and teleports users back to jail when they try to escape. The plugin teleports players into jail when jailed and to a configurable position when unjailed.
SwornJail was produced for the server MineSworn. Check out my other plugins here
Features
- Single jail that is defined by a region which inmates cannot escape
- Optionally, inmates cannot use commands in jail and can be muted. Commands can be whitelisted
- Command for inmates to check their jail reason and remaining jail time.
- Jail list is stored in flat-file
- Can jail both online and offline players (auto-complete is supported for online players)
- Jail can be in any of your worlds
- Jail time and reason can be modified while inmate is serving their sentence
- Inmates must be online to serve their sentence.
- Blocks players from dropping or picking up items while in jail.
- Smaller in size than similar jail plugins.
Usage
Jail time can be written as any non-negative number and supports the suffixes d/h/m for days/hours/minutes respectively. For example, to jail someone for an hour you can simply enter their jailtime as 1h. If no suffix is supplied the time will default to minutes.
Setting up jail
To set up jail just use /jailset and follow the instructions. The points will be set at wherever the position of your feet are. Use /jailset cancel at any time to cancel setting up the jail.
The image below shows that you would need to stand in two opposite corners of a 3d region when setting up the jail. Everything within the shape enclosed by those two points is part of the jail region. In order for your players to move around and for the jail to function correctly you must set this up right.

Changelog
The full changelog can be found here.
Version 2.3
- Recompile for 1.4.2 dev builds
- Added some debugging lines that can be enabled in config.
Version 2.2
- AFK players should no longer have their time count down if set not to in the config.
- Added configurable option for how often jail saves.
Version 2.1
- Removed permission for /jailhelp.
- Fixed bug where players who have been unjailed will stay in jail after /jailreload or server restarts.
Version 2.0
- Completely rewrote plugin backend... again :D due to too many problems with last build.
- Changed how jail is saved and loaded, split the jail part of the config file into its own file. Added compatibility for loading older configs and inmate lists into this new version.
- Added lang file to modify the message for every jail-related message in game.
- Jailreload command is back!
- Added config options for block protection, and whether inmates can pickup or drop items.
- Lots of bugfixes.
Check out my other plugins including a cool MidiRadio player here!
Visit the server where SwornJail started and t7seven7t still plays on!

-
View User Profile
-
Send Message
Posted Apr 26, 2014@Darunia18
Yes, when DBO allows me to upload CB 1.7.5+ files. Link Removed
-
View User Profile
-
Send Message
Posted Apr 18, 2014Hey I'm just wondering, do you plan on updating this plugin to work with UUIDs? This is something that is really important. We have been using your plugin for about two years now, and we haven't found a plugin we like better than this one. Do you plan on updating to UUIDs or should we try looking elsewhere? :/
-
View User Profile
-
Send Message
Posted Sep 11, 2013maybe SwornJail can making a new rule.
if player in jail, they can not hitting or place...
-
View User Profile
-
Send Message
Posted Aug 21, 2013Love the plugin guys, Just a suggestion maybe, Saved Inventories? So when they get jailed it saves their inventory and gives it back to them when they leave.
-
View User Profile
-
Send Message
Posted May 19, 2013Adding the permission node swornjail.jailcheck to groups does not allow access to /jailcheck
-
View User Profile
-
Send Message
Posted May 18, 2013Jail counters break and dont count down
-
View User Profile
-
Send Message
Posted Mar 27, 2013@t7seven7t
Yes, please release it! I'm sure many people would find it very useful, including myself!
-
View User Profile
-
Send Message
Posted Jan 18, 2013@t7seven7t
Release SwornGuard! People will love it!
-
View User Profile
-
Send Message
Posted Jan 14, 2013Hey! So this is the plugin you use for the jail...
-
View User Profile
-
Send Message
Posted Jan 10, 2013This plugin should still function fine though I have noticed some major issues that can arise due to how I used to do task scheduling. I have updated this plugin a lot since then however unfortunately it is now part of another plugin that I've produced for a server that I develop for. I'm willing to release that plugin but I am not sure of how much use it will be to other servers.
The new plugin which I have dubbed "SwornGuard" has a few cheat detection mechanisms (fly, spam, xray, etc), response systems (teleporting but less abusable for staff) and of course the jail to top it off - so it is kind of an all in one suite for catching rule breakers. You can obtain the source for it on my github page if you'd like to try and pull the jail out of it somehow or build the plugin for yourself.
-
View User Profile
-
Send Message
Posted Jan 3, 2013@GoldcraftPVP
I think i can continue the plugin, but i have too many projects right now, if gives problems to 1.4.6 i'll update it with the author permission.
-
View User Profile
-
Send Message
Posted Nov 22, 2012Have you given up on the Plugin?
-
View User Profile
-
Send Message
Posted Nov 18, 2012There's no permission to prevent being jailed? moderators can jail a moderator or even an op!
-
View User Profile
-
Send Message
Posted Nov 18, 2012I'm still having this problem:
After the player has served his/her time, they teleport back to spawn, but the jail brings them back. Also, they tried teleporting to me, and it worked. However, as soon as the player teleports to me, he/she is sent BACK to jail.
-
View User Profile
-
Send Message
Posted Nov 18, 2012Hi there. I think the inmatesTimeDoesNotCountDownWhileAFK option doesn't work : I have it set to false but when someone is offline their time does not count down.
-
View User Profile
-
Send Message
Posted Nov 15, 2012Yes the old config doesn't work that's why i get this error, i made the region again and it's working thanks :)
-
View User Profile
-
Send Message
Posted Nov 14, 2012After the player has served his/her time, they teleport back to spawn, but the jail brings them back. Also, they tried teleporting to me, and it worked. However, as soon as the player teleports to me, he/she is sent BACK to jail.
-
View User Profile
-
Send Message
Posted Nov 10, 2012@DeadIntermediate
Same error as Mayhem is getting. Follow /jailsetup steps once and it will go away. I'll fix it in the next update.
-
View User Profile
-
Send Message
Posted Nov 9, 2012@DeadIntermediate
I sent a ticket to you.
-
View User Profile
-
Send Message
Posted Nov 9, 2012@Mayhem777
Looks like I forgot to check if the jail exists somewhere. Do you have a jail region set up?