SimpleJail
This plugin gives bare basic jail functionality. It allows you to set two points: the Jail point and the Unjail point. Then, when you jail a player, he/she will be teleported to the jail point and demoted to the Permissions group specified in the config.yml. Unjail will re-promote the player and teleport back out of the jail to the unjail point.
SimpleJail 3 is now complete! It is a complete rewrite from the ground-up. It shares no code with SimpleJail 2.x. However, the featureset has remained exactly the same. This does not mean that it's just a useless update, though, since it basically makes the codebase maintainable again. This will hopefully make updates less of a chore in the future.
Please note, SimpleJail 3 is not backwards-compatible. You cannot just drop it in and expect everything to work. You must delete the SimpleJail data folder before running SimpleJail 3. Fortunately, I don't expect this to be too much of a hassle since the plugin is so simple. While I have tested SimpleJail 3 thoroughly, since it is completely new, it may have bugs. Please, if you find any, report them here, do not just leave a comment on this page. Even if it's a feature request, feel free to open a ticket there. It's easier for me to manage issues there than it is on a comment page.
Finally, about the future of SimpleJailCells: it is not currently updated to work with SimpleJail 3, but I would like to do so sometime soon. With a completely new version with a new API, I think I can get something working, but it's a tricky issue. I'm still somewhat opposed to adding cells as a core feature, simply because I'm worried about feature creep, but I haven't ruled it out yet.
Thanks for sticking with SimpleJail.
Features:
- Use /setjail and /setunjail to easily set the two teleport locations
- Set the group that jailed players will be demoted to in the config file
- Players' initial groups are saved, so a normal jailed player will revert to a normal rank when unjailed, and a player with the VIP class will revert to the VIP class
- Works with Vault
- Players in jail will respawn in jail
- You can tempjail players who will be automatically unjailed after a set time
- You can jail/unjail players even while they are offline
Permissions nodes:
- simplejail.jail — Allows the use of /jail
- simplejail.unjail — Allows the use of /unjail
- simplejail.setjail — Allows the use of /setjail and /setunjail
- simplejail.jailtime — Allows the use of /jailtime
- simplejail.* — Allows all SimpleJail commands
@imjake9 - Latest version of Vault made some changes that will affect how the plugin updates Ranks in PermissionsEX. Actually, it completely screws things up. I had to downgrade Vault to fix my problem.
The developer states, "They (Plugins affected) weren't working to begin with, it just happened that they may have been programming around a small bug in the PEX implementation, or because of the bug they were unaffected. They will need to be fixed either way. If plugin authors are confused they should read the documentation: https://github.com/MilkBowl/Vault/blob/master/src/net/milkbowl/vault/permission/Permission.java#L520 It explicitly states if a world is not specified the players current world is used."
Can you please update your plugin so that this issue is resolved? Otherwise, the global rank is ignored by your plugin and a world specific rank is applied creating duplication and other nasty consequences.
http://pastebin.com/mVhBdCNT
Major error.
Thanks for simplejail, it's simple, effective and efficient.
Just a quick bugreport however.
Using bukkit 1.7.2 beta and SimpleJail 3.0.1 we're unable to have the users group changed upon being jailed.
Using PermissionsBukkit.
Thanks :)
We are having an issue with this regarding the order that SimpleJail does things.
On our server, we use Multiverse and have multiple worlds. We configured SimpleJail that if someone gets jailed, they should be added to the group "jailed" and the jail is its own world (it is a separate Nether that we call "Banished World". Essentially we "banish" people to this world where they can build, but cant talk, cant use donator perks, etc.
The order in which simplejail completes actions is as follows (from what we can tell)
1. Change the players group to jailed (and remove them from all other groups) 2. Move the player to Banished World.
Then when a player is unjailed
1. Remove player from jailed group (restore previous groups) 2. Move the player to the Unjail point (in a different world).
There are 2 issues with this
Issue 1: I am in Survival and I get jailed (or banished), i am added to the "jailed" group, i no longer have permission to change worlds to banished world (so the player never gets teleported)
I was able to work around this by giving the jailed group multiverse.access.* permission in every world except banished world.
Issue 2: Since I am added to the jailed group before i leave Survival world, and removed from the jailed group before i leave Banished world ... In survival world I am still in the jailed group. SimpleJail doesnt restore the groups across all worlds, only the one you are currently in. Which meant i get dropped from "jailed" in banished world, but im still in "jailed" in Survival world. And i cant do anything now in that world until an admin restores my groups manually for that world.
To me (a non programmer), it seems to be a simple fix ... just change the order of operations to teleport you to the jail AND THEN change your groups. instead of changing your groups and then teleporting you. Though I admit im not a programmer so it may be more complicated than i think.
In short, this plugin does what we need it to, but the order of operations is just killing our permissions.
Dude, are you ever going to fix SimpleJailCells? It's crazy that you haven't fixed that but are still updating this. I don't want to have to switch jail plugins!
Is there a way to add custom messages to the config? For example, I don't want to use the term 'Jail' on my server, I want to use something else and change up the wording in the messaging.
@imjake9
Well, I'd like to put out there that the plugin's pretty swell. Simple and direct. The idea of login-only time tick down is so that trolls who are actually sorry can stay logged in to serve their time, as a sign of devotion. If they're truly sorry they won't go "Jailed, huh? well, whatever. I'ma just troll on another server for now... come back here in a few days". You may not agree with that, but where banning from a server might be mean enough for me to disagree with, it's also necessary sometimes. But if they have their devotion tested, they're less likely gonna just troll immediately after the time expires, or they simply wont come back (no, that's not sure. Nothing really is, is it?).
is there a immune permission node? so anybody (staff) with the node can't get jailed (by ranks below them). or somehow link it to Permissionsex's option: rank: 1000 numbers so as you go down to 1 (admin/owner ranks) the immunity keeps stepping down per rank.
@hkminegod
I've had this feature suggested a few times, and, well, I've never really felt like it was a good idea. Could you elaborate as to why you want this?
Can you make it so that when they log off the jail time saves and doesn't count down. Once they come back the timer continues? That will probably prevent being jail bugged.
@okedan
The latest version of Vault works fine on the latest version of Bukkit. Most plugins shouldn't break for most Minecraft updates, SimpleJail and Vault included.
i got somthing to ask... it needs vault right? well vault is outdated..... help?!
-Rickcraft
@Matse007
I'm currently working on it. Check back some time soon and I'll try and get some jail cell functionality available. At the moment, though, no, it's just one jail and that's it.
Is it possible to make multiple jails? If this is possible it would be great.
@spblat
Try now with SimpleJail 3.
Getting this error:
[SEVERE] Error occurred while enabling SimpleJail v2.0.3 (Is it up to date?) ru.tehkode.permissions.exceptions.PermissionsNotAvailable: Permissions manager is not accessable. Is the PermissionsEx plugin enabled?
But I do have PEX installed and up to date. Any suggestions? Thanks!
@imjake9
About SimpleJails3, I think it would be great if SimpleJailCells could be an inherent part of the plugin rather than an add-on (because a jail without cells doesn't make that much sense), and if someone (not me) could make a "Jailer" character for the Citizens2 plugin that hooks into this plugin too, though Denizens/Sentry might be able to pull that off.
Can you /setjail multiple or just 1?
@zxinmine
You could start by asking him nicely.
I Need This! UPDATE!!