Filled [Hopefully simple] SimpleTrash Blacklist

Discussion in 'Plugin Requests' started by PhillyCheezsteak, Nov 11, 2014.

Thread Status:
Not open for further replies.
  1. Hello, so the plugin SimpleTrash allows you to use the command /trash and it opens a chest interface that allows you to drag items you want to throw out to the chest/trash. The only problem is it does not have a blacklist. What I need is a blacklist that prevents you to drag certain items in the trash. I also need the blacklist to have a config and to support data values/item ids. Here is a link to the plugin

    http://dev.bukkit.org/bukkit-plugins/simpletrash/

    So all I need is a blacklist to prevent throwing out certain items.
     
  2. PhillyCheezsteak I can make this when I have spear time. If anyone else wants to take it feel free.
     
  3. Offline

    D3_M0N

    for what mcpc plus/couldron version?
     
  4. Offline

    Skionz

    For bukkit lol
     
    ChipDev and AdamQpzm like this.
  5. Offline

    D3_M0N

    ^^ plugin almost done :D
     
  6. I am bumping this thread because the person who was working on it is too busy. We talked in private messages. If anyone would be kind enough to make this, I would greatly appreciate it.
     
  7. HDminecraftnerd Hey I was wondering if you had any progress updates on the blacklist.
     
  8. HDminecraftnerd Hey I was wondering if you had any progress with the blacklist?
     
  9. Offline

    iAmSkizzle

    What items are you intrested in getting blacklisted?
     
  10. iAmSkizzle I would want a blacklist config that would allow me to add any item, supporting data values and item id's.
     
  11. Offline

    Jayke_

    I'll do this, just stop bumping it...
     
  12. @Jayke_ Hey you told me not to bump this, but can you please give me a progress report with this?
     
  13. If anyone can do this I would greatly appreciate it. Also please give me a general time frame on when you can complete it.
     
  14. Offline

    BrentHogeling

    @PhillyCheezsteak I can do this, I will also just make it so you can add the blacklisted items into a config file instead of hard-coding it! I will probably get this done tomorrow due to it being really simple!
     
  15. Offline

    BrentHogeling

  16. @BrentHogeling If possible, can you make it so if an item is blacklisted and if you open up the trash gui, you cannot move the item if it is blacklisted? The reason for this is because if a player's inventory is full and if they pick up and drag an item while they are on top of another item, then their inventory would pick up the item on the ground and then they would be forced to drop the other item. If you can do that, that would be awesome.
     
  17. Offline

    BrentHogeling

    Well you see, the inventoryclickevent works by checking the current inventory being clicked. If I were to do that it would mean you would have the blacklist apply all the time, I can make it so if the inventory is open they can't pick up items however?
     
  18. @BrentHogeling That would be great if they cannot pick up items while the trash interface is open. Nice idea, that would work perfectly, but I also need it so they cannot throw out items that are blacklisted.
     
  19. Offline

    au2001

    @HDminecraftnerd Did you ask the author of that plugin If you could edit it ? Must plugins are copyrighted and you don't have the permission to edit it...
    And @PhillyCheezsteak for your next reqests, use this format ;) even if this one was very clear, it's always better to use it.
    @BrentHogeling You can create a name for the inventory like &6&l&rTrash and then when the inventoryclick triggers, get the inventory and check the name if it's the previous one... Or you could just create a list where you store the inventories and then if the list contains the inventory of the event, cancel the item.
    There are plenty of ways to do that :p just gave you 2 to show you it is possible ;)
    The 1st one is easier, faster but not well coded at all :/ (a little bit hacky)
    The 2nd one is harder, longer, bug it's perfectly coded :D
     
  20. Offline

    BrentHogeling

    @au2001 I know exactly how to do it... considering I have 90% of it done, and if you are re-making a plugin you don't need to ask for permission, considering the fact that it is based off Bukkit. @PhillyCheezsteak By not allowed to throw out blacklisted items, do you mean when the trash is open, or just all together?
     
Thread Status:
Not open for further replies.

Share This Page