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!
I get this error in 1.4.2 r0.2:
http://pastebin.com/FLT5BCDS
@DeadIntermediate
Copy errors into http://pastebin.com/ then send me them. I'll take a look at it.
I am not sure if it's a bug or my server, but when I put in the SwornJail plugin my plugin folder, alot of errors has came up.
@GoldcraftPVP
Thanks, I'll fix that bug right away. I'll also remove the permission for the help command. It will only display help for the commands which players have permission for.
I'm having some problems with this plugin, i'll list then and hopefully you can fix them as soon as possible.
When i reload the plugin it sends everyone that had ever been jailed before back to jail even if they served their sentince or got unjailed, this also happens when i stop and start the server back up.
Another problem is that the permissions for swornjail.help is not working, OPs can use it but when i set that permissions for moderators they can't do the command.
@BangL
That's fine with me, but I'll upload the source on to github in a moment and add the link to it here.
You say its GPL3, but where is the code? Are you fine with it when i decompile?
Just uploaded a new build. When it appears lets see if it fixes most of the issues you guys are having. In particular the issues @holo233 raised should be resolved. Not sure why the plugin wasn't working for those of you on the most recent recommended build though, as this works on both my personal test server and a live server I work with.
latest version wornJail v1.2.0 for CB 1.3.2-R1.0 /jailreload doesn't work
as has used for some days I have some test report to you
1. it seems that the caps bug between inputed and the saved data only happens after I have already jailed 2 person with that commond Continuously.
2. the config for the jailtime to the afk peope may be not work for I have already set it to false but still the time counts when the people is akf
@Mayhem777
same D:
I tried with the new "R: SwornJail v1.2.0 for CB 1.3.2-R1.0 " and get same error, server crashes.
I've tried the latest version. it't true that the problem occurring with players not being in jail but not being able to escape either is fixed
BUT acturally, it's still shown that the player is in jail when he is offline,and not in jail when he is online. I think the problem is caused by the name matching, for I input "/jail MYBABY 1h test" when he is offline ,then returns "mybaby has been jailed",and the name in the data is also stored as "mybaby" and that caused that he's not in jail when he is online. but it's strange that I had tried some other names, and here;s the result: MAXDX -> MAXDX;YunGe ->YunGe;the fronter name work well,but the later ones: Devil1 -> devil1 ; MYBABY -> mybaby ; Keven -> keven;. I don't understand why only parts of them changes while others stored well.
if the caps of the name changes ; the bug will occure. and I can not truely unjail a person when he is offline. it always return "XXX is unjailed" while the data of that person not deleted.
I jailed Devil1 when he is offlline , and the name in data is saved as devil1 when he loged in , he is not in jail. and I can't check his jailtime. then I jailed him again ,and the name saved as Devil1 because he is online.
then I checked inmates.dat file. it shows 2 details. one is devil1,another is Devil1 maybe the problem is just at saving when I input names and matching when the offline-jailed inmate logs in.
and last I wonder if it is convient to add a config option for whether inmates can pick up items in jail. so that they can pickup there items if they died
I've tested the server ONLY with:
B: SwornJail v1.2.0c beta for CB 1.3.2-R0.1 Sep 10, 2012
MC 1.3.2 CB R1
@t7seven7t
thanks for reply I found something more that may be caused by the caps of the letter in the player's name because today another OP jailed a player and he input the correct name such as "MYBABY" when the player is offline it seems worked well but I had just input lower case like "mybaby"
wish this may help you
@holo233
I had some issues with this on our server too, should be fixed in the latest release. Let me know otherwise, I haven't caught any more instances of it yet.
@Mayhem777
Interesting.. What other plugins are you using and which version of SwornJail are you on?
Crashes with 1.3.2 R1:
http://pastebin.com/Z2HCKEr0
I remove this plugin and all works fine
hello,there's a problem that if a player is jialed offline, I can't see one player's jail time while he logs in but can see it when he is offline. I may use /unjail commond when he is offline,and the reply is "XXX has been unjailed".but acturally he is still in jail.
when he is online , it shows "that player isn't in jail",. And also, he can use commmonds,but he can never leave the jail region. Once leave ,he'll be pulled back.
the version is 1.3.2 r0.1
@t7seven7t
Thank you for your reply!
I already thought something like that.
I've tried several Jail plugins and its really hard to find one that is good and actually works with the latest Minecraft versions. Your Plugin on the other hand is even so updated that my own Craftbukkit isn't even up to date yet ;-) (due to several plugins I'm waiting for to be compatible with a newer CB build).
I will test a little bit with a newer CB build and see which plugins work and don't so that i at least can use the latest SwornJail.
Keep up the good work. Not all of us are waiting for UltimateJail to be released. Your plugin is enough to keep griefers at ease. Am happy you implemented the disallowence of modifying blocks :).
@JK82NL
Hi, there was an issue with Bukkit's scheduler cancelling tasks incorrectly in that build. The issue was fixed in this build. Either continue using an older version of SwornJail for now or update to one of the development builds. Hopefully the bukkit team will release a new recommended build for 1.3.2 soon.
In the most recent beta builds for this plugin I've completely disallowed modifying blocks within the jail unless a player has a certain permission node to govern otherwise.
Thanks for the feedback =)