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!
Hello there, I seem to be having some troubles with SwornJail. If i install it a lot of other plugins seem to stop working and ask the "is it up to date" for those.
I am using the stable build CB 1.3.1-R2.0 http://pastebin.com/pLHtA57h
I really like the plugin and wish to continue using it. Is there a possibility to add the function to disable people from building and breaking blocks after being jailed?
@KittyHopHop
Sure I can do that, will be up in the next release build. I think the current beta is ready to go release soon.
Still a lot of things I haven't tested though so feel free to download the beta and test it and report any bugs.
@KittyHopHop
I agree
Why dont you add a setting so that players are automaticly muted when jailed so you dont haveto type 2 commands everytime /jail and /jailmute -.- it's annoying!
@KillingShad0w1503
Well finally organised myself and released a new beta build which includes jail protection.
@t7seven7t
I have spawn protection set up, thing is...my build jail is nowhere near my main spawn...
@KillingShad0w1503
Does your server have no means of spawn protection?
Hey, just finished setting up a jail and stuff, and it all works perfectly! I gotta give you credits for it, I can finally keep the grievers at bay!
But there's one thing that bothers me....jailed noobies can still break stuff inside the jail...Is there a way you can put in an option to disable placing/breaking blocks etc. ...?
If people go ot of the server and enter again they can scape jail...
@Aquaserge1823
Load permissions?
Whitelisting commands should be as simple as adding the command as you would use it in game to the whitelisted-commands list. Here's the page on that: http://dev.bukkit.org/server-mods/swornjail/pages/whitelisting-commands/
As for the wiping. Not sure whats causing that while the server is offline, I can only reproduce it while the server is online. Nevertheless I've updated the plugin to fix this - thought I had done so long ago but this one should definitely do it.
@t7seven7t
What format should the whitelist be in? My server uses PermissionsEx and every time I attempt to load permissions, they get wiped... even when I do it while the server is offline. Is there a certain format to it?
How can i ser whitelist commands? i put like you:
- login
for example, but when i reload the commands disappear from the config
if nick contain dot ( baa.90) plugin dont start after restart
in# mates: masson33: 4.0|4|false|bat_bsv kriper: 180.0|mat_on_table|false|bat_bsv dimacik: 39.9|????|false|Remix kresh: 28.9|?|true|Remix jeka1998: 2.3|kill_businka|false|bat_bsv drt: 19.3|spam|true|Remix nikita-ksk2: 13.9|???|true|Remix haker456: 46.1|mat|false|Remix dima4ikol: 10.0|10|false|bat_bsv umka98: 30.0|30|false|bat_bsv ymka98: 238.8|????|false|Remix vitas: 57.9|???????????|true|KriSSStiaN bat_bsv: 9.3|10|false|bat_bsv baa: '90':7.9|mat|false|bat_bsv
two last lines -error record (nick baa.90)
@Mayhem777
You can't. There is only one jail.
How can i set more than 1 jail? thanks!
Not to sure. I've never looked at the codebase and I've yet to use the whitelist command.
@SniperFodder
What format should the whitelist be in? My server uses PermissionsEx and every time I attempt to load permissions, they get wiped... even when I do it while the server is offline. Is there a certain format to it?
@t7seven7t
That's fine. The simple boundaries are why I was attracted to the plugin in the first place. It just happened that as I was designing my jail that the design got a little more... complex lol. I'll just work around it.
@SniperFodder
I intend to keep the jail boundaries as simple as possible so the short answer is no. If I knew more about the worldedit api it might be possible but at the moment I'm busy with other projects.
@t7seven7t
Sweet. Thanks!
EDIT:
Any possible way to handle polygon shapes for the jails? Or is that too complex and goes beyond the scope of this plugin?