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

    matejdro

    It seems like Jail is not issue
     
  3. Offline

    Tealk

    no i have create the jails after this restart
     
  4. Offline

    matejdro

    So you have created jails and after that you have that issue?
     
  5. Offline

    Tealk

  6. Offline

    matejdro

    Does issue stop happening when you delete jail?
     
  7. Offline

    Tealk

    the issue come only if i jail someon or something else
     
  8. Offline

    Pythros

    Sweet update!
    But, what happen to the jail reason?
     
  9. Offline

    matejdro

    It's still there
     
  10. Offline

    blutherz

    cant say it enough:
    Thank you for this great plugin!
     
  11. Offline

    andrewkm

    @matejdro
    Im the OP and i have enable stick false.
    I use sticks for many plugins such as creative stick, ect...
    I know i can change my item from a stick to anything but i noticed this problemm however it shouldnt be like this with false right?
    -
    Everytime i click the floor with my stick it jails.... well, me.
    My range is 3 so thats why and i know im adming and have the permission to allow being jailed by stick, but its like the false option in config is NOT working at all....
    -
    Heres my config:
    Code:
    MessageJailReason = §cYou have been jailed! Reason: <Reason>
    BucketProtection = true #Should we protect prisoners against using buckets?
    PlayerMoveProtection = true #Should we protect prisoners against moving out of jail?
    PlayerMovePenalty = 1 #For how much time is prisoner's time increased if he tries to move out of jail. Use 0 to disable penalty.
    MySQLPassword = deleted #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 1 minutes in jail!
    FireProtection = true #Should we protect prisoners against starting fires?
    JailStickId = 280 #Item that can be used to jail people. Default: Stick (280)
    BlockDestroyPenalty = 1 #For how much time is prisoner's time increased if he tries to destroy jail. Use 0 to disable penalty.
    EnableJailStick = false #Should we enable jailing with an item?
    MessageFirePenalty = §cDo not try to burn the jail! You have just earned additional 1 minutes in jail!
    BlockPlacePenalty = 1 #For how much time is prisoner's time increased if he tries place block inside jail. Use 0 to disable penalty.
    SignText = <Player>[NEWLINE]<Time> minutes[NEWLINE]for[NEWLINE]<Reason> #Text that appears on the cell sign.
    MessageDestroyNoPenalty = §cDo not destroy The Jail!
    MessageMovePenalty = §cDo not try to escape out of Jail! You have just earned additional 1 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 minutes in jail!
    PreventCommands = false #Which commands should we prevent from using in jail?
    MySQLConn = jdbc:mysql://localhost:3306/deletedMySQL 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.
    JailStickTime = 10 #For how many items is player jailed when he is jailed using item.
    MessageFireNoPenalty = §cDo not try to burn the jail!
    MessageCommandNoPenalty = §cDo not try to escape with commands!
    BucketPenalty = 1 #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!
    MySQLUsername = deleted #MySQL Username (only if using MySQL)
    CommandPenalty = 1 #For how much time is prisoner's time increased if he tries to use forbidden command. Use 0 to disable penalty.
    MessageBucketPenalty = §cDo not try to flood the jail! You have just earned additional 1 minutes in jail!
    NearestJailCode = nearest #If you enter this as a jail name, it will automatically search for nearest jail.
    EnableEscape = false #When player moves out of the jail, he will be released instead of teleported back.
    BlockPlaceProtection = true #Should jail be protected against placing blocks in it it?
    UseMySQL = true #true = use MySQL database / false = use SQLLite
    MessagePlaceNoPenalty = §cDo not place blocks inside Jail!
    MessageUnJail = §2You have been released! Please respect server rules.
    JailStickRange = 3 #How many blocks away can player be from another player to jail him using item
    MessagePlacePenalty = §cDo not place blocks inside Jail! You have just earned additional 1 minutes in jail!
    MessageBucketNoPenalty = §cDo not try to flood the jail!
    StoreInventory = false #Should we take player's inventory when he get jailed and return it to him when he gets released?
    FirePenalty = 1 #For how much time is prisoner's time increased if he tries to start a fire? Use 0 to disable penalty.
     
  12. Offline

    Pythros

    Hmm... I just it doesn't show it when you just type /jail.
    Is there a way to make it configurable to have reason mandatory?
    Thanks!
     
  13. Offline

    matejdro

    oh, i have probably forgot to put it in that text. It still works.
     
  14. Offline

    lastmikoi

    Good plugin,

    However I get this error when a player try to arrest someone with a stick (jailwithstick set true) :

    Code:
    [SEVERE] Could not pass event PLAYER_INTERACT to Jail
    java.lang.NullPointerException
            at com.matejdro.bukkit.jail.JailPlayerPrevent.onPlayerInteract(JailPlayerPrevent.java:127)
            at org.bukkit.plugin.java.JavaPluginLoader$9.execute(JavaPluginLoader.java:254)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:257)
            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:521)
            at net.minecraft.server.Packet15Place.a(SourceFile:57)
            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)
    I'm using CB733, with Residence, Netstats, MobRider, DefaultCommands, xAuth, Permissions, BlocksOnGlass, Jail, DailyBonus, FireControl, TravelPortals, iConomy, WorldEdit, LogBlock, CraftBukkitUpToDate, Lockette, AdminMode, SheepFeed, MCDocs, Tombstone, RedRemote, OpenInv, Stackable, DelayedStop, Cookbook, Lampstone, SignTrader, BorderGuard, mcMMO, BankAccount, AbsorbPlugin, ScheduledAnnouncer, iChat, MakeEmSpawn, Turnstile.
     
  15. Offline

    andrewkm

    @matejdro
    did you see my post on the other page about the jail stick problem?
     
  16. Hmm, I got a few notes :}

    - A in-game help (/jailhelp or something) would be verry helpfull

    - MySQL tables have overkill sizes:
    -- Reduce player name, world name and jail name to 64 or so.
    -- "Offline" column is just 0 and 1, you don't need VARCHAR for that, use TINYINT(1)
    -- You're storing original jails as double and cells as varchars ? why is that ?
    -- Do you really need float accurancy for teleport ? You can just teleport player to the middle of the block :}

    - Inventory storage doesn't store data values... I got my items fully repaired and I guess if I had wool I would've got all white wool and only ink sacs if I had any dye.

    - Store inventory exacly as the player has it stored... altough I see you got some zeroes there it still gives it back all randomly placed.
    This would be a better storage format: "ID,,,,ID:VAL,,,,,,,,,,,,,,,,,,,ID:VAL,ID:VAL,ID,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,".

    - Player names aren't stored case sensitive but jailer is, why is that ? =)

    - Selecting jail zones always has been confusing for this plugin and now I've done it, I accidentally placed the inner teleport just one block away from the jail zone and if a player is jailed it'll spam with do not try to escape and lag everything... so you could check coordinates for in-jail teleport when creating and warn the player that he made them outside... or just make a block-included zone.
    Also, just to note, I selected that exact block as the 2nd point for jail creation that I placed the teleport on aswell, so it's obviously NOT included in the jail zone.


    This from just 5 mins of testing xD I'll test some more later :}
     
  17. Offline

    matejdro

    @lastmikoi wow will check it out

    @andrekwm yes i saw it, i will check it out.

    @Digi

    what would /jailhelp do? Display, how to use JailStick?

    I will check that overkill sizes at next release.

    It should store data. I jailed myself for many times and my tools got properly restored

    I was doing some work with locations, but then i ended up simply storing items and make reorganizing items as another punishment. I might add it though :)

    Because you need to enter player name when jailing/unjailing him and is easier to enter name without watching for letter case, but jailer is "read only" so it can be case sensitive. It just looks nicer if name have proper case.

    Only blocks inside area are treated like included.
     
  18. Offline

    sean.m.rice

    @matejdro any response as to the plugin locking up the server due to lack of connectivity to a MySQL server (connection went down) as per my previous post?
     
  19. Offline

    matejdro

    I guess most of the other plugins were just loading data from db at startup and saving data to db at shutdown. But problem with Jail is that every 10 seconds will update prisoner scores. That means that each 10 seconds will try to access the database, but it will take several seconds to time out. I think that is the reason for lockups.
     
  20. Offline

    sean.m.rice

    For example, with BigBrother, it says "could not reach MySQL Server for XXXXX seconds, storing data for later delivery" every 10-20 seconds, and once the MySQL server comes back up, it stops saying that, and I can watch the connections occur via MySQL Workbench. So they aren't just logging the data and sending on startup/shutdown.
     
  21. Offline

    garfield

    hello,

    like lastmikoi i am getting the following error
    our server (CB 740) uses some other plugins:
    • AfkBooter
    • AntiBuild
    • AntiXRay
    • AuthMe
    • ColoredSigns
    • Essentials(Spawn, GroupManager)
    • FalseBook
    • HeroChat
    • iConomy
    • iConomyChestShop
    • kFeatherTeleport
    • LastLogin
    • LogBlock
    • LWC
    • MultiVerse
    • NaturalGiants
    • NSCommand
    • PortalStick
    • properTime
    • StopFlood
    • ThunderTools
    • WorldEdit
    • WorldGuard
    is there any known incomaptibility with these plugins? or is it just the fact that Jail is compiled for CB766 and we are running CB740?

    any help would be nice, just now it seems i have tolook for another jail plugin.
    but none is as awesome as this one...

    greetings
     
  22. Offline

    matejdro

    Updated

     
  23. /jailhelp should display a list of commands with a brief description :} because I always forget them :))
    OR you could make separate commands with prefix /j, like /j create jailname and if you just /j you'll see all cmds but leaving /jail for jailing people.

    And no, get jaield while having damaged tools, you'll get them back repaired :}

    About item storage, well you could leave it like that actually :)) it's a jail not a bank xD you'd save more sql space :} just remove storing zeroes.

    About letter case, that's true, you should allow that same insensitive case check to the jail names too :p
    But can't you actually check if player exists in server before jailing him ? If there isn't any bukkit special method just read through world/players/ and get the real case sensitive name too to use it for display only :}

    Aaaand "Only blocks inside area are treated like included." you mean blocks that you select are ignored ? Well, they shouldn't because it makes jail marking so much harder :/
     
  24. although this is amazing, could you just make a config option to disable all commands starting with /
    thanks!
     
    andrewkm likes this.
  25. Offline

    andrewkm

    @matejdro
    YES please! +1
     
  26. Offline

    matejdro

    Just add / to the list. It should work.
     
  27. Offline

    Tealk

  28. Offline

    ImASnake02

    hi im running jail on craftbukkit 766 and its not woking
    i get this error message

    [SEVERE] java.lang.UnsatisfiedLinkError: /private/var/folders/yu/yu92dqfCEtGjwesvepPrUU+++TI/-Tmp-/sqlite-3.7.2-libsqlitejdbc.jnilib: no suitable image found. Did find: /private/var/folders/yu/yu92dqfCEtGjwesvepPrUU+++TI/-Tmp-/sqlite-3.7.2-libsqlitejdbc.jnilib: unknown required load command 0x80000022

    help
     
  29. Offline

    matejdro

    @Teal do you have 1.0.1?

    @IamASnake02 download lib folder form first post
     
  30. Offline

    lastmikoi

    I have the same problem.
    In order to check if I had really 1.0.1 I made a wget && diff, files are same.
    /version Jail outputs 1.0.0
    Maybe an error?
     
  31. Offline

    matejdro

    Not again :(

    1.0.1 reuploaded.
     

Share This Page