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!
@sillyrosster
They can move around within the borders of the jail region that you define. Be sure to use /jailset to set that up.
@ThisUsernameIsMine
At the moment I'm using the inbuilt bukkit permission check, I'll look into how bPermissions works and try to fix it when I get some time to do so tomorrow. Can you let me know which version of bPermissions that you are running?
The borders have a y coordinate so ensure that the two points you select are at different heights too.
Is there a config option to allow them to move?
@t7seven7t
Groovy (thanks a lot)! :)
Edit: Somehow the permissions i've set-up for my groups don't apply.
I'm using bPermissions and whenever i try the command i'm getting the standard
'I'm sorry but you do not have permissions to perform this command' server notice.
Another thing i've noticed is that when setting the outer borders of a jail,
players often get teleported back to their jail location while not even coming
close to/near the border.
Regards,
- ThisUsernameIsMine
@ThisUsernameIsMine
I've added a yaw rotation for both the jail entry and exit points now, to set it up just run through /jailset again, or modify the values in the config.yml.
Thanks and let me know if you have any other suggestions, this plugin is still growing.
Great plugin!
There's only one thing i would like to see in your plugin:
When setting up a inmate jail- and release-position, the FOV (field of view) isn't preserved/used.
This causes teleported users to look at one/predefined direction.
Please change this. I want them to look at the direction i was looking at when setting up those positions ;-)
(hopefully you understand what i'm trying to achieve here)
Best regards,
- ThisUsernameIsMine
@cky2250 Unless you're planning on jailing thousands of players then a flat-file should be fine for most servers.
but there is no mysql.
I used to use matejdro's Jail plugin. however this was the only jail worth a dog crap all the other jails are a noob coded hassle.
but the problem is the jail plugin dude has some kinda real life and never fucking updates his plugin. so the need arose for a new plugin......
basically we took every thing we needed in a jail plugin, and absolutely none of the bullshit frills. the plugin is small and tight, like all Minesworn plugins, and it promises what it delivers: a solid single jail experience. with all needed features. like jail teleportation (good luck escaping now) like offline jailing, and jail mute (for the loud ones) as well as jail status so that the inmates can see why they were jailed. \
it has everything download it.
we share our private server code because we are not douchebags
Simple but effective jail plugin for 1.2.4!