Filled [Hopefully simple] SimpleTrash Blacklist

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

Thread Status:
Not open for further replies.
  1. 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
     
  2. 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?
     
  3. @BrentHogeling Well you can throw out items, just not the ones blacklisted. So what I would want exactly is if a player does the command /trash, the trash interface would open up. While the trash interface is open, you cannot pick up items. Now if an item is blacklisted, you cannot throw out that item, so that would either mean that you cannot drag it to the trash interface, or if you try to throw it out, it will be returned to you. I am not sure what is easier, if you can make it so you cannot drag or even click a blacklisted item while the trash interface is open, that would be amazing.
     
  4. Offline

    BrentHogeling

  5. @BrentHogeling oh wow nice! so were you able to make it so you cannot click and drag a blacklisted item?
     
  6. Offline

    BrentHogeling

    @PhillyCheezsteak Yup! I just listened to when they clicked and if the banned items was one of those, I cancel it
     
  7. @BrentHogeling Hey I wanted to thank you so much for working on this , and when you are finished, please post the download link, I would greatly appreciate it :)
     
  8. Offline

    BrentHogeling

    @PhillyCheezsteak Oops, forgot about this :p IIRC I am done, one sec.

    https://www.dropbox.com/s/h5m8hc0sj57tm6z/TrashCan.jar?dl=0 - In the itemconfig file, please follow the same formats, I added bedrock as a default, the string list uses the essentials database, and the idlist default id's, and no, they don't need the apostrophes, anything wrong at all just message me! :)

    EDIT by Timtower: merged posts
     
    Last edited by a moderator: Dec 22, 2014
  9. @BrentHogeling Hey so I tried your plugin by itself without any other trash plugins and it did not load the blacklist. I was wondering I would need to download SimpleTrash with your plugin. Without SimpleTrash, the /trash command still works. I was also wondering what the permission nodes are if you do not need SimpleTrash with your plugin? If you do not have permission nodes and if you do not need SimpleTrash, can you please add these commands:

    TrashCan.command (permission to use the command /trash)
    TrashCan.Admin (bypass the blacklist and able to use /trash command)

    Thank you again for making this :)
     
  10. Offline

    BrentHogeling

  11. @BrentHogeling np, no rush. the only config that opens up is the itemslot config, which I am guessing is the number of slots in the trash. I am not sure if there is suppose to be anything else in that config, but that is the only thing that shows up.
     
  12. Offline

    BrentHogeling

  13. @BrentHogeling Nope, just one. It is the regular config. The only thing in the config is InventorySize: 45
     
  14. Offline

    BrentHogeling

    Last edited by a moderator: Dec 22, 2014
  15. @BrentHogeling Hey the plugin works perfectly thank you so much! What are the permission nodes for this plugin?
     
  16. Offline

    BrentHogeling

Thread Status:
Not open for further replies.

Share This Page