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!
@SniperFodder
Thanks! Should no longer do this now, it will now select the default world if none is provided.
Couldn't find a ticket system to put this, so here we go!
nice simple penal system for minecraft - thank you :)
one minor change would be nice though (if its not just me being stupid...) .
Can you turn of the 'everything is ok' alarm that spams the console i.e "2012-07-06 21:49:35 [INFO] [SwornJail] Jail List Sucessfully Saved!" - its not really required,
i'm an optimistic kind of guy and assume that everything is ok unless im told otherwise.
@jbanto
@Tepatiitti
Seems at the moment the only way to edit the whitelist is while the server is off :(. I'll try to fix this.
EDIT: Think I just fixed this, there was a mix-up in the order that the file saved.
@Tepatiitti
I am having this problem too sort of, when I restart the server it resets the config to default and I lose the messages/whitelist/jailregion EDIT: nvm, i figured it out, my message for jail exit contained /rules instead of just rules which threw an error on console
Whitelisting commands won't work, when reloading the plugin, all whitelisted commands erases.
<<reply 774828="">>
Thanks your Awesome! Gonna try it right away (L)
@ZwPBerserk
Added in 1.1.3 :)
Just add the commands you allow players to use as a list (can either put them inside the square brackets with commas separating or delete the brackets and use hyphens for each command) in the config file under "whitelisted-commands" except without the "/"
Possible to whitelist certain commands? like.. /login
?
<<reply 717128="">>
Thanks! :)
@Weirdo1984
Simple and done! =)
Hi there, is it possible you make it so the jail command is usable from the console? Now it just gives me a message stating I'm not a player, so I need to start up minecraft only to jail someone.
Greetings!
@sillyrosster
They should be able to, have you set up the region correctly? Picture a cube, you need to stand in one of the bottom corners and then the corner diagonally opposite to that on the top of the cube. I'll see if I can add an image to clear any ambiguity.
Uhm, I want my players to move when jailed, is this possible?
@kcorb90
I could do this by adding a location to each jailed player in the flat file though I'm not planning to. I feel that letting them out somewhere that server owners can choose is extra punishment to whatever sentence you give them. For some servers it will be easy for players to get back to their location before they were jailed and for some it won't. This is more likely something you want to take into account when you are jailing players. Mind you, if for some reason I am bored one day I might add a chunk of code to add configuration for this.
How can you set it so players are teleported back to their original place after being unjailed
@t7seven7t
Wonderful! :-)
Adding bPermission's nodes can be troublesome at first, but eventually you get the hang of it ;-) (sometimes i just shutdown the server in order to add/enter the nodes directly to the .yml, if there aren't (m)any people on).
I'll be going back to my server now, as there's someone that has to be jailed (yay...lol)
- ThisUsernameIsMine
@ThisUsernameIsMine
Thanks, the newest v1.0.4 of SwornJail should be compatible with the latest version of bPermissions now. To get it to work I had to use the in-game bPermissions commands to give myself the nodes though.
Yes jail time is in minutes, will add to OP to clear ambiguity.
Also, if I were to implement time formatting it would probably be the next major release build. Currently how time counts down, seconds wouldn't work - a choice I made to have timers executing code less frequently.
@predawnia
This is fixed as of 1.0.4
@t7seven7t
Redone y coords and it works :-)
I'm running bPermissions v2.91 (latest)
edit: is jail-time in minutes?
Perhaps the following format makes it more customisable/readable:
s (seconds)
m (minutes)
h (hours)
4h10m5s (would jail someone for 4 hours, 10 minutes and 5 seconds)
Thanks!
- ThisUsernameIsMine
Running CB#2126 with SwornJail 1.0.3 encounter error in console,
http://www.pastie.org/3724640