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

    @matejdro
    Suggestion:
    When a users time is left in seconds it shows (0 min) this causes huge confusion and ppl try to escape thinking they are free thus adding more time. I suggest it shows 1 second untill the end of time, not 0
     
  3. Offline

    Jake Buly

    please update this, its making my server crash because its an old version.
     
  4. Offline

    andrewkm

    @matejdro
    Works great on 803 with jail 1.0.2
    Only one problem.
    Everytime i use a jail command it gives off an un "unknown console command. type "help" for help." - message.
    However the command DOES work and everything does infact function fine. Please look into this :)
     
  5. Offline

    Jake Buly

    When I use /jailclear it crashes the server? Also when people get jailed it sometimes messes up the server too?
    Please help me
     
  6. Offline

    Seth666Hell

    @Olat I kinda like this idea instead of instabanning everyone xD If they know they are in the jail they'll leave the server anyways. Parius
     
  7. Offline

    matejdro

    @agzt01 cell must be inside jail

    @Black_Shade enable it in settings then simply left click on someone with stick to jail him. You would also need permission or be an op if you don't have permissions plugin.

    @main() what about putting some torches into jail?

    @ScottSpittle um... right... reuploaded.

    @NateBody what if they have tried to escape and then they want to trick you that they just gained time, so you would lower it?

    @andrewkm sounds good

    @jake Bully try reuploaded version
     
  8. Offline

    andrewkm

    @matejdro
    1.0.3 still giving the unknown console command message(However all commands work fine)
     
  9. Offline

    Ep8841

    Um how there is no error they just dont get ported back in

    My Config looks like this:

    Code:
    BucketProtection = true #Should we protect prisoners against using buckets?
    PlayerMoveProtection = false #Should we protect prisoners against moving out of jail?
    MutePrisoners = true #Should we prevent prisoners from sending messages?
    PlayerMovePenalty = 30 #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 = §cStop 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 15 minutes in jail!
    BlockPlacePenalty = 10 #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 30 minutes in jail!!
    MessageCommandPenalty = §cDo not try to escape with commands! You have just earned additional 10 minutes in jail!
    PreventCommands = * #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 = 10 #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 = true #Should we delete player's inventory when jailing?
    MessageMoveNoPenalty = §cDo not try to escape out of Jail!
    MessageJail = §cYou have been jailed!
    CommandPenalty = 10 #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!
    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 §d/rules ~sincerely §cEp8841.
    MessagePlacePenalty = §cDo not place blocks inside Jail! You have just earned additional 10 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.
    Hope This Helps
    Ep8841
     
  10. Offline

    TheBarkingFrog

    Same thing for me, seems like this has been happening on a lot of plugins i try since i switched to build 803
     
  11. I don't get this, i have reïnstalled it several times, and the first time it runs, but any second time i get the unknown console command message and i can't get it to work at all :S
     
  12. Offline

    andrewkm

    Not here, for me its JUST jail for some reason... weird.
     
  13. Offline

    Flipp

    Hi,
    i like the Plugin, but this happened when I made a Jailtransfer. And it crashed my Server!
    It was CB 766.
    Code:
    com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data too long for column 'Inventory' at row 1
    2011-05-25 05:47:09 [SEVERE]     at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3591)
    2011-05-25 05:47:09 [SEVERE]     at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3525)
    2011-05-25 05:47:09 [SEVERE]     at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1986)
    2011-05-25 05:47:09 [SEVERE]     at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2140)
    2011-05-25 05:47:09 [SEVERE]     at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2626)
    2011-05-25 05:47:09 [SEVERE]     at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2111)
    2011-05-25 05:47:09 [SEVERE]     at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2407)
    2011-05-25 05:47:09 [SEVERE]     at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2325)
    2011-05-25 05:47:09 [SEVERE]     at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2310)
    2011-05-25 05:47:09 [SEVERE]     at com.matejdro.bukkit.jail.InputOutput.UpdatePrisoner(InputOutput.java:441)
    2011-05-25 05:47:09 [SEVERE]     at com.matejdro.bukkit.jail.JailPrisoner.StoreInventory(JailPrisoner.java:159)
    2011-05-25 05:47:09 [SEVERE]     at com.matejdro.bukkit.jail.Jail.Transfer(Jail.java:484)
    2011-05-25 05:47:09 [SEVERE]     at com.matejdro.bukkit.jail.Jail.onCommand(Jail.java:796)
    2011-05-25 05:47:09 [SEVERE]     at org.bukkit.command.PluginCommand.execute(PluginCommand.java:35)
    2011-05-25 05:47:09 [SEVERE]     at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:85)
    2011-05-25 05:47:09 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:278)
    2011-05-25 05:47:09 [SEVERE]     at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:682)
    2011-05-25 05:47:09 [SEVERE]     at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:645)
    2011-05-25 05:47:09 [SEVERE]     at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:639)
    2011-05-25 05:47:09 [SEVERE]     at net.minecraft.server.Packet3Chat.a(Packet3Chat.java:32)
    2011-05-25 05:47:09 [SEVERE]     at net.minecraft.server.NetworkManager.a(NetworkManager.java:196)
    2011-05-25 05:47:09 [SEVERE]     at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
    2011-05-25 05:47:09 [SEVERE]     at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    2011-05-25 05:47:09 [SEVERE]     at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:372)
    2011-05-25 05:47:09 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:287)
    2011-05-25 05:47:09 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    maybe my Jail was too small? It is 2x2x3 Blocks, and the Cell is the whole Jail.
    Or because my Inventory was full, and I had 64 stacked Signs?

    Greets Flipp
     
  14. Offline

    TheBarkingFrog

    @andrewkm
    So far i've found this, and iConomy are doing it. I guess they just need updating, which my guess will be when Minecraft 1.6 comes out.
     
  15. Offline

    andrewkm

    ummm
    This is so weird...
    I HAVE NO idea why.... lol and i made no changes or anything whatsoever to any plugins, but the problem... MAGICALLY stoppped.....wtf? LOL
     
  16. Offline

    Ep8841

    never mind my error i just reinstalled the LATEST VERSION and it works fine now
     
  17. Offline

    40540057

    MATEJDRO could you add a feature for me, fork this, or allow me to have someone fork it to add this:

    different jail items with jail times and reasons set in a config, ie one item gives them 1 hour and reason 'grief', another is 30 min and 'theft', admin should be able to set the items, time and reason in the config, maybe a open number of items if possible, or even just 5 would probably cover most cases ... thanks!

    EDIT:could you also possibly add the ability to edit existing jail areas, their dimensions, the teleport and release locations, delete last cell or delete all cells without deleting the whole jail
     
  18. In 1.0.3:

    Code:
    18:37:28 [SEVERE] Exception in thread "AWT-EventQueue-0"
    18:37:28 [SEVERE] java.lang.IndexOutOfBoundsException: Index: 97, Size: 97
    18:37:28 [SEVERE]       at java.util.ArrayList.rangeCheck(ArrayList.java:604)
    18:37:28 [SEVERE]       at java.util.ArrayList.get(ArrayList.java:382)
    18:37:28 [SEVERE]       at org.bukkit.craftbukkit.CraftServer.getOnlinePlayers(CraftServer.java:151)
    18:37:28 [SEVERE]       at org.bukkit.craftbukkit.CraftServer.getPlayer(CraftServer.java:158)
    18:37:28 [SEVERE]       at com.matejdro.bukkit.jail.Jail$1.actionPerformed(Jail.java:513)
    18:37:28 [SEVERE]       at javax.swing.Timer.fireActionPerformed(Timer.java:312)
    18:37:28 [SEVERE]       at javax.swing.Timer$DoPostEvent.run(Timer.java:244)
    18:37:28 [SEVERE]       at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
    18:37:28 [SEVERE]       at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:705)
    18:37:28 [SEVERE]       at java.awt.EventQueue.access$000(EventQueue.java:101)
    18:37:28 [SEVERE]       at java.awt.EventQueue$3.run(EventQueue.java:666)
    18:37:28 [SEVERE]       at java.awt.EventQueue$3.run(EventQueue.java:664)
    18:37:28 [SEVERE]       at java.security.AccessController.doPrivileged(Native Method)
    18:37:28 [SEVERE]       at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
    18:37:28 [SEVERE]       at java.awt.EventQueue.dispatchEvent(EventQueue.java:675)
    18:37:28 [SEVERE]       at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:211)
    18:37:28 [SEVERE]       at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
    18:37:28 [SEVERE]       at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
    18:37:28 [SEVERE]       at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
    18:37:28 [SEVERE]       at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
    18:37:28 [SEVERE]       at java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
     
  19. Offline

    AFakeman

    When player escapes, he gets back to the jail, but not to his cell.
     
  20. Offline

    Jake Radcliff

    Wait, so a player can escape? They can flip the lever, and just get out? That's not that good of a plugin, unless you have someone patrolling the border 24/7
     
  21. Offline

    jbMurdock

    @Jake_Radcliff:
    Escaping is not that easy, and it depends on how "hard" you configure your jail. Just try it yourself. Of course you can make an escape possible and set up a jail guard. Would be a nice new job on the server :cool:
     
  22. Offline

    matejdro

    @andrewkm does this happen on any command?

    @Flipp that was fixed in 1.0.3

    @40540057 sounds good. Editing existing areas is planned.

    @Joy hm, weird error. I will do some stuff which might fix it, but i think this one is on bukkit's side.

    @AFakeman oh right. Thanks for the reminder :)

    @Jake Radcliff No, they cannot escape unless you enable escaping.
     
  23. Offline

    andrewkm

    @matejdro
    It used to, but it magically stopped. LITERARLY magically stopped, with out changing any config or updating any plugin. Never in my life had i had a problem magically stop. Very weird indeed. You should ask the others who were experiencing it if they still have it. But yes when i DID have the problem, it was for every command, yet the commands did work.
     
  24. Offline

    matejdro

    Based on my testing, /jail commands should have that problem, but others should be fine.
     
  25. Offline

    Flipp

    Thanks! :)

    Found something again: If I transfer somebody, the Inventory and the Sign don´t move to the New Cell.

    Also, if I unjail someone (after transfering), he doesn´t get his Stuff back, and the Sign don´t get erased.

    But that´s not that kind of dramatic..
    Just wanted to test the Transfer.

    Greets, Flipp
     
  26. Offline

    40540057

    BUG: CB 803, Jail 1.0.3 .. got a lot of these errors, not sure what people are doing to cause them, there is only one jail with a few cells, no one jailed though

    2011-05-25 07:36:09 [SEVERE] Could not pass event PLAYER_INTERACT to Jail
    java.lang.NullPointerException
    at org.bukkit.Location.getBlock(Location.java:72)
    at com.matejdro.bukkit.jail.JailCell.getChest(JailCell.java:47)
    at com.matejdro.bukkit.jail.JailPlayerPrevent.onPlayerInteract(JailPlayerPrevent.java:127)
    at org.bukkit.plugin.java.JavaPluginLoader$9.execute(JavaPluginLoader.java:299)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:302)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:162)
    at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:207)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:535)
    at net.minecraft.server.Packet15Place.a(SourceFile:57)
    at net.minecraft.server.NetworkManager.a(NetworkManager.java:196)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:377)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:292)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
     
  27. Offline

    Kevin Forte

    This NEEDS an API more than anything!
     
  28. Offline

    Daniel Few

    @matejdro
    Sorry I didn't quite understand your permission nodes.
    Do you need a permission node that allowed that group to be jailed? Or is all that just default set?
    -DanJames
     
  29. Offline

    RadRetribution

    Hey i have been trying to make a jail but every time i try and send someone to jail it says an internal error accoured?
    i have no i dea what is wrong!!
     
  30. Offline

    Daniel Few

    Have you tried re-installing the plug-in?
    Also have you reloaded your server since you installed it?
    -DanJames

    I'm getting this error when reloading my server:

    Anyone know the problem?
    Btw it spams the console and doesn't seem to end, just repeats the error over and over.
    -DanJames

    EDIT: oh it seems to have stopped :/

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 18, 2016
  31. Offline

    Tealk

    hi its possible to edit the command?
    /jail [Player name] (Time) (Jail name) (Reason)
    to
    /jail [Player name] (Time) (Reason) (Jail name)
    that you dosnt must set a jail but can set a reason?

    and is it possible that you can define the cell?
     

Share This Page