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

    soulbrander

    just 1 suggestion, it may be a bit. o plicated but I would appreciate it if we could define regions and then if some one destriyed or place a block there ( previously specified if only some blocks could be placed or none) and send them to a (previously specified) jail for a ( previously specified) time. If you could do that that would be awesome
     
  3. Offline

    WMisiedjan

    I LOVE THIS PLUGIN, But got lot's of errors even with SQLLITE thingy in root.
     
  4. Offline

    matejdro

    @soulbrander that sounds like a job of Cuboid Plugin, not Jail. I will see what can i do, but it will be low priority.

    @WMisiedjan Can you please copy errors?
     
  5. Offline

    NordicBlue

    Great plugin!
    The only issue i am having with it is that jailcheck and jailstatus are not working.
    Says player is not jailed, or you are not jailed.
    --- merged: Jan 27, 2011 6:27 PM ---
    Also getting this error:
    2011-01-27 19:25:00 [SEVERE] [Jail] Error while updating Prisoner into DB!
    java.sql.SQLException: SQL logic error or missing database
    at org.sqlite.DB.throwex(DB.java:288)
    at org.sqlite.DB.exec(DB.java:68)
    at org.sqlite.Conn.commit(Conn.java:172)
    at com.matejdro.bukkit.jail.InputOutput.UpdatePrisoners(InputOutput.java:295)
    at com.matejdro.bukkit.jail.Jail$1.actionPerformed(Jail.java:273)
    at javax.swing.Timer.fireActionPerformed(Timer.java:293)
    at javax.swing.Timer$DoPostEvent.run(Timer.java:224)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:226)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:602)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)

    I am using SQLlite, the jdbc.jar file exists.
     
  6. Offline

    axebyte

    only time i get a run off errors is when someone uses the /home
    I added it to the list of ignored commands but they still go home, then when they move they return to the cell.
    That is when i get error spams/
     
  7. Offline

    NordicBlue

    Fixed by removing the database file
     
  8. Offline

    matejdro

    I think i have found the cause of all these SQL errors. Will be fixed in next release.
     
  9. Offline

    axebyte

    oh silly question, sorta my fault, i made a few test cells to test out the transfer and such commands, is there a /jaillist or something to show me the jails i made so i can delete them?
     
  10. Offline

    matejdro

    Not yet. But it's coming :)
     
  11. Offline

    WMisiedjan

    I get a lot of errors like this:
    27-jan-2011 20:01:42 org.bukkit.plugin.SimplePluginManager callEvent
    SEVERE: Could not pass event PLAYER_ITEM to Jail
    java.lang.NullPointerException
    at com.matejdro.bukkit.jail.JailPlayer.onPlayerItem(JailPlayer.java:354)

    at org.bukkit.plugin.java.JavaPluginLoader.callEvent(JavaPluginLoader.ja
    va:149)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.j
    ava:201)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:423)
    at net.minecraft.server.Packet15Place.a(SourceFile:57)
    at net.minecraft.server.NetworkManager.a(SourceFile:232)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:65)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:104)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:261)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:197)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
     
  12. Offline

    axebyte

    That is exactly what i get when they use /home command
     
  13. Offline

    NordicBlue

    The errors come back as soon as i try creating a jail.
     
  14. Offline

    subarct1c

    I'm using Essentials
     
  15. Offline

    SPACEDUDE360000

    Nice, pretty useful. Especially if you don't quite trust someone enough to ban people, but want them to have some basic admin capabilities.
     
  16. Offline

    highwisdom

    getting the same, but functionality is all there
     
  17. Offline

    matejdro

    Update

    This was bugfix update. If everything will work well now, i will start on adding features that you suggested.
     
  18. Offline

    NordicBlue

    Everything works perfect until i reboot the server.​
    Then i have to manually remove the database file again, and start over.​
    This error is what i get:​
    2011-01-28 15:41:43 [SEVERE] [Jail] Error while updating Prisoner into DB!
    java.sql.SQLException: SQL logic error or missing database
    at org.sqlite.DB.throwex(DB.java:288)
    at org.sqlite.DB.exec(DB.java:68)
    at org.sqlite.Conn.commit(Conn.java:172)
    at com.matejdro.bukkit.jail.InputOutput.UpdatePrisoners(InputOutput.java:296)
    at com.matejdro.bukkit.jail.Jail$1.actionPerformed(Jail.java:276)
    at javax.swing.Timer.fireActionPerformed(Timer.java:293)
    at javax.swing.Timer$DoPostEvent.run(Timer.java:224)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:226)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:602)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)

    Im no Java expert, but could it be that there is a I/O fault on plugin terminate/restart?
    Like Java needs to close a file after an operation, else it gets corrupted?
     
  19. Offline

    matejdro

    Damn, this is weird. It's not happening on my test server, but it may be the fact that I'm alone and you have tons of players.

    Can you try /disableplugin Jail before turning off server and tell if there is any difference?
     
  20. Offline

    DurtyFree

    First, awesome plugin :D A great thing for roleplay server :D
    But i have some suggestions, i want to create a group (in permissions) "Police" and i want to give them a command that can follow: /arrest [name] [time] [jail]
    -Name -> The player name (the player who get in the jail)
    -time -> The jail time (How long the player is in the jail, when nothing than 120 seconds. But i want to setup a maximum time that the player can set as jail time (Example: 240)
    -jail -> The jail zone (Whe nothing nearest jail)

    But the Police must be behind or in the near of the player, that he can arrest them. (Because it were unreal when a player stand example; at the ocean and the other player in the desert...)
    And than when the player gets in the jail a message came "Player %s were jailed by policeman %s for %d seconds" to all players.

    And a extra command for police:
    /unarrest [name]
    -Name -> The player who get unarrested

    But the policeman must be near the unarrest player.

    This were so awesome when you can add these :D

    PS: Sry for my bad english :S
     
  21. Offline

    NordicBlue

    Nope, sorry
     
  22. Offline

    Xiled313

    This is happening to me too.
     
  23. Offline

    Drakoon

    I have the same. After removing file, i created new jail, restarted server, and it happened again.
    @down
    sent
     
  24. Offline

    matejdro

    Can anyone send me sqllite file after restart (just before you delete it)?

    You can send to [email protected]
     
  25. Offline

    NordicBlue

    You got mail :)
     
  26. Offline

    matejdro

    Thanks for the mails NordicBlue and Michael.

    But for some reason, i can normally open your databases and get no error :(. That would probably slow down the process a bit.

    Anyway, please try release in attachment. There will be few debug lines added and please paste them here.

    @DurtyTree RP aspect is on my list, but first i need to make current plugin usable. Thanks for suggestion.
     

    Attached Files:

  27. Offline

    DurtyFree

    Thank you, i hope you release the RP Update soon :D
     
  28. Offline

    Drakoon

    it doesn't works.
     
  29. Offline

    matejdro

    Yes, but it adds several debug lines to the console (starting with "[Jail][Debug]"). Please paste them here.
     
  30. Offline

    NordicBlue

    The error is still the same, but i am not getting any [Jail][Debug] errors.
     
  31. Offline

    matejdro

    Is there anyone jailed on the server?
     

Share This Page