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

    NordicBlue

  3. Offline

    matejdro

    Try if this release still shows the error
     

    Attached Files:

  4. Offline

    NordicBlue

    This is from before the version you just posted:

    Jan 28, 2011 11:07:11 PM org.bukkit.plugin.SimplePluginManager callEvent
    SEVERE: Could not pass event PLAYER_COMMAND to Jail
    java.lang.NullPointerException
    at com.matejdro.bukkit.jail.JailPlayer.onPlayerCommand(JailPlayer.java:267)
    at org.bukkit.plugin.java.JavaPluginLoader.callEvent(JavaPluginLoader.java:138)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:216)
    at net.minecraft.server.NetServerHandler.c(NetServerHandler.java:554)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:528)
    at net.minecraft.server.Packet3Chat.a(SourceFile:24)
    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:265)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:201)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:512)
    2011-01-28 23:07:11 [INFO] NordicBlue issued server command: jailcheck tripinot
    2011-01-28 23:07:11 [INFO] Unknown console command. Type "help" for help.
    2011-01-28 23:07:16 [INFO] [Jail][Debug] 566,cell1,false,,tripinot
    --- merged: Jan 28, 2011 10:09 PM ---
    And this:

    2011-01-28 23:08:28 [INFO] �4NordicBlue: �fwhat does /jailstatus say
    2011-01-28 23:08:35 [INFO] [PLAYER_COMMAND] tripinot: /jailstatus
    2011-01-28 23:08:35 [INFO] tripinot tried command: jailstatus
    2011-01-28 23:08:36 [INFO] [Jail][Debug] 1278,cell1,false,,tripinot
    2011-01-28 23:08:40 [INFO] �eAudio2014: �fmicheal and bleedout, im headed your w way, let me know if im in your space
    2011-01-28 23:08:42 [INFO] �etripinot: �fnothing
    2011-01-28 23:08:45 [INFO] [PLAYER_COMMAND] tripinot: /jailstatus
    2011-01-28 23:08:45 [INFO] tripinot tried command: jailstatus
    2011-01-28 23:08:46 [INFO] [Jail][Debug] 1277,cell1,false,,tripinot
    --- merged: Jan 28, 2011 10:25 PM ---
    New version,worked perfect the first time till a reboot, after reboot the Jails were gone, i recreate one and wanted to jail myself:

    2011-01-28 23:25:15 [INFO] [Jail][Debug] -6,cell1,false,,NordicBlue
    2011-01-28 23:25:15 [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:298)
    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)
     
  5. Offline

    matejdro

    OK thanks for the report.
     
  6. Offline

    WMisiedjan

    Got the Exact same thing as NordicBlue
     
  7. Offline

    Racha

    Not showing colors in chat ;//
     
  8. Offline

    generalmek

    :( can u make version withouth MYsql?
     
  9. Offline

    Scizzr

    /jailstatus isn't displaying jail information when user has permissions to use jail.usercmd.jailcheck

    When given permission to jail.usercmd.* it works just fine. Can you explain that? Did you update the node and not edit your post?

    Edit: Aha. It's supposed to be jail.usercmd.jailstatus so you should edit your original post to clarify that.

    Edit2: Also, now getting the same thing as Nordic and others about the Error while updating prisoner into DB! after a reboot. This "error" is spammed every 10 seconds.
    Code:
    2011-01-28 14:52:54 [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)
    Please fix it, as this plugin has great potential.
     
  10. Offline

    matejdro

    @cembry90 oops, my bad. I listed jailcheck twice. Thanks for noticing.

    Anyway, try this release. It might fix SQL errors.
     

    Attached Files:

  11. Offline

    Drakoon

  12. Offline

    matejdro

    what OS and java version (64 or 32 bit) are you guys using? Is there anyone except me that does not get these errors?
     
  13. Offline

    Racha

    Why colors are not working on this plugin ? :(
     
  14. Offline

    matejdro

    What colors?
     
  15. Offline

    fugue2005

    hold anything in your hand and right click a distant block
     
  16. Offline

    Scizzr

    Still not working after server restart. See my video:
     
  17. Offline

    matejdro

    I have a good feeling about this one.

    @fugue2005 do you still get that hand error in newest release? I thought i fixed it in v0.2.
     

    Attached Files:

  18. Offline

    Juggernaut

    Where does this add??

    Permissions:
    jail.command.jailcreate
    jail.command.jaildelete
    jail.command.jail
    jail.command.unjail
    jail.command.jailtransfer
    jail.command.jailtransferall
    jail.command.jailcheck

    Permissions for the admin commands.
    jail.usercmd.jailstatus

    Permissions for the user commands.
    jail.modifyjail
     
  19. Offline

    matejdro

  20. Offline

    Juggernaut

    Like this?
     

    Attached Files:

    • 1.PNG
      1.PNG
      File size:
      32.3 KB
      Views:
      10
  21. Offline

    matejdro

    Yes, like this.

    But in your case you don't need that. You already have '*' at the top, which means that all permissions will be enabled automatically. These permissions are just for servers with moderators, so admin can specify commands like mods can jail people, but cannot create new jail.
     
  22. Offline

    Jarchuleta

    It works great for a day for a bit. then goes crazy. this is what is said before crashing the server. it crashed my server hard.
    Code:
    Exception in thread "AWT-EventQueue-0" java.util.ConcurrentModificationException
            at java.util.HashMap$HashIterator.nextEntry(HashMap.java:793)
            at java.util.HashMap$ValueIterator.next(HashMap.java:822)
            at com.matejdro.bukkit.jail.Jail$1.actionPerformed(Jail.java:278)
            at javax.swing.Timer.fireActionPerformed(Timer.java:271)
            at javax.swing.Timer$DoPostEvent.run(Timer.java:201)
            at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
            at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
            at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
            at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
            at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
            at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
    
    then when it comes back up, i guess the sqllite files is corrupt.

    Code:
    [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:271)
            at javax.swing.Timer$DoPostEvent.run(Timer.java:201)
            at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
            at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
            at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
            at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
            at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
            at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
    
     
  23. Offline

    matejdro

    @Jarchuleta did you try release from few posts above?
     
  24. Offline

    Juggernaut

    But I have some reason does not work. Write / jailcreate jail1 and nothing happens
     
  25. Offline

    Drakoon

    IT works now. Thanks for you. But i have another problem. I'm moderator in permissions, my friend is admin. We have the same permissions that he has, but i can normally move out of jail, he cannot. Why?
    My permissions and jail config files:
    Jail:
    Code:
    BucketProtection = true #Should we protect prisoners against using buckets?
    PlayerMoveProtection = true #Should we protect prisoners against moving out of jail?
    PlayerMovePenalty = 0 #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)
    MessageDestroyPenalty = §cDo not destroy The Jail! You have just earned additional 0 minutes in jail!
    FireProtection = true #Should we protect prisoners against starting fires?
    BlockDestroyPenalty = 0 #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 0 minutes in jail!
    BlockPlacePenalty = 0 #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 0 minutes in jail!!
    MessageCommandPenalty = §cDo not try to escape with commands! You have just earned additional 0 minutes in jail!
    PreventCommands = /spawn,/kill,/warp,/home #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 = 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 = 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!
    MessageJail = §cYou have been jailed!
    CommandPenalty = 0 #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 0 minutes in jail!
    BlockPlaceProtection = true #Should jail be protected against placing blocks in it it?
    UseMySQL = false #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 0 minutes in jail!
    MessageBucketNoPenalty = §cDo not try to flood the jail!
    FirePenalty = 0 #For how much time is prisoner's time increased if he tries to start a fire? Use 0 to disable penalty.
    
    Perm:
    Code:
    # Supports "Default" and "GroupUsers"
    plugin:
        permissions:
            system: default
    
    ##
    # Groups can contain inheritance.
    #   To make a group inherit the permissions from another
    #   group simply place the groups name in the "inheritance:"
    #   field seperated by commas.
    #
    #   Example: inheritance: Default,Admins,
    ##
    #   All permissions including the asterisks must be placed in single quotes.
    #   like so:
    #
    #       - 'general.spawn'
    #
    #   Otherwise errors will happen!
    ##
    #   Globalized Permission settings:
    #
    #       If a permission contains periods (.) you can denote a globalized parameter:
    #
    #           - 'general.*'
    #
    #       This will allow you to use all general commands.
    #
    ##
    #
    #   Single Asterisk denotes all commands:
    #
    #       - '*'
    ##
    groups:
        Default:
            default: true
            info:
                prefix: [D]
                suffix:
                build: true
            inheritance:
            permissions:
                - 'iConomy.payment'
                - 'iConomy.access'
                - 'iConomy.rank'
                - 'simpleshop.buy'
                - 'simpleshop.sell'
                - 'jail.usercmd.jailcheck'
                - 'myhome.home.*'
                - 'myhome.soc.*'
                - 'wormhole.use'
                - 'lwc.protect'
    
        Moderator:
            default: false
            info:
                prefix: [M]
                suffix:
                build: true
            inheritance:
                - Default
            permissions:
                - '*'
                - 'jail.*'
                - 'iConomy.*'
                - 'simpleshop.*'
                - 'myhome.*'
                - 'wormhole.*'
                - 'lwc.*'
                - 'SimpleWarp.*'
    
        Admins:
            default: false
            info:
                prefix: [A]
                suffix:
                build: true
            inheritance:
                - Moderator
            permissions:
                - '*'
                - 'jail.*'
                - 'iConomy.*'
                - 'simpleshop.*'
                - 'myhome.*'
                - 'wormhole.*'
                - 'lwc.*'
                - 'SimpleWarp.*'
    
    ##
    # DarkGrave has control over all commands.
    # sk89q can use /spawn & /time
    ##
    users:
        drakoon:
            group: Moderator
            permissions:
        owen:
            group: Default
            permissions:
        archetype:
            group: Default
            permissions:
        morr:
            group: Default
            permissions:
        Rooxor:
            group: Admins
            permissions:
     
  26. Offline

    matejdro

    Write it without space between / and jailcreate.

    Do you got any errors in console?

    @Drakoon are you jailed? Only jailed people cannot move out of jail. And there is no permission that will affect that. If you are jailed, you cannot move out regardless of your permissions.
    --- merged: Jan 29, 2011 11:28 PM ---
    Also, SQL fix update is now official (version number increased).
     
  27. Offline

    podit

    The commands don't even work now please help at firs I was having the same problems as as the rest of you but now I cant even make the jail zones or jail people [​IMG]
     
  28. Offline

    matejdro

    Do you have permissions to use the commands?
     
  29. Offline

    podit

  30. Offline

    Juggernaut

    I write without a space /jailcreate
    Caused by: java.lang.NullPointerException
    at ws.triii.bu.PluginMain.<init>(PluginMain.java:31)
    ... 13 more
    2011-01-30 01:36:15 [INFO] [General] version [1.5] (Yager) loaded
    2011-01-30 01:36:15 [INFO] [Guardian] version [1.2] (Helmet) loaded
    2011-01-30 01:36:15 [INFO] [Healthy] version [1.0] (Apple) loaded
    2011-01-30 01:36:15 [INFO] [iStick] version [1.2] (Leaves) loaded
    2011-01-30 01:36:15 [INFO] [Permissions] version [1.9] (Handler) loaded
    2011-01-30 01:36:15 [INFO] WorldEdit 2.14.2 loaded.
    2011-01-30 01:36:15 [INFO] WorldEdit: GroupUsers detected! Using GroupUsers for
    permissions.
    2011-01-30 01:36:15 [INFO] 3 user registration loaded
    2011-01-30 01:36:15 [INFO] Registration allowed
    2011-01-30 01:36:15 [INFO] Authorization plugin build 1 is enabled
    2011-01-30 01:36:15 [INFO] Loaded Essentials b112 by Zenexer, Eris, and EggRoll
    God Powers for Bukkit version 1.0 is enabled!
    2011-01-30 01:36:15 [INFO] [GroupUsers] version [1.4] is loaded!
    2011-01-30 01:36:15 [INFO] [Jail] Loaded 0 jail zones.
    2011-01-30 01:36:15 [INFO] [Jail] Loaded 0 prisoners.
    Take yourself wonder by wonder, using /magiccarpet or /mc. Magic Carpet version
    1.3 is enabled!
    PickBoat version 0.2 is enabled!
    2011-01-30 01:36:15 [INFO] ProtectedDoors version 0.1.2 is enabled!
    2011-01-30 01:36:15 [INFO] Done! For help, type "help" or "?"
     
  31. Offline

    matejdro

    It may be GroupUsers fault. Do you have permissions set for that plugin?

    @podit what other security plugins do you have?
     

Share This Page