Jail
This plugins adds Jail to your minecraft server. Admins can define several jails and then jail/unjail people or jail them on time basis. Plugin also offers wide variety of protections, so players won't escape out of your jail.
Features:
- Jail online and offline players
- Wide variety of protections to prevent escaping or simply to create more interesting escape route on role play server.
- Protection penalties (increase jail sentence if player is not behaving well)
- Guards that will kill player if he tries to escape
- Data is stored in either SQLite or MySQL.
- Supports multiple worlds
- Jailing without commands via item
- Supports escaping for role play servers.
- Allows players to vote a player to be jailed

(you can opt-out from tracking in plugins/PluginMetrics/config.yml)
For errors, problems and suggestion make a ticket! Errors, problems and suggestions in comments will be ignored.
Documentation
Video Tutorials
Configuration ( Protections | Guards | JailStick | JailPay | MySQL | Miscellaneous )
Commands
Permission nodes
API guide ( Javadocs )
Translations
French
German
Spanish
Norwegian
Polish
Bulgarian
Changelog
How can I help?
There are many ways you can help this plugin to continue to grow:
- Report any bugs you find by submitting a ticket.
- Suggesting ideas of things you would like to see in the plugin
- Telling people about the plugin so more ideas and bugs will be reported
- Donating to the project (top right of the screen) to help keep it alive
- Voting in polls on the main project page
Credits
- Tkelly for major part of SQL connectivity
- Hidendra for a good way to update SQL database
- CuteLord for help with testing and update videos.
- DeadIntermediate for help with testing and ticket management.
- lightmaster for reporting a lot of bugs, testing, and helping with tickets.
-
View User Profile
-
Send Message
Posted Jan 6, 2012Enchanted items loose their Enchantment when ppl get out of jail.
-
View User Profile
-
Send Message
Posted Jan 5, 2012Only way to fix problem is to give a zip of all the files if not configs wont work nuthing will work
-
View User Profile
-
Send Message
Posted Jan 4, 2012The colours on the Sign didn“t work in chat,too.
-
View User Profile
-
Send Message
Posted Jan 4, 2012Not a problem,but a question....
Is it possible to set up 2 different jails,with differrent properties. I have a standard jail, where people stay and cant do anything. This is for punishment. I would like to make a second jail, a fenced in piece of land, a as testing ground where inmates can do all, except for leaving. This way others can come visit, they can mine (to the depth I have decided when defining the prison), they can (re-) build the area earlier destroyed, and still cant go outside my little box. Is this possible??
Other plugins make zones possible, but I just LOVE the simplicity of this one
-
View User Profile
-
Send Message
Posted Jan 3, 2012Mute players in jail doesn't work at all..
I use HeroChat plugin to deal with chat..
-
View User Profile
-
Send Message
Posted Jan 3, 2012yes roll back your bukkit dev build till it works
-
View User Profile
-
Send Message
Posted Jan 2, 2012When I create a jail, I get an "internal error"?
-
View User Profile
-
Send Message
Posted Jan 1, 2012GUYS I HAVE ISOLATED THIS TO THE NEWEST DEV BUILD OF BUKKIT. THE PLUGIN CREATOR NEEDS TO PATCH THIS AND YOU GUYS NEED TO ROLL BACK YOUR DEV VERSION OF BUKKIT
-
View User Profile
-
Send Message
Posted Jan 1, 201200:27:01 [SEVERE] null org.bukkit.command.CommandException: Unhandled exception executing command 'jail' in plugin Jail v2.0.5 at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42) at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:166) at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:378) at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:758) at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:723) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:716) at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:180) at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33) at net.minecraft.server.NetworkManager.b(NetworkManager.java:226) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:93) at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:550) at net.minecraft.server.NetworkListenThread.a(SourceFile:108) at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:527) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425) at net.minecraft.server.ThreadServerApplication.run(SourceFile:457) Caused by: java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [Lorg.bukkit.OfflinePlayer; at org.bukkit.craftbukkit.CraftServer.getOfflinePlayers(CraftServer.java:941) at com.matejdro.bukkit.jail.PrisonerManager.PrepareJail(PrisonerManager.java:59) at com.matejdro.bukkit.jail.commands.JailCommand.run(JailCommand.java:16) at com.matejdro.bukkit.jail.commands.BaseCommand.execute(BaseCommand.java:30) at com.matejdro.bukkit.jail.Jail.onCommand(Jail.java:241) at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40) ... 14 more
-
View User Profile
-
Send Message
Posted Dec 31, 2011I posted this as a ticket about a week ago, but ill post it here as its a big error in our server. if i jail anyone who is offline once they log on the server restarts, and then that user is freed they no longer have the inventory they had before they were jailed. If i jail them when there online everything works like it should there jailed, no crash's, when there freed they get there things back. This is creating a lot of problem on the server as there are a few people we need to jail who are offline and so we cant with out having the server shut down once there on.
Any idea why this might be happening? maybe a setting in the config i might have set up wrong that i could change on my end maybe?
-
View User Profile
-
Send Message
Posted Dec 31, 2011@softvelvet So any word on this? It just randomly sorta happens.
14:24:47 [SEVERE] Could not pass event PLAYER_INTERACT to Jail java.lang.NullPointerException at com.matejdro.bukkit.jail.listeners.JailPlayerProtectionListener.onPlayerInteract(JailPlayerProtectionListener.java:184) at org.bukkit.plugin.java.JavaPluginLoader$11.execute(JavaPluginLoader.java:335) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339) at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:178) at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:266) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:593) at net.minecraft.server.Packet15Place.a(SourceFile:39) at net.minecraft.server.NetworkManager.b(NetworkManager.java:226) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:93) at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:550) at net.minecraft.server.NetworkListenThread.a(SourceFile:108) at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:527) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425) at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)
-
View User Profile
-
Send Message
Posted Dec 30, 2011This is happening to my server as well: @GarretSidzaka
-
View User Profile
-
Send Message
Posted Dec 27, 2011@GarretSidzaka
Second. When trying to /jail anyone. Jailstatus and jaillist work fine.
-
View User Profile
-
Send Message
Posted Dec 27, 20112011-12-27 17:19:55 [SEVERE] null org.bukkit.command.CommandException: Unhandled exception executing command 'jail' in plugin Jail v2.0.5 at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42) at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:166) at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:378) at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:757) at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:722) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:715) at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:33) at net.minecraft.server.NetworkManager.b(NetworkManager.java:226) at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:93) at net.minecraft.server.NetworkListenThread.a(SourceFile:108) at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:527) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425) at net.minecraft.server.ThreadServerApplication.run(SourceFile:457) Caused by: java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [Lorg.bukkit.OfflinePlayer; at org.bukkit.craftbukkit.CraftServer.getOfflinePlayers(CraftServer.java:941) at com.matejdro.bukkit.jail.PrisonerManager.PrepareJail(PrisonerManager.java:59) at com.matejdro.bukkit.jail.commands.JailCommand.run(JailCommand.java:16) at com.matejdro.bukkit.jail.commands.BaseCommand.execute(BaseCommand.java:30) at com.matejdro.bukkit.jail.Jail.onCommand(Jail.java:241) at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40) ... 12 more
-
View User Profile
-
Send Message
Posted Dec 25, 2011@dockter
Are you spelling the name right? Caps?
-
View User Profile
-
Send Message
Posted Dec 25, 2011Having an issue where it says that a user has never been on my server, even though they are currently logged in.
-
View User Profile
-
Send Message
Posted Dec 25, 2011Commands?
-
View User Profile
-
Send Message
Posted Dec 24, 2011I have a few things that I would like to be solved if possible.
1. When somebody gets jailed can you make it so that any player gets switched to survival mode so they cannot access the menus and so they cant try to destroy blocks outside of the jail?
2. Can you make it so any player that tries to destroy the jail causes the destroyed blocks to respawn and puts the offender into jail? Obviously you would have it so admins can modify the jails as they sit fit without worrying about getting sent to jail.
-
View User Profile
-
Send Message
Posted Dec 23, 2011I very often get 'could not parse event' to JAIL or similar error messages. Also I seem to randomly get 'an error has occured' in red when jailing players, but not always. When it happens typing it again for the same player will give the same error, but typing it for another player works.
I would give screenshots if you need them, they just seem very random but generic errors, screenshots won't show much.
I run a busy server with 50+ players on a time, so I'm not sure if that would impact it.
-
View User Profile
-
Send Message
Posted Dec 22, 2011the jail stick doesn't seem to work for me, everything else does though and I get no errors. it is enabled in the config and permissions are given