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
But..... I Am using the latest version , thats what fixed the first error.... Now I got the one I just wrote in previous message (after updating to latest version)
@briankdk
Hmm, try the latest version, and tell me if that fixes it.
@imjake9
Hi
Thx.... now the error is gone...insted i have this problem:
If i jail a person....and then UNJAILS him - and desides to jail him again, then i get the message "this player has allready been jailed"
AND:
I have JAILED and UNJAILED test1 - test2 - test3 - test4 and test5
but not all have been freed:
And i PEX they are still jailed:
What is going on ??????
@briankdk
Thanks much. Should be fixed in v1.7.9.
@imjake9
I just cant unjail any players...i can jail them...but NOT unjail them
When trying to unjail a player i get "an internal error has acoured" (or something like that)
And in the log this happens:
I even tryed deleting the jailed.yml and letting it create a new - still i get same error.....
Here are the files u have requested:
jailed.yml:
Using PEX: Here is the Config.yml:
HERE is the PERMISSIONS.yml:
@PureTryOut
Multiple jail cell functionality is in the works. See Simple Jail Cells
You already get ported to the unjail spot when your sentence expires
Use and appropriate plugin for disabling block break. I use Antiguest.
On a side note a tad bit of reading will reveal all of those points quite easily.
@PureTryOut
"Could you add the option to make several jails?"
yes, i like this idea. But make <jail name> optional so the player gets teleported to the nearest jail when you don't specify a jail.
"Make it so you are automaticaly teleported to the unjail spot after your jail time is over"
This seems to work fine for me. Make sure that you have used the /setunjail command to set an unjail location.
"Make players unable to break blocks when they are jailed"
You can already do that. Just deny building for the group you demote the jailed player to.
A few things:
Could you add the option to make several jails?
So you use "/setjail <jailname>" to set the spawn point of the jail, and then use the command again on a different spot with a different name to set a different jail.
Then you can jail people by using "/jail <player> <jail name> [time]"
Make it so you are automaticaly teleported to the unjail spot after your jail time is over
Maybe this is already so and it's just not working for me, but when using "/jail <player> 10s" the player gets teleported to the jail, but after those 10 seconds he doesn't get teleported out. Make it so you get teleported out at the moment your jail time is over.
Make players unable to break blocks when they are jailed
Now they can just escape by breaking a block or door. You have to use bedrock to keep them out or protect the area, but this is irritating. Just make it so players are unable to break any block or interact with anything. Maybe even make it so they are muted the time they are jailed?
Good plugin BTW :D
Its good to hear your still active on simplejail Jake :). I for one am eagerly awaiting the simplejailcells release. That is, if you are still working on it?
Digi
@bizzig @imjake9
Actually permissions.*: false should work fine. PermissionsBukkit might not natively support * nodes but plugins themselves can still specify special * nodes to give full permissions. And permissions.* should be a working permission for access to all the /perm commands. The permissions for /home and others are probably listed on the plugin page of the plugin they belong to. Though.. if you don't specify a permission it should automatically default to 'false'
Now, about the jail plugin, I really like it mainly because it is simple with basic jail functions and not that stuff with cells or gaurds. A jail should be a punishment and not fun with possible escape routes.. There are 2 things that i would like to request though. 1. Possibility to add a reason for jailing a player. 2. MySQL and if MySQL is an absolute 'no' then maybe a command to get a full list of jailed players (+ reasons) and ability to search in this list for a specific player.
Also my players don't respawn in the jail when they die there. If they die they get back at the spawn point. (spawn is done by CommandBook)
@bizzig
Unfortunately, PermissionsBukkit does not natively support "*" nodes. You will have to either manually change "permissions.*: false" to the individual nodes, or switch to another permissions system, such as PermissionsEX. I'm sorry, but there are really no other options, unless I'm mistaken.
I seem to be having a problem. In the config file, I set the the "jailgroup: jail"
I then created the group "jail", and set the permissions, like below. (using permissinsbukkit, spacing correct using notepad)
jail
permissions:
permissions.*: false
inheritance:
- none
When I send people to jail, they are still able to use cmds such as /home or /f home. So they just get out automatically.
Wondering if anyone else is having this issue, or if anyone can pinpoint an error that I am not seeing.
Thank you
@briankdk
It has not. I have tried, but I cannot reproduce your problem. Could you provide the jailed.yml, your permissions config, and exactly what you're attempting to do? Thanks.
it looks like this plugin has been abandoned......................
any chanse for an updated version....
im getting this error when i try to unjail....
i can jail players...but not unjail them... its says that the player has been removed from jail...but he hasent.... anyone has the same problem ?
Why prisoners spawn on spawn instead off cell after death?
Craftbukkit 1.1 R5 build 79 PEX 1.19
@briankdk
Ya I can 2nd that the error was showing up in the yml file. It crippled the file for me. Not a big deal. Quite odd in deed. I'll keep an eye out for it again in v1.7.8
@imjake9 I believe that multiverse is sending a message that you could not be teleported there. This has to do with permissons not changing to allow the player to be teleported through multiverse then through your plugin.
Another way of saying this is. Multiverse prevents the user from being teleported without the permission. I believe that your plugin attempts to teleport them before it changes the permission. In additon there are no errors, only that it will not teleport them out of the jail world. I must place portals for the users to return to the world they belong to once the permissions are reset for them. This requires them to know how to use a portal, and I end up jailing new players for griefing for a brief time to get a message accross.
@briankdk
There is a list of commands on the GitHub wiki for SimpleJail, found here.
Just so you know, /jail actually jails players, so yes, /jail briankdk 10h would jail briankdk for 10 hours. There is no /tempjail command.
The /jailtime command is used to check remaining jail time on tempjailed players. It doesn't actually do anything. In the future, this command may be changed to /jailinfo to support additional information; for more specifics, see here.