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

    lee smith

    hmm how do i get jail cuboid to work?
     
  3. Offline

    Dalaxerking13

    ya im getting the same internal error problem when i try to jail someone and on the server side it shows this
    18:32:42 [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: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.NumberFormatException: For input string: "maincity"
    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
     
  4. Offline

    matejdro

    @Chris Lewis try manually disabling and enabling plugin, to see if problem happens when plugin is unloading or when is loading.

    @Wegs Are you full administrator of PC?

    @Niles @Dalaxerking13 @branny666 how exactly did you typed command?

    @StickerZ Error happens on every command or only on commands that involve teleportation?

    @Stelith61 I laughed so hard when i read this. Farm inside prison! Added to todo list.

    @Daimon761 any errors?

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

    @xZise when you are jailed, you cannot destroy jail even when you have that permission

    @lee smith can you describe your problem?
     
  5. Offline

    xZise

    Yep thanks for this feature, but there is nobody jailed.

    Fabian
     
  6. Offline

    Chris Lewis

    @matejdro it happens when the plugin is loading. it unloads just fine.
     
  7. Offline

    lastmikoi

    Seems to be a good plugin.

    However, since my players are really bored of typing commands, I would like to know if you have planned to add the following feature : Make a player able to jail someone by using a "truncheon" (such as right-clicking with a stick on a player), in order to make the command much easier and to add role-play to Jailing.
     
  8. Offline

    Dalaxerking13

    I did /jail playername jailname
     
  9. Offline

    Chris Lewis

    @Dalaxerking13 that is incorrect syntax for the plugin, i know its wierd and i know that should be accepted, but that cuases the error you are talking about. In this plugin the correct syntax to jail someone to a specific jail you must input a time. it must be /jail playername time(in minutes) jailname if you dont it will throw that error, also you can just use /jail playername and that will default to the most recent jail you built and jail them indefinitely.
    personally i think it should allow you to use your syntax and just put them in that jail indefinitely, but that is technically a feature request... a good one mind you, but a feature request nonetheless
     
  10. Offline

    matejdro

    @Chris Lewis which plugin do you use to reload?

    @lastmikoi planned. Actually in works, if I'm specific.
     
  11. Offline

    StickerZ

    @matejdro error happens on every command i try to use
     
  12. Offline

    matejdro

    Can you paste error from non-teleport command like /jailcheck?
     
  13. Offline

    NEO

    @matejdro

    Cb 740 Jail 6.1

    Code:
    2011-05-04 17:50:45 [SEVERE] [Jail] Error while loading Jail zones! - database is locked
    2011-05-04 17:50:45 [SEVERE] java.sql.SQLException: database is locked
    2011-05-04 17:50:45 [SEVERE]     at org.sqlite.DB.throwex(DB.java:288)
    2011-05-04 17:50:45 [SEVERE]     at org.sqlite.NestedDB.prepare(NestedDB.java:115)
    2011-05-04 17:50:45 [SEVERE]     at org.sqlite.DB.prepare(DB.java:114)
    2011-05-04 17:50:45 [SEVERE]     at org.sqlite.PrepStmt.<init>(PrepStmt.java:37)
    2011-05-04 17:50:45 [SEVERE]     at org.sqlite.Conn.prepareStatement(Conn.java:231)
    2011-05-04 17:50:45 [SEVERE]     at org.sqlite.Conn.prepareStatement(Conn.java:224)
    2011-05-04 17:50:45 [SEVERE]     at org.sqlite.Conn.prepareStatement(Conn.java:213)
    2011-05-04 17:50:45 [SEVERE]     at com.matejdro.bukkit.jail.InputOutput.LoadJails(InputOutput.java:131)
    2011-05-04 17:50:45 [SEVERE]     at com.matejdro.bukkit.jail.Jail.onEnable(Jail.java:69)
    2011-05-04 17:50:45 [SEVERE]     at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:127)
    2011-05-04 17:50:45 [SEVERE]     at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:632)
    2011-05-04 17:50:45 [SEVERE]     at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:218)
    2011-05-04 17:50:45 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:116)
    2011-05-04 17:50:45 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:94)
    2011-05-04 17:50:45 [SEVERE]     at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:217)
    2011-05-04 17:50:45 [SEVERE]     at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:204)
    2011-05-04 17:50:45 [SEVERE]     at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:144)
    2011-05-04 17:50:45 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:259)
    2011-05-04 17:50:45 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    2011-05-04 17:50:48 [SEVERE] [Jail] Error while loading prisoners from the database! - database is locked
    2011-05-04 17:50:48 [SEVERE] java.sql.SQLException: database is locked
    2011-05-04 17:50:48 [SEVERE]     at org.sqlite.DB.throwex(DB.java:288)
    2011-05-04 17:50:48 [SEVERE]     at org.sqlite.NestedDB.prepare(NestedDB.java:115)
    2011-05-04 17:50:48 [SEVERE]     at org.sqlite.DB.prepare(DB.java:114)
    2011-05-04 17:50:48 [SEVERE]     at org.sqlite.PrepStmt.<init>(PrepStmt.java:37)
    2011-05-04 17:50:48 [SEVERE]     at org.sqlite.Conn.prepareStatement(Conn.java:231)
    2011-05-04 17:50:48 [SEVERE]     at org.sqlite.Conn.prepareStatement(Conn.java:224)
    2011-05-04 17:50:48 [SEVERE]     at org.sqlite.Conn.prepareStatement(Conn.java:213)
    2011-05-04 17:50:48 [SEVERE]     at com.matejdro.bukkit.jail.InputOutput.LoadPrisoners(InputOutput.java:181)
    2011-05-04 17:50:48 [SEVERE]     at com.matejdro.bukkit.jail.Jail.onEnable(Jail.java:70)
    2011-05-04 17:50:48 [SEVERE]     at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:127)
    2011-05-04 17:50:48 [SEVERE]     at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:632)
    2011-05-04 17:50:48 [SEVERE]     at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:218)
    2011-05-04 17:50:48 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:116)
    2011-05-04 17:50:48 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:94)
    2011-05-04 17:50:48 [SEVERE]     at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:217)
    2011-05-04 17:50:48 [SEVERE]     at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:204)
    2011-05-04 17:50:48 [SEVERE]     at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:144)
    2011-05-04 17:50:48 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:259)
    2011-05-04 17:50:48 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
     
  14. Offline

    Calcifero

    I think it should be noted, that this plugin does not work well with the plugin 'AuthMe' in a scenario where you jail users who have connected to the server but not yet registered/logged in. The user who hasn't logged in/registered prevents itself from remaining in jail- thus this plugins's feature to bring the player back to jail goes through an infinite loop of error messages on the server cmd and the escaping jail penalty message. However, jailing users before they connect to the server works fine. If the user connects, simply wait until s/he logs in before jailing. Also, I think the error stops after the user does log in.
    Not such a big deal and im not complaining, but I feel it should be addressed.
    Sorry if this has already been mentioned!
     
  15. Offline

    StickerZ

    @matejdro
    Code:
    >21:15:51 [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: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.Jail(Jail.java:216)
    at com.matejdro.bukkit.jail.Jail.onCommand(Jail.java:475)
    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    ... 12 more
     
  16. Offline

    Wegs

    Yes.
     
  17. Offline

    matejdro

    @NEO @Wegs I'm working on some database updates for v0.7, which could eliminate those errors.

    @StickerZ this is not jailcheck.
     
  18. Offline

    MuttsNuts

    Hello. I've got an idea that i wander if you'll be interested in.

    Basically I use the excellent BankAccount plugin by TAT http://forums.bukkit.org/threads/ec...red-bank-accounts-using-iconomy-4-x-740.7095/ and it has a loan system.

    I was wandering if you could make it work with that plugin or iConomy if thats the way it works (I don't know anything about programming etc ) so that any players that have taken out a loan or owe money and don't pay up on time by the payment due date/time the player automatically gets sent to jail for a configurable amount of time.

    Also what would be cool is if after serving time in jail, if they still haven't paid the debt by the next preset due date/time they get sent to jail automatically again but with another configurable setting to have extended periods for repeat offenders.
    This could also apply for any offence commited. As the offenders data is stored within a MySQL database it could increase the jail time (configurable time amount) by the number of repeat offences stored in the database.

    Pretty much like this... (TNT blocks sre not allowed to be placed on a server for example)
    • player places TNT (breach of server rules)
    • Player gets sent to jail automatically for set amount of time (Admin configurable time via Jail properties file)
    • Player is released from jail after serving the set time
    • player re-offends ( ie. places more TNT)
    • player is then sent back to jail automatically for an extended period of time (again Admin configurable time)
    This could continue on upto the point where the player reaches the max jail time set limit and then they always do the longest set time for further repeat offences until a member of Admin clears them from the database if they chose to do so, resetting them back to the smallest jail sentance time.
    With the BankAccount plugin once the owed amount of money has been settled the player no longer gets sent to jail until the next offence commited (if loan is overdue once again sentance gets extended, if a new offence is commited the player starts at the lowest jail time set by Admin in the Jail properties file). So this would mean it would somehow have to check with iConomy/BankAccount that the player has payed the loan amount due at the set time.

    Any Admin with access to the Jail properties file could set it up in a way that, for example they could create upto 5 (maybe more) different jail sentance lengths for each offence that the plugin checks with the database how many times a player has been jailed for for the offence they have just commited then refers to the properties file to check for jail time due for whatever band they fall in depending on the amount of repeat offences commited.
    Also Admins could change between Auto Jail and manual command based jailing. Either way commands will always be the higher priority so all Admin retain full control of a servers players when needed.

    iConomy and BankAccount both use MySQL to store data so that may help somewhat.

    Anyway I would love something like this to happen.

    This is the best jail plugin I have come across. Love using it! It has many excellent features, is very simple to use and setup minus the MySQL part... That was a headache at first tbh until I used WAMP as recommended in the second video byt RyanH100 in your plugin description.

    Anyway thank you for a brilliant plugin. I hope it never becomes [INACTIVE] as so many good plugins do unfortunately.
     
  19. Offline

    Stephen92

    is there an expected release for an updated version for 740?
     
  20. Offline

    matejdro

    @MuttsNuts BankAccount must implement support for jail, not opposite.

    @Stephen92 current version should work with 740.
     
  21. Offline

    Chris Lewis

    @matejdro i am not using any plugin i can think of to reload, i actually thought this was a default command...
    if its not a default command then the only thing i can think of that would be reloading would be the wrapper, refer to my plugins list in my signature for the extact name and version. BTW anyone not using the wrapper should, ITS awesome for commands, remote control, and has error sensing to restart the server as well as timed server restarts, all built into the one wrapper....
     
  22. Offline

    Pythros

    Request...

    To have (reason) to be mandatory. A way to check the reason in game by the jailee and those who can jail.
    Also, I don't see a way to track who is jailing who. There is no log file and nothing shows in the server log or in the db that I can tell...
     
  23. Offline

    matejdro

    @Chris Lewis Yes, Mobile Admin reloads plugins. I will change how database loads in v0.7, so maybe it will work for you then.

    @Pythros good ideas. Added to list.
     
  24. I don't see it in the changelogs, did you add the temporary inventory remove feature ?
     
  25. Offline

    matejdro

    Nope, but coming in v0.7.
     
  26. Offline

    Pythros

    Thanks. We have had problems with staff jailing for no reason when players are offline.

    Maybe also have a check in place to see the "player" is a real player and/or is online? I've seen invalid usernames "jailed".
     
  27. Offline

    MuttsNuts

    @Matejdro

    BankAccount must implement support for jail, not opposite.

    Is this due to coding? I don't know the first thing about programming etc and how plugins relate to each other.

    Thanks.
     
  28. Offline

    Mineaccount

    everytime I try a command, it just says: an internal error occurred while attempting to perform this command
     
  29. Offline

    Chris Lewis

    @matejdro I hope so, looking forward to it. love your plugins
     
  30. Offline

    MuttsNuts

    For some reason within the last hour I have been getting this error too but not just limited to this plugin and cannot find any info on it that helps. Even using the /reload all command to reload all my plugins I get this error. After trying the command several times it sometimes works and other times crashes my client.

    Minecraft acts funny sometimes. Gotta love it. lol
     
  31. Offline

    matejdro

    @MuttsNuts both logic and programming. Imagine i would have to support every plugin that might need jailing feature. Jail plugin will be massive and huge work on my side. And i would have to check for other plugins instead of they just triggering events, which would consume much more server resources and will be harder to code. But if they add support for my plugin, they can add just few lines of code which is several minutes of work.

    Please paste error here.

    @Mineaccount please paste error here
     

Share This Page