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

    MuttsNuts

    I've fixed the error as far as it seems. It was iConomy 5.0 causing trouble. I removed it now all running pretty well. I didn't think it was your plugin that was responsible.
     
  3. Offline

    NEO

    @matejdro

    My DB now locks even after completely reinstalling the plugin. This causes loss of the jail, and jailed players. It also means i need to redefine a jail, and until then no one can be jailed. Hoping for a fix soon, also i still have issues with the modify node, its not working.
     
  4. Offline

    adde

    When doing /jailcreate jail
    It doesnt even pop up unknown command??
    Nothing happends... help please!!
     
  5. Offline

    matejdro

    You must be op or have permissions.

    Um wrong thread? :)

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

    Mineaccount

    Here it is:

    [​IMG]

    P.S. I had iConomy and removed it and the error still occurs
     
  7. Offline

    NEO

    @matejdro again, my db now locks up every time. i have no jail and no idea what to do here.
     
  8. Offline

    Chris Lewis

    @Mineaccount what are the commands you are trying exactly? Also do you have permissions? The error that we need is the one in the bukkit back end, not the in-game error.

    @NEO are you upgrading from the older version of this plugin? If so i had the same problem with the db locking up, and eventually i just had to delete it and let the plugin re-create it. This isn't a terrible thing because i only had 2 jails, if you had a lot of jails i guess it could be annoying but if not just delete the db entirely and rebuild the jails after the plugin rebuilds it
     
  9. Offline

    NEO

    @Chris Lewis

    This is exactly what i have done chris, ive deleted everything twice and done fresh reinstalls and remade my jails several times. Ive lost roughly 20 plus jailed players who never got the chance to do there time.
     
  10. Offline

    MuttsNuts

    @Mineaccount ah. Thats strange. I'm now using BOSEconomy and tons of other plugins as well as jail and no longer have any errors like that.
    Are all your plugins up to date?
     
  11. Offline

    Mineaccount

    I do not have permissions. do i need them? i don't know how to set them up.
     
  12. Offline

    matejdro

    @Mineaccount please paste error from server console, not in-game.
     
  13. Offline

    ratapof

    iv instaled the plugin like it is said but it just dosent seem to work. when i type /jailcreate rataprivate nothing happens at all and no mesage in chat...plz help
     
  14. Offline

    Psycho Robot

    did you specify a jail cuboid first?
     
  15. Offline

    andrewkm

    Everything works except deleting jail.
    For some reason im getting this error when using /jail delete <jailname> command
    Code:
    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:278)
     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:196)
     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: "test"
     at java.lang.NumberFormatException.forInputString(Unknown Source)
     at java.lang.Integer.parseInt(Unknown Source)
     at java.lang.Integer.valueOf(Unknown Source)
     at com.matejdro.bukkit.jail.Jail.onCommand(Jail.java:438)
     at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
     ... 12 more
     
  16. Offline

    matejdro

    @ratapof do you have permissions or are you up?

    @andrekwm it's /jaildelete.
     
  17. Offline

    andrewkm

    indeed.
    i fail.
    I posted that after staying up for 41+ hours, just got some sleep like 4 hours, and realized im stupid. haha
     
  18. Offline

    ScottSpittle

    @ScottSpittle AFAIK worldedit uses double slash commands (//set)

    so how do i block this in jail? becuase adding //wand or others to the block list does not help
     
  19. Offline

    Pivinton

    It says SQL database or something is locked... I get repetitive messages when I try to /jailcreate and it spams... a lot.
    Code:
    [SEVERE] [Jail] Error while creating Jail Zone! - database is locked
    2011-05-08 20:42:58 [SEVERE] java.sql.SQLException: database is locked
    2011-05-08 20:42:58 [SEVERE]     at org.sqlite.DB.throwex(DB.java:370)
    2011-05-08 20:42:58 [SEVERE]     at org.sqlite.Conn.commit(Conn.java:343)
    2011-05-08 20:42:58 [SEVERE]     at com.matejdro.bukkit.jail.InputOutput.InsertZone(InputOutput.java:232)
    2011-05-08 20:42:58 [SEVERE]     at com.matejdro.bukkit.jail.JailZoneCreation.freepoint(JailZoneCreation.java:97)
    2011-05-08 20:42:58 [SEVERE]     at com.matejdro.bukkit.jail.JailZoneCreation.select(JailZoneCreation.java:43)
    2011-05-08 20:42:58 [SEVERE]     at com.matejdro.bukkit.jail.JailPlayer.onPlayerInteract(JailPlayer.java:18)
    2011-05-08 20:42:58 [SEVERE]     at org.bukkit.plugin.java.JavaPluginLoader$9.execute(JavaPluginLoader.java:254)
    2011-05-08 20:42:58 [SEVERE]     at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    2011-05-08 20:42:58 [SEVERE]     at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:257)
    2011-05-08 20:42:58 [SEVERE]     at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:162)
    2011-05-08 20:42:58 [SEVERE]     at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:207)
    2011-05-08 20:42:58 [SEVERE]     at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:521)
    2011-05-08 20:42:58 [SEVERE]     at net.minecraft.server.Packet15Place.a(SourceFile:57)
    2011-05-08 20:42:58 [SEVERE]     at net.minecraft.server.NetworkManager.a(NetworkManager.java:195)
    2011-05-08 20:42:58 [SEVERE]     at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:74)
    2011-05-08 20:42:58 [SEVERE]     at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    2011-05-08 20:42:58 [SEVERE]     at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:370)
    2011-05-08 20:42:58 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
    2011-05-08 20:42:58 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    2011-05-08 20:42:58 [WARNING] Can't keep up! Did the system time change, or is the server overloaded?
    2011-05-08 20:43:56 [SEVERE] [Jail] Error while deleting Zone from DB! - database is locked
    2011-05-08 20:43:56 [SEVERE] java.sql.SQLException: database is locked
    2011-05-08 20:43:56 [SEVERE]     at org.sqlite.DB.throwex(DB.java:370)
    2011-05-08 20:43:56 [SEVERE]     at org.sqlite.DB.exec(DB.java:76)
    2011-05-08 20:43:56 [SEVERE]     at org.sqlite.Conn.commit(Conn.java:343)
    2011-05-08 20:43:56 [SEVERE]     at com.matejdro.bukkit.jail.InputOutput.DeleteZone(InputOutput.java:248)
    2011-05-08 20:43:56 [SEVERE]     at com.matejdro.bukkit.jail.Jail.onCommand(Jail.java:361)
    2011-05-08 20:43:56 [SEVERE]     at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    2011-05-08 20:43:56 [SEVERE]     at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:85)
    2011-05-08 20:43:56 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:255)
    2011-05-08 20:43:56 [SEVERE]     at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:677)
    2011-05-08 20:43:56 [SEVERE]     at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:640)
    2011-05-08 20:43:56 [SEVERE]     at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:634)
    2011-05-08 20:43:56 [SEVERE]     at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
    2011-05-08 20:43:56 [SEVERE]     at net.minecraft.server.NetworkManager.a(NetworkManager.java:195)
    2011-05-08 20:43:56 [SEVERE]     at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:74)
    2011-05-08 20:43:56 [SEVERE]     at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    2011-05-08 20:43:56 [SEVERE]     at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:370)
    2011-05-08 20:43:56 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
    2011-05-08 20:43:56 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    2011-05-08 20:43:56 
    I'm using SQLite, maybe I'm just an idiot but oh well :p
     
  20. Offline

    LiqouRiiCe__

    I got permissions installed - works fine, BUT
    When i stop/kill/exit server all of my Jails dissapear, so only that jail space stays like 30 blocks high (it's not 24/7 server so i need to make jail every time again :S, my files are placed like this:
    Buukit/Sqlite (Sqlite files)
    Buukit/Plugins/Jail.jar
    Buukit/Plugins/Jail/Jail. properties
    Buukit/Plugins/Jail/Jail.sqlite
    I got set as this in properties:
    Code:
    BucketProtection = true #Should we protect prisoners against using buckets?
    MessageJailReason = §cYou have been jailed! Reason: <Reason>
    PlayerMoveProtection = true #Should we protect prisoners against moving out of jail?
    PlayerMovePenalty = 2 #For how much time is prisoner's time increased if he tries to move out of jail. Use 0 to disable penalty.
    MySQLPassword = password #MySQL Password (only if using MySQL)
    MessageMute = Stop chatting and quietly wait for the end of your sentence!
    MessageDestroyPenalty = §cDo not destroy The Jail! You have just earned additional 15 minutes in jail!
    FireProtection = true #Should we protect prisoners against starting fires?
    BlockDestroyPenalty = 15 #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 10 minutes in jail!
    BlockPlacePenalty = 2 #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 2 minutes in jail!!
    AutomaticMute = false #Should prisoners be automatically muted after jailing?
    MessageCommandPenalty = §cDo not try to escape with commands! You have just earned additional 1 minute in jail!
    PreventCommands = /spawn,/kill,/warp #Which commands should we prevent from using 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 = 276 #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 = 0 #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!
    MessageMoveNoPenalty = §cDo not try to escape out of Jail!
    DeleteInventoryOnJail = false #Should we delete player's inventory when jailing?
    MessageJail = §cYou have been jailed!
    CommandPenalty = 1 #For how much time is prisoner's time increased if he tries to use forbidden command. Use 0 to disable penalty.
    MySQLUsername = root #MySQL Username (only if using MySQL)
    MessageBucketPenalty = §cDo not try to flood the jail! You have just earned additional 10 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 it?
    UseMySQL = false #true = use MySQL database / false = use SQLLite
    MessagePlaceNoPenalty = §cDo not place blocks inside Jail!
    MessageUnJail = §2You have been released! Please respect server rules.
    MessagePlacePenalty = §cDo not place blocks inside Jail! You have just earned additional 2 minutes in jail!
    MessageBucketNoPenalty = §cDo not try to flood the jail!
    FirePenalty = 10 #For how much time is prisoner's time increased if he tries to start a fire? Use 0 to disable penalty.
     
  21. Offline

    matejdro

    any errors?
     
  22. Offline

    xspeced

    My db keep locking up. please help!!!!
    and im using 740
     
  23. Offline

    matejdro

    Just hold on until tomorrow ;)
     
  24. Offline

    xspeced

    Oh, sorry, I pmed you too. and thanks!
     
  25. Offline

    sean.m.rice

    I host my SQL server offsite across the WAN. I took my SQL server down for a few minutes to do some maintenance, while chatting with a few of my players via the server console. As soon as I took down the SQL server, the other plugins that used it, detected it and cached the entries for later. This plugin did not, and essentially took down my server until I placed my SQL server into operation. I could not even stop the server from the console.

    Has anyone else had this problem? If so, I think that is a serious problem that needs to be addressed in order to maintain reliability on production servers.

    -Sean
     
  26. Offline

    andrewkm

    [766] and this plugin is working perfect! Thank you.
     
  27. Offline

    Mineaccount

    I found the problem, i forgot to update. But even though i fixed that one there is another:

    The plugin is working 100% for players jailed before it stopped working. As of now i cannot use the /jail command or any of the commands in this plugin for that matter (the error in-game is now gone). For example if I want to jail someone and use the /jail command not even an error comes up, it is just blank with no response.
     
  28. Offline

    matejdro

    Updated

     
  29. Offline

    Tealk

    Here i have sorted the config and translate in German
    Sorted only (open)

    EnableJailStick = true #Should we enable jailing with an item?
    JailStickId = 268 #Item that can be used to jail people. Default: Stick (280)
    JailStickRange = 5 #How many blocks away can player be from another player to jail him using item
    DeleteInventoryOnJail = false #Should we delete player's inventory when jailing?
    StoreInventory = true #Should we take player's inventory when he get jailed and return it to him when he gets released?
    AutomaticMute = false #Should prisoners be automatically muted after jailing?
    EnableEscape = false #When player moves out of the jail, he will be released instead of teleported back.
    SelectionTool = 268 #What tool is used to create jail zones. Default: Wooden sword.
    NearestJailCode = nearest #If you enter this as a jail name, it will automatically search for nearest jail.
    SignText = <Player>[NEWLINE]<Time> minutes[NEWLINE]for[NEWLINE]<Reason> #Text that appears on the cell sign.

    JailStickTime = 10 #For how many minutes is player jailed when he is jailed using item.

    BlockPlaceProtection = true #Should jail be protected against placing blocks in it it?
    BlockPlacePenalty = 10 #For how much time is prisoner's time increased if he tries place block inside jail. Use 0 to disable penalty.

    BlockDestroyProtection = true #Should jail be protected against destroying it?
    BlockDestroyPenalty = 15 #For how much time is prisoner's time increased if he tries to destroy jail. Use 0 to disable penalty.

    BucketProtection = true #Should we protect prisoners against using buckets?
    BucketPenalty = 10 #For how much time is prisoner's time increased if he tries to use a bucket? Use 0 to disable penalty.

    PlayerMoveProtection = true #Should we protect prisoners against moving out of jail?
    PlayerMovePenalty = 30 #For how much time is prisoner's time increased if he tries to move out of jail. Use 0 to disable penalty.

    FireProtection = true #Should we protect prisoners against starting fires?
    FirePenalty = 10 #For how much time is prisoner's time increased if he tries to start a fire? Use 0 to disable penalty.

    PreventCommands = /spawn,/kill,/warp #Which commands should we prevent from using in jail?
    CommandPenalty = 10 #For how much time is prisoner's time increased if he tries to use forbidden command. Use 0 to disable penalty.


    UseMySQL = true #true = use MySQL database / false = use SQLLite
    MySQLConn = jdbc:mysql://localhost:3306/minecraft #MySQL Connection string (only if using MySQL)
    MySQLUsername = user #MySQL Username (only if using MySQL)
    MySQLPassword = pw #MySQL Password (only if using MySQL)


    MessageJailReason = ?cYou have been jailed! Reason: <Reason> test
    MessageMute = Stop chatting and quietly wait for the end of your sentence!
    MessageDestroyPenalty = ?cDo not destroy The Jail! You have just earned additional 15 minutes in jail!
    MessageFirePenalty = ?cDo not try to burn the jail! You have just earned additional 15 minutes in jail!
    MessageDestroyNoPenalty = ?cDo not destroy The Jail!
    MessageMovePenalty = ?cDo not try to escape out of Jail! You have just earned additional 30 minutes in jail!!
    MessagePlacePenalty = ?cDo not place blocks inside Jail! You have just earned additional 10 minutes in jail!
    MessageBucketNoPenalty = ?cDo not try to flood the jail!
    MessagePlaceNoPenalty = ?cDo not place blocks inside Jail!
    MessageUnJail = ?2You have been released! Please respect server rules.
    MessageBucketPenalty = ?cDo not try to flood the jail! You have just earned additional 10 minutes in jail!
    MessageTransfer = ?9You have been transferred to another jail!
    MessageMoveNoPenalty = ?cDo not try to escape out of Jail!
    MessageJail = ?cYou have been jailed!
    MessageFireNoPenalty = ?cDo not try to burn the jail!
    MessageCommandNoPenalty = ?cDo not try to escape with commands!
    MessageCommandPenalty = ?cDo not try to escape with commands! You have just earned additional 10 minutes in jail!


    Sortiert und Deutsch (open)

    EnableJailStick = true #Should we enable jailing with an item?
    JailStickId = 268 #Item that can be used to jail people. Default: Stick (280)
    JailStickRange = 5 #How many blocks away can player be from another player to jail him using item
    DeleteInventoryOnJail = false #Should we delete player's inventory when jailing?
    StoreInventory = true #Should we take player's inventory when he get jailed and return it to him when he gets released?
    AutomaticMute = false #Should prisoners be automatically muted after jailing?
    EnableEscape = false #When player moves out of the jail, he will be released instead of teleported back.
    SelectionTool = 268 #What tool is used to create jail zones. Default: Wooden sword.
    NearestJailCode = nearest #If you enter this as a jail name, it will automatically search for nearest jail.
    SignText = <Player>[NEWLINE]<Time> minutes[NEWLINE]for[NEWLINE]<Reason> #Text that appears on the cell sign.

    JailStickTime = 10 #For how many minutes is player jailed when he is jailed using item.

    BlockPlaceProtection = true #Should jail be protected against placing blocks in it it?
    BlockPlacePenalty = 10 #For how much time is prisoner's time increased if he tries place block inside jail. Use 0 to disable penalty.

    BlockDestroyProtection = true #Should jail be protected against destroying it?
    BlockDestroyPenalty = 15 #For how much time is prisoner's time increased if he tries to destroy jail. Use 0 to disable penalty.

    BucketProtection = true #Should we protect prisoners against using buckets?
    BucketPenalty = 10 #For how much time is prisoner's time increased if he tries to use a bucket? Use 0 to disable penalty.

    PlayerMoveProtection = true #Should we protect prisoners against moving out of jail?
    PlayerMovePenalty = 30 #For how much time is prisoner's time increased if he tries to move out of jail. Use 0 to disable penalty.

    FireProtection = true #Should we protect prisoners against starting fires?
    FirePenalty = 10 #For how much time is prisoner's time increased if he tries to start a fire? Use 0 to disable penalty.

    PreventCommands = /spawn,/kill,/warp #Which commands should we prevent from using in jail?
    CommandPenalty = 10 #For how much time is prisoner's time increased if he tries to use forbidden command. Use 0 to disable penalty.


    UseMySQL = true #true = use MySQL database / false = use SQLLite
    MySQLConn = jdbc:mysql://localhost:3306/minecraftrp #MySQL Connection string (only if using MySQL)
    MySQLUsername = user #MySQL Username (only if using MySQL)
    MySQLPassword = pw #MySQL Password (only if using MySQL)


    MessageJailReason = ?cDu wurdest eingesperrt! Grund: <Reason> test
    MessageMute = Ruhe da drin! In unserem Gefängnis wird nicht geredet!
    MessageDestroyPenalty = ?cDu versuchst doch tatsächlich das Gefängnis auseinander zu nehmen. Tja das gibt dir weitere 15 Minuten zum nachdenken.
    MessageFirePenalty = ?cBrenn das Gefängnis nicht ab! Jetzt darfst du wieder länger einsitzen!
    MessageDestroyNoPenalty = ?cLass es, kannst eh nichts kaputt machen.
    MessageMovePenalty = ?cVersuch nicht wegzurennen! Das gibt weitere 30 Minuten im Knast!
    MessagePlacePenalty = ?cMüll das Gefängnis nich zu! Das gibt dir weitere 10 Minuten hier drin.
    MessageBucketNoPenalty = ?cKeine geplantsche im Gefängnis!
    MessagePlaceNoPenalty = ?cMüll das Gefängnis nicht zu!
    MessageUnJail = ?2Du bist Frei! Und diesmal halt dich an die Regeln!
    MessageBucketPenalty = ?cKein geplantsche im Gefängnis! Du hast dir weitere 10 Minuten Strafe eingehandelt!
    MessageTransfer = ?9Hier dein neue zuhause.
    MessageMoveNoPenalty = ?cVersuch nicht wegzurennen.
    MessageJail = ?cDu wurdest eingesperrt.
    MessageFireNoPenalty = ?cBrenn das Gefängnis nicht ab!
    MessageCommandNoPenalty = ?cNa na na. Mit Schummeleien kommst du hier auch nicht raus!
    MessageCommandPenalty = ?cVersuchst du dich rauszuschummeln? Das gibt dir weitere 10 Minuten!


    Greetings AnzahCraft
     
  30. Offline

    Chris Lewis

    Thanks so much for the update. It now works with the reload command and is now implemented on my server again, after a much hated abscence! Also confirmed to work with latest CB build 766
     
  31. Offline

    Tealk

    java version "1.6.0_22"
    Java(TM) SE Runtime Environment (build 1.6.0_22-b04)
    Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03, mixed mode)

    Minecraft and Plugin versions and Error:
    http://pastebin.com/aeEseLAX
     

Share This Page