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
@Dwool
You're getting that message because you don't have a permissions plugin installed, but you do have Vault installed. I'll make that more obvious in version 2.0.1, but even then, you will need a valid permissions plugin to run SimpleJail. This is because SimpleJail works by adjusting groups, and without a permissions plugin, there are no groups to adjust. I'd recommend you use a permissions plugin like PermissionsEX or bPermissions.
16:53:25 [WARNING] Unexpected exception while parsing console command org.bukkit.command.CommandException: Unhandled exception executing command 'jail ' in plugin SimpleJail v2.0 at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42) at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:16 6) at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:4 79) at org.bukkit.craftbukkit.CraftServer.dispatchServerCommand(CraftServer. java:475) at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:612) at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:581) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:459) at net.minecraft.server.ThreadServerApplication.run(SourceFile:492) Caused by: java.lang.UnsupportedOperationException: SuperPerms no group permissi ons. at net.milkbowl.vault.permission.plugins.Permission_SuperPerms.getPlayer Groups(Permission_SuperPerms.java:91) at net.milkbowl.vault.permission.Permission.getPlayerGroups(Permission.j ava:513) at com.imjake9.simplejail.SimpleJail.getGroups(SimpleJail.java:695) at com.imjake9.simplejail.SimpleJail.jailPlayer(SimpleJail.java:206) at com.imjake9.simplejail.SimpleJail.jailPlayer(SimpleJail.java:138) at com.imjake9.simplejail.SimpleJailCommandHandler.onCommand(SimpleJailC ommandHandler.java:63) at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40) ... 7 more
<<reply 733455="">>
Just disable /jail in essentials.
change commands pls, cuz there is problem with same commands at essentials
Translated into Russian, a good plugin, thanks:)
@imjake9
Always happy to see simplejail stay simple :)
@Techtony96
No. The point of this plugin is its simplicity, and that can be done by server owners if they really want. However, hardcoding in such functionality would defeat the purpose of the simplicity and customizability of the plugin. I will keep it as it is.
Really good idea:
instead of changing the players group, why not create a new world, using CleanRoomGenerator (nothing generates in the world) and only a small jail. This will create less lag on the server, but the player will be moved to the default group for that world. by default, permission plugins will create a new groups.yml for that world and a default group, with no permissions. They are stuck there, with no way to get out. For plugins that give the player default permissions, you would have to go into the groups.yml file and specifically deny it. (-permission.here)
This would work a lot better, in my opinion, as MOST server owners would only have to drop the .jar in the plugins folder, and restart the server. It automatically builds a jail, which the owner could change if he/she desired. Add /setjail and /setunjail spawn points. DO NOT ADD protection for the jail, in my opinion people rather use WorldGurad or something like that.
Hope you take this into consideration, as it is a fantastic idea!
@CarpenterBee
Make sure you take steps to negate the teleport plugin's permission nodes in your jailed group CarpenterBee.
@CarpenterBee
That sounds like a permissions issue, not a SimpleJail issue. Make sure that players cannot use teleportation when manually placed in the jailed group, since there should be no difference between that and the jailed position.
@imjake9
I have an issue. Even though I jail someone and it changes their group to Jailed(The group I set in the config) They still are able to use a teleport plugin I got, which is kFeatherTeleport. It seems as if they still keep their old permissions even when jailed. Like a member will keep the member permissions but it'll say that they're in the Jailed group. So they will just teleport out. It just started happening too. Out of no where they can now do this? Please reply ASAP.
@thealmightypsycho
Unfortunately, those are all GroupManager or Vault issues (mostly Valut), which are beyond my control. I can try and have the Valut devs fix it, but until then, that's going to be a problem I can't do much about. Sorry!
Great plugin! I'm just having a couple problems. I use GroupManager as my permission handler. When I player is unjailed and if they were in the default group they don't get put back in that group. I'm guessing this is from GM not storing "default" group info. Second problem is when the unjailed player is in a different group all the groups that group has set for inherit is put into the subgroup.
@briankdk
Yes, you can just update. It's all still compatible.
can i just update to simplejail 2.0 BETA, without doing anything or do i have to convert anything to keep jailed players in jail , etc ?
SimpleJailCells is now available! Check it out here!
Holy shit we got an update!
Right on Jake.
Wow and that whole perm file in the comments is nice :/
@imjake9
it seems to work - thanks for your hard work.
I still cant unjail players that isent online...it says they are removed from jail....but they arent..... When jailing a player, data is sent to the jailed.yml - when unjailing, NO data is sent to the jailed.yml - why ?
@briankdk
Derp. I guess I missed that because it only happens after you restart the server. My bad.
Anyway, should be fixed in the latest version. If it isn't, send me your files again and I'll test it from my end until I can get this bug fixed.
@briankdk
ooohhh noooo.......
Just installed your 1.7.10, if i jail someone it seems to work......
if i try to unjail someone jailed before the new version i get this:
Im about to give up........ please...please fix it.......
And the data for new jailed has changed, maby thats the problem ???
The old ones jailed looks like this:
After the1.7.10 it looks like:
Jailed from the server consule
Trying to unjail briank123, dident free him...restarted the server, trying to unjail and i got the whole error thing again.... so i had to jail briank123 (again) giving him this group:
But when i try to unjail him, nothing happens.... so i restart the server, and try unjail briank123 -this error again: