[GEN] BukkitInventoryTools - Find it on BukkitDev.

Discussion in 'Inactive/Unsupported Plugins' started by Gabriel333, Sep 11, 2011.

  1. Offline

    Gabriel333

    olimoli123 likes this.
  2. Offline

    Gabriel333

    Hi Nibleton
    I have diged in to this and it is NOT an error. This is how the build in permissions work in Bukkit :)

    1) IF you dont have a permissionsystem then the users will have digilock.use permissions and OP wil have digilock.admin by default.
    2) SO if you have a permission system PEX,Permissions3.1.6 or PermissionsBukkit then you will have to tell the plugin that some users must NOT use digilock.use. You do this in your permission config.yml fil

    this way:

    bukkitinventorytools.digilock.use: false

    :)

    you cant not just delete the line!!! because then the default permission system in bukkit says true :) because of 1) :D
     
  3. Offline

    m5k

    Yea, I'd like them to only be able to lock 1 door and 1 chest.
    I also have an interesting suggestion. I'd also like to have a 3 digit code and only on perms group can unlock any chest (guessing the code), while everyone else can only unlock their own chests/doors. Thieves, ya know :D
     
  4. Offline

    Nibelton

    Code:
    07:36 PM [SEVERE] Could not pass event PLAYER_JOIN to mcMMO
    07:36 PM [SEVERE] java.util.regex.PatternSyntaxException: Illegal repetition
    {bukkitinventorytools\.digilock\.use=false}
    07:36 PM [SEVERE]     at java.util.regex.Pattern.error(Unknown Source)
    07:36 PM [SEVERE]     at java.util.regex.Pattern.closure(Unknown Source)
    07:36 PM [SEVERE]     at java.util.regex.Pattern.sequence(Unknown Source)
    07:36 PM [SEVERE]     at java.util.regex.Pattern.expr(Unknown Source)
    07:36 PM [SEVERE]     at java.util.regex.Pattern.compile(Unknown Source)
    07:36 PM [SEVERE]     at java.util.regex.Pattern.<init>(Unknown Source)
    07:36 PM [SEVERE]     at java.util.regex.Pattern.compile(Unknown Source)
    07:36 PM [SEVERE]     at ru.tehkode.permissions.PermissionEntity.isMatches(PermissionEntity.java:512)
    07:36 PM [SEVERE]     at ru.tehkode.permissions.PermissionEntity.getMatchingExpression(PermissionEntity.java:480)
    07:36 PM [SEVERE]     at ru.tehkode.permissions.PermissionEntity.getMatchingExpression(PermissionEntity.java:475)
    07:36 PM [SEVERE]     at ru.tehkode.permissions.PermissionUser.getMatchingExpression(PermissionUser.java:606)
    07:36 PM [SEVERE]     at ru.tehkode.permissions.PermissionEntity.has(PermissionEntity.java:122)
    07:36 PM [SEVERE]     at ru.tehkode.permissions.PermissionManager.has(PermissionManager.java:90)
    07:36 PM [SEVERE]     at me.neatmonster.spoutbackpack.SpoutBackpack.allowedSize(SpoutBackpack.java:364)
    07:36 PM [SEVERE]     at me.neatmonster.spoutbackpack.SpoutBackpack.loadInventory(SpoutBackpack.java:304)
    07:36 PM [SEVERE]     at me.neatmonster.spoutbackpack.SBPlayerListener.onPlayerJoin(SBPlayerListener.java:21)
    07:36 PM [SEVERE]     at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:244)
    07:36 PM [SEVERE]     at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    07:36 PM [SEVERE]     at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:338)
    07:36 PM [SEVERE]     at net.minecraft.server.ServerConfigurationManager.c(ServerConfigurationManager.java:124)
    07:36 PM [SEVERE]     at net.minecraft.server.NetLoginHandler.b(NetLoginHandler.java:97)
    07:36 PM [SEVERE]     at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:74)
    07:36 PM [SEVERE]     at net.minecraft.server.Packet1Login.a(SourceFile:43)
    07:36 PM [SEVERE]     at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    07:36 PM [SEVERE]     at net.minecraft.server.NetLoginHandler.a(NetLoginHandler.java:40)
    07:36 PM [SEVERE]     at net.minecraft.server.NetworkListenThread.a(SourceFile:91)
    07:36 PM [SEVERE]     at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:454)
    07:36 PM [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:363)
    07:36 PM [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    07:36 PM [SEVERE] [BBROTHER] onPlayerJoin(org.bukkit.event.player.PlayerJoinEvent@17405f1)
    07:36 PM [SEVERE] Could not pass event PLAYER_JOIN to PailPlus
    07:36 PM [SEVERE] Could not pass event PLAYER_JOIN to SpoutEssentials 
    :D
     
  5. Offline

    Gabriel333

    Are you sure you didnt make an error in the permission config.yml as well??? Im not sure it is because of my plugin! :)
     
  6. Offline

    Nibelton

    my PEX
    Code:
    groups:
        default:
            default: true
            permissions:
            - iConomy.rank
            - iConomy.list
            - iConomy.payment
            - citizens.trader.use.trade
            - citizens.trader.use.list
            - iConomy.bank.access
            - iConomy.bank.main
            - iConomy.bank.main.view
            - myhome.home.basic.delete
            - myhome.home.basic.set
            - iConomy.bank.withdraw
            - iConomy.bank.transfer
            - iConomy.access
            - myhome.home.basic.home
            - lwc.protect
            - modifyworld.*
            - modifyworld.chat
            - tombstone.cmd.tomblist
            - tombstone.cmd.tombfind
            - tombstone.freesign
            - tombstone.quickloot
            - tombstone.sign
            - tombstone.freechest
            - tombstone.large
            - tombstone.lwc
            - tombstone.use
            - chaircraft.sit
            - mcmmo.skills.*
            - mcmmo.ability.*
            - nomovedtooquicklykick.exempt
            - backpack.nodrop
            - backpack.upgrade54
            - backpack.size9
            - backpack.upgrade18
            - backpack.upgrade27
            - backpack.upgrade36
            - backpack.upgrade45
            - backpack.worldname.groupname
            - spoutessentials.cape
            - bukkitinventorytools.sortinventory.use
            - bukkitinventorytools.sortinventory.stack.tools
            - bukkitinventorytools.sortinventory.stack.armor
            - bukkitinventorytools.sortinventory.stack.weapons
            - bukkitinventorytools.sortinventory.stack.food
            - bukkitinventorytools.sortinventory.stack.vehicles
            - bukkitinventorytools.sortinventory.stack.buckets
            - bukkitinventorytools.digilock.use: false
    
    so adding " - bukkitinventorytools.digilock.use: false" cause this error
     
  7. Offline

    Gabriel333

    Ahh it IS you :D I showed you the PermissionsBukkit way, and though you would change it to PEX youself!

    This is the way you do it with PermissionsBukkit:
    bukkitinventorytools.digilock.use: false

    With Permissions 3.1.6 you could do it with this (notice there is two - )
    - '- bukkitinventorytools.digilock.use'

    Im not sure how you do it in PEX but try something like Permissions3.1.6


    I use PermissionsBukkit myself.
     
  8. Offline

    Nibelton

  9. Offline

    Gabriel333

    It looks like you have done it right! How does the config.yml look after you have used /pex group default add "-bukkitinventorytools.digilock.use" ?
     
  10. Offline

    Nibelton

    Code:
    groups:
        default:
            default: true
            permissions:
            - iConomy.rank
            - iConomy.list
            - iConomy.payment
            - citizens.trader.use.trade
            - citizens.trader.use.list
            - iConomy.bank.access
            - iConomy.bank.main
            - iConomy.bank.main.view
            - myhome.home.basic.delete
            - myhome.home.basic.set
            - iConomy.bank.withdraw
            - iConomy.bank.transfer
            - iConomy.access
            - myhome.home.basic.home
            - lwc.protect
            - modifyworld.*
            - modifyworld.chat
            - tombstone.cmd.tomblist
            - tombstone.cmd.tombfind
            - tombstone.freesign
            - tombstone.quickloot
            - tombstone.sign
            - tombstone.freechest
            - tombstone.large
            - tombstone.lwc
            - tombstone.use
            - chaircraft.sit
            - mcmmo.skills.*
            - mcmmo.ability.*
            - nomovedtooquicklykick.exempt
            - backpack.nodrop
            - backpack.upgrade54
            - backpack.size9
            - backpack.upgrade18
            - backpack.upgrade27
            - backpack.upgrade36
            - backpack.upgrade45
            - backpack.worldname.groupname
            - spoutessentials.cape
            - -bukkitinventorytools.digilock.use
            - bukkitinventorytools.sortinventory.use
            - bukkitinventorytools.sortinventory.stack.tools
            - bukkitinventorytools.sortinventory.stack.armor
            - bukkitinventorytools.sortinventory.stack.weapons
            - bukkitinventorytools.sortinventory.stack.food
            - bukkitinventorytools.sortinventory.stack.vehicles
            - bukkitinventorytools.sortinventory.stack.buckets
     
  11. Offline

    Gabriel333

    Hmm... that looks right ???
     
  12. Offline

    Nibelton

    well...its how it add it,i didnt change anything (except,that i move it)
    i tested it even without moving it...same
     
  13. Offline

    Gabriel333

    I really dont understand this... Now I have tested permissions with PEX too... and if I use
    - -bukkitinventorytools.digilock.use
    then I cant open doors/chests which are locked with the DigiLock??? This is as it is meant to be...
     
  14. Offline

    Zone

    2. To answer your question how would it be useful: I'm a builder in on the survival server. I deal with blocks, food or weapons. I'm either manipulating a ton of blocks and/or food. The thing is, at any given point, I would like to withdraw or deposits blocks or food without disturbing my character or chests/inventory. Now I realize it might be easier to create a deposit all Hotkey that Ignores inventory 0-8, but that's not what I'm asking for. I'm hoping for our smarter feature that can distinguish between blocks and food, you might as well add weapons in there. If I'm asking for too much just make a deposits all hockey. I really don't know how much im asking for since I don't program java or know how the minecraft Inventory system works.

    1. EXACTLY when you press the hot-key? Say if I have 30 sets of 64 block stacks in a chest. but I also have but seven stacks of food and 2 sets set of armor. But I just want to withdraw the blocks from the chest. I hit the hotkey your plug-in looks through the chest sees that theres 30 sets of 64 block stack and puts them into the player's inventory. In addition, think of it in reverse for the player's inventory to the chest.

    Anybody would like to expand on this idea or if it thinks it might be useful post about it.
     
  15. Offline

    Gabriel333

    I have now added some debugcode in version 2.1.7 (just released) if you install this and edit
    my config.yml to this:

    Debug:
    Permissions: true
    Inventory: false
    OnEnable: false
    Keyboard: false
    SQL: false
    GUI: false

    restart your server and then you will get some comments when you use the DigiLock and Hotkey L. But you cant do it with users on your server, because they will get the "spam" too :) When you finish testing change it back to

    Debug:
    Permissions: false
    Inventory: false
    OnEnable: false
    Keyboard: false
    SQL: false
    GUI: false

    and restart the server.

    I hope this will help you! (and me) :)
     
  16. Offline

    Lakanate

    This is compatible with LWC right?
     
  17. Offline

    Zone

    I'm hoping it will take the place of LW.
     
  18. Offline

    Nibelton

    well...debugging show only this,not sure how this could help
    it will ignore lwc (ie lwc will not prohibit users to access locked chest)
     

    Attached Files:

    • 1.png
      1.png
      File size:
      30.6 KB
      Views:
      0
  19. Offline

    Gabriel333

    I dont know, you tell me I do not intend to test LWC, my plan is to make a plugin which is better than LWC, so you dont need LWC. (I know Im still missing some features before this is a reallity) :)

    Exactly - Im working hard to beat the other plugins (LWC, ChestLock and more), I know it will take some time before I can do this, but Im working on it :)

    About the permission digilock.use: Do you use a permission bridge?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 19, 2016
  20. Offline

    amelon

    Hi,

    with sqlite the plugin runs without problems.
    Now we changed it to MySQL and run in some errors

    Code:
    2011-09-19 11:01:52 [INFO] [BukkitInventoryTools] PermissionsBukkit/Permissions3/PermissionsEx system not detected, defaulting to permissions in plugin.yml
    2011-09-19 11:01:52 [INFO] [BukkitInventoryTools] Spout is detected.
    2011-09-19 11:01:52 [INFO] [BukkitInventoryTools] Storagetype:MYSQL
    2011-09-19 11:01:52 [INFO] [BukkitInventoryTools] MySQL Initializing
    2011-09-19 11:01:54 [SEVERE] [BukkitInventoryTools]SQLException! Communications link failure
    
    The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
    2011-09-19 11:01:54 [INFO] [BukkitInventoryTools] MySQL connection successful
    2011-09-19 11:01:55 [SEVERE] [BukkitInventoryTools]SQLException! Communications link failure
    
    The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
    2011-09-19 11:01:55 [SEVERE] Error occurred while enabling BukkitInventoryTools v2.2.0 (Is it up to date?): null
    java.lang.NullPointerException
        at com.alta189.sqlLibrary.MySQL.DatabaseHandler.checkTable(DatabaseHandler.java:134)
        at com.alta189.sqlLibrary.MySQL.mysqlCore.checkTable(mysqlCore.java:72)
        at dk.gabriel333.BukkitInventoryTools.BIT.setupSQL(BIT.java:197)
        at dk.gabriel333.BukkitInventoryTools.BIT.onEnable(BIT.java:56)
        at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
        at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:885)
        at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:278)
        at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:178)
        at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:161)
        at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:286)
        at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:273)
        at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:149)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:337)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
     
  21. Offline

    Nibelton

    not sure what is "bridge" :rolleyes:
     
  22. Offline

    Gabriel333

    I think I have to do some MySQL testing in the weekend. There are serval users who have problems like you have. I use SQLLite myself and it works perfectly.
     
  23. Offline

    Lakanate

    like, incorporate your features into even protecting what LWC protects too, like doors and stuff, besides just chests too?

    then that's what I'm hoping as well, especially the fingerprint system.
     
  24. Offline

    Gabriel333

    Yes check my to do list: here
     
  25. Offline

    Lakanate

    Ooh I see on top of that, you are also adding optional locks to bookshelfs :D So is this plugin compatible with the plugin Bookit and Bookworm?
     
  26. Offline

    Gabriel333

    I dont know these two plugins, but I will investigate when I have made some of the other features. Either the other developer need to make an API for me, or I need to make some book features myself. I put your suggestion on my "user wish list" and then we will see.
     
  27. Offline

    Lakanate

    Bookworm is a plugin to allow commands to be used in books for Bookit, so there must be some kind of API available.
     
  28. Offline

    Nibelton

    i noticed one small problem.
    when locking the door with fingerprint it will instantly close itself after opening and if password is set,then it will open when password menu will show up,then clicking on cancel wont close the door,moreover it CAN'T be closed again...it will instantly open itself (why it opens in the first place ?enyone can click on it,it will open and second dude can freely go through it)
     
  29. Offline

    Gabriel333

    YES I have seen that my self. I think i have found a bug in Bukkit. The method door.isOpen dont give the right result.. if it is placed NORTH/SOUTH only if is EAST/WEST, so I have to find a work around :-(

    I will properly solve the problem by implement and autoclose feature, this way i always know the status of the door when a player interacts with the door. Im sorry i dont have to fix it tonight :-(

    Edit: another workaround would be that the user need to enter the pincode to close and to open the door (both) but i better like the auto-close feature then?

    Edit 2: or I have to save the state of the door when the digilock is created. this means that you have to recreate ALL locks because i need to alter the database...

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 19, 2016
  30. Offline

    Avarice

    Aha, that explains it. Thank you. =)
    We prefer if our users cannot stack food, tools, weapons, armor. Everything else is gravy. We're using SortInventory currently for this function, the only issue is that with stacking disabled, things will sort, but if someone has two half stacks of a block they don't form a whole, the main reason that we switched over to BukkitInventoryTools, in addition to the wider range of stackable items and ability to disable certain categories.

    Great job on both, by the way! ♥
    p.s. SortInventory works beautifully with 1.8.

     
  31. Offline

    seriestoo2

    Any chance of a lockpicking option?
     

Share This Page