Inactive [ADMN/RPG] Jail - Jail bad players

Discussion in 'Inactive/Unsupported Plugins' started by matejdro, Jan 24, 2011.

  1. Offline

    matejdro

    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.



    See BukkitDev page for more information and download links: http://dev.bukkit.org/server-mods/jail/
    (you can use your minecraft forum username and password on BukkitDev)
     
  2. Offline

    andrewkm

    Jailcheck works
    Its jaillist that doesnt.
    Unless its different for you
    maybe their just all messed lol

    Not sure if you know about this yet, but i just switched over from ichat to herochat and it broke the automatic mute configuration thing. When my players were jailed before they would be automatically muted. This doesnt work anymore.
    Here is my config:
    Code:
    MessageJailReason = §cYou have been jailed! Reason: <Reason>
    BucketProtection = true #Should we protect prisoners against using buckets?
    PlayerMoveProtection = true #Should we protect prisoners against moving out of jail?
    MutePrisoners = true #Should we prevent prisoners from sending messages?
    PlayerMovePenalty = 1 #For how much time is prisoner's time increased if he tries to move out of jail. Use 0 to disable penalty.
    MySQLPassword = mka211mysqmicr #MySQL Password (only if using MySQL)
    MessageDestroyPenalty = §cDo not destroy The Jail! You have just earned additional 1 minutes in jail!
    MessageMute = Stop chatting and quietly wait for the end of your sentence!
    FireProtection = true #Should we protect prisoners against starting fires?
    BlockDestroyPenalty = 1 #For how much time is prisoner's time increased if he tries to destroy jail. Use 0 to disable penalty.
    MessageFirePenalty = §cDo not try to burn the jail! You have just earned additional 1 minutes in jail!
    BlockPlacePenalty = 1 #For how much time is prisoner's time increased if he tries place block inside jail. Use 0 to disable penalty.
    MessageDestroyNoPenalty = §cDo not destroy The Jail!
    MessageMovePenalty = §cDo not try to escape out of Jail! You have just earned additional 1 minutes in jail!!
    AutomaticMute = true #Should prisoners be automatically muted after jailing?
    PreventCommands = false #Which commands should we prevent from using in jail?
    MessageCommandPenalty = §cDo not try to escape with commands! You have just earned additional 1 minutes in jail!
    MySQLConn = jdbc:mysql://localhost:3306/minecraft #MySQL Connection string (only if using MySQL)
    BlockDestroyProtection = true #Should jail be protected against destroying it?
    SelectionTool = 268 #What tool is used to create jail zones. Default: Wooden sword.
    MessageFireNoPenalty = §cDo not try to burn the jail!
    MessageCommandNoPenalty = §cDo not try to escape with commands!
    BucketPenalty = 1 #For how much time is prisoner's time increased if he tries to use a bucket? Use 0 to disable penalty.
    MessageTransfer = §9You have been transferred to another jail!
    DeleteInventoryOnJail = false #Should we delete player's inventory when jailing?
    MessageMoveNoPenalty = §cDo not try to escape out of Jail!
    MessageJail = §cYou have been jailed!
    MySQLUsername = minecraft #MySQL Username (only if using MySQL)
    CommandPenalty = 1 #For how much time is prisoner's time increased if he tries to use forbidden command. Use 0 to disable penalty.
    MessageBucketPenalty = §cDo not try to flood the jail! You have just earned additional 1 minutes in jail!
    NearestJailCode = nearest #If you enter this as a jail name, it will automatically search for nearest jail.
    BlockPlaceProtection = true #Should jail be protected against placing blocks in it?
    UseMySQL = true #true = use MySQL database / false = use SQLLite
    MessageUnJail = §2You have been released! Please respect server rules.
    MessagePlaceNoPenalty = §cDo not place blocks inside Jail!
    MessagePlacePenalty = §cDo not place blocks inside Jail! You have just earned additional 1 minutes in jail!
    MessageBucketNoPenalty = §cDo not try to flood the jail!
    FirePenalty = 1 #For how much time is prisoner's time increased if he tries to start a fire? Use 0 to disable penalty.
    Any issues you see?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 7, 2016
  3. Offline

    MiHo

    Wrong help text occurre when typing "/jailtelein".

    And you also should check if the Player is outside the selected area + 1 block... would make selection easier!
     
  4. Offline

    Darkedge

    Not working for builds above 714, could you please update? I'd really like this on my server...
     
  5. Offline

    Chris Lewis

    @Darkedge
    its working fine for builds up to 740, you prolly just need to delete your db and rebuild your jails. the only thing that doesnt work as far as i can tell is the reload command on bukkit backend, it has put a pause on me using this plugin because of that, but for those that dont use the reload command its no big deal...
     
  6. Offline

    andrewkm

    Im using it with [740] and its working great!
     
  7. Offline

    deathhorn

    working for me too ;D
     
  8. Offline

    Wegs

    I keep getting the following error whenever I make a jail, and whenever I jail someone. Also, on a server restart, the jail is deleted. Is there any way to fix this?

    Code:
    10:33:46 [SEVERE] [Jail] Error while creating Jail Zone! - database is locked
    10:33:46 [SEVERE] java.sql.SQLException: database is locked
    10:33:46 [SEVERE]       at org.sqlite.DB.throwex(DB.java:370)
    10:33:46 [SEVERE]       at org.sqlite.DB.exec(DB.java:76)
    10:33:46 [SEVERE]       at org.sqlite.Conn.commit(Conn.java:343)
    10:33:46 [SEVERE]       at com.matejdro.bukkit.jail.InputOutput.InsertZone(Input
    Output.java:232)
    10:33:46 [SEVERE]       at com.matejdro.bukkit.jail.JailZoneCreation.freepoint(J
    ailZoneCreation.java:97)
    10:33:46 [SEVERE]       at com.matejdro.bukkit.jail.JailZoneCreation.select(Jail
    ZoneCreation.java:43)
    10:33:46 [SEVERE]       at com.matejdro.bukkit.jail.JailPlayer.onPlayerInteract(
    JailPlayer.java:18)
    10:33:46 [SEVERE]       at org.bukkit.plugin.java.JavaPluginLoader$9.execute(Jav
    aPluginLoader.java:254)
    10:33:46 [SEVERE]       at org.bukkit.plugin.RegisteredListener.callEvent(Regist
    eredListener.java:59)
    10:33:46 [SEVERE]       at org.bukkit.plugin.SimplePluginManager.callEvent(Simpl
    ePluginManager.java:257)
    10:33:46 [SEVERE]       at org.bukkit.craftbukkit.event.CraftEventFactory.callPl
    ayerInteractEvent(CraftEventFactory.java:162)
    10:33:46 [SEVERE]       at net.minecraft.server.ItemInWorldManager.interact(Item
    InWorldManager.java:207)
    10:33:46 [SEVERE]       at net.minecraft.server.NetServerHandler.a(NetServerHand
    ler.java:521)
    10:33:46 [SEVERE]       at net.minecraft.server.Packet15Place.a(SourceFile:57)
    10:33:46 [SEVERE]       at net.minecraft.server.NetworkManager.a(NetworkManager.
    java:195)
    10:33:46 [SEVERE]       at net.minecraft.server.NetServerHandler.a(NetServerHand
    ler.java:74)
    10:33:46 [SEVERE]       at net.minecraft.server.NetworkListenThread.a(SourceFile
    :100)
    10:33:46 [SEVERE]       at net.minecraft.server.MinecraftServer.h(MinecraftServe
    r.java:370)
    10:33:46 [SEVERE]       at net.minecraft.server.MinecraftServer.run(MinecraftSer
    ver.java:285)
    10:33:46 [SEVERE]       at net.minecraft.server.ThreadServerApplication.run(Sour
    ceFile:394)
    10:33:46 [WARNING] Can't keep up! Did the system time change, or is the server o
    verloaded?
     
  9. Offline

    deathhorn

    you need permissions for the folder the sqlite-Database is in AND the (if your runnign on windows) permission fpr teh %temp% folder. i had the same problem that was the answer =D
     
  10. Offline

    Wegs

    I just checked, and I have full permission for all of these already.
     
  11. Offline

    deathhorn

    i got same error and this was my resolution ...

    EDIT: try every folder the server folder the plugin folder the plugin/jail folder and (on windows) the %temp%-folder and maybe the files ... i think i made all these and then it worked .. that's because i don't really know wich it was ..
     
  12. Offline

    Wegs

    I looked through every single file in %temp% and my server folder, and I have full control over everything...
     
  13. Offline

    deathhorn

    try restart PC ?
     
  14. Offline

    Wegs

    Still not working. :(
     
  15. Offline

    deathhorn

    at my side there was the permissionproblem the error says the same .. i don't know a other solution sry
     
  16. Offline

    Chris Lewis

    the db being locked could be a few things. could be a corrupt db, with one of the recent updates from this plugin it tried to rebuild the old db and it mostly just failed. However dropping the db and rebuilding it and the jails usually fixes this.
    If its not that it could be the user doesnt have the right permissions in your mysql setup. I personally use the mysql workbench for a gui in windows, but i don't know what you use, basically just make sure your user has access to change/add/etc to the db
     
  17. Offline

    Wegs

    I tried deleting the database file. The server created a new one, but I still get the same error. I've also checked the permissions of my user, who has full control over all the files. However, I'm not sure if I have all the permissions to edit the SQLite database itself, so how can I check this?
     
  18. Offline

    Niles

    I have a problem, I am on 740 and it dosent work. I have deleted and remade everything, config file, jar, library and made all the jails again and when I jail someone I get this message at the console.
    Code:
    23:09:48 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'jail' in plugin Jail v0.6.1
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
            at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:85)
            at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:255)
            at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:677)
            at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:640)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:634)
            at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
            at net.minecraft.server.NetworkManager.a(NetworkManager.java:195)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:74)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:370)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    Caused by: java.lang.NumberFormatException: For input string: "spawn"
            at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
            at java.lang.Integer.parseInt(Integer.java:449)
            at java.lang.Integer.valueOf(Integer.java:554)
            at com.matejdro.bukkit.jail.Jail.onCommand(Jail.java:438)
            at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
            ... 12 more
    
     
  19. Offline

    StickerZ

    hi, I have a problem
    when I use any command, it says "An internal error occured while attempting to perform this command"
    when I look for any errors in the console, the following appears
    Code:
    >22:25:35 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'jailtelein' in plugin Jail v0.6.1
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:37)
    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:85)
    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:255)
    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:675)
    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:638)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:632)
    at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
    at net.minecraft.server.NetworkManager.a(NetworkManager.java:195)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:74)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:370)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    Caused by: java.lang.NullPointerException
    at org.bukkit.craftbukkit.entity.CraftPlayer.teleport(CraftPlayer.java:147)
    at com.matejdro.bukkit.jail.Jail.onCommand(Jail.java:392)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    ... 12 more

    I am running cb740 and the last version of this plugin

    any ideas? :S

    EDIT: well, someone else posted the same problem, sorry, I didn't see it
     
  20. Offline

    Stelith61

    Could You Add It So That Certian blocks can be placed/removed?
    Eg Seeds/Wheat and to be able to till soil? so i can have a Self Sustained Prision farm? A Convict Mine?
     
  21. Offline

    Daimon761

    The Jail Mod works partly...I can create one jail and put anyone in there, then i create another one and try to put someone in there, then my server crashes. Then even when i stop my server normally, the jails dissapear. HELP!
     
  22. Offline

    ScottSpittle

    how can u block worldedit inside the jail.. becuase i block
    but they can still use it..
    can we not just automatically make em Guest when there in jail?

    Can we block permission nodes? worldedit.* for example?
     
  23. Offline

    branny666

    whenever i try to jail anyone it says: an internal error occured when trying to perform this command. whats causing this problem and more importantly, how do i fix it?
     
  24. Offline

    ScottSpittle

    dont forget to specify the jail to send them too e.g
    /jail scottspittle 5 jail
     
  25. Offline

    branny666

    i am doing. do i need to specify the time aswell?
     
  26. Offline

    ScottSpittle

    yes, if you only have 1 jail just type /jail name
    else type
    jail playername time jailname

    Basically the author hasn't done much error handling and instead of returning a nice comment telling you what i said he has it say ERROR
     
  27. Offline

    Chris Lewis

    @Wegs
    Oh you are using sqllite.... yuck.... you should use mysql instead its easier to maintain, its faster, and its easier to troubleshoot.
    Any updates on the reload bug?
     
  28. Offline

    Boby

    can u please make this mod for build 740?
    i really need a jail on my server
     
  29. Offline

    Wegs

    It's still not working, but I've pretty much given up at this point. And I tried to use MySQL, but I couldn't figure it out, and I figured SQLite would be simpler to use once I figured out what the problem was.
     
  30. Offline

    xZise

    Hello, I gave one player the “jail.modifyjail” permission, but she couldn't edit the jail anyway. She is always getting the “Do not destroy the prison” message.

    Fabian
     
  31. Offline

    Chris Lewis

    @Boby it works fine on 740 except a reload bug, no big deal for those that dont use the reload command
     

Share This Page