Filled [Request] Real Pickup: Only pickup items when sneaking

Discussion in 'Archived: Plugin Requests' started by Harrison015, Jun 29, 2014.

  1. Offline

    Harrison015

    Plugin category: Mechanics

    Suggested name: Real Pickup

    What I want: I am looking for a plugin that only allows you to pickup items around you when you sneak. This would be to simulate actually having to pick things up, hence the name "Real Pickup".

    I have looked around for a similar plugin, but only found this: SneakPickup Which is outdated and no longer works! (Trust me I tested it)

    Also, if it is not too difficult, I would like it to be activated only on the worlds you choose. (Config?)

    Ideas for commands:
    /pickup - Toggles the ability to only pick items up when sneaking. Enabled by default.


    Ideas for permissions:
    realpickup.toggle - Allows access to the /pickup command.
    realpickup.use - Allows access to pickup items when sneaking.

    When I'd like it by: Whenever possible!
     
  2. Offline

    VenamousV

    I could definitely give this a shot for you!
     
    Harrison015 likes this.
  3. Offline

    Tss1410

    I can try to make one right now. Give me a few minutes ;) And a few minutes on testing it

    EDIT: Venamous was first ;) You can take it.
     
    VenamousV likes this.
  4. Offline

    Harrison015

    Thanks!
     
  5. Offline

    ZodiacTheories

    Harrison015

    There you go :)

    <Edit by Moderator: Redacted mediafire url>

    VenamousV

    Sorry :p I can delete this if you want
     
    Last edited by a moderator: Nov 2, 2016
  6. Offline

    VenamousV

  7. Offline

    ZodiacTheories

  8. Offline

    VenamousV

    Would you mind sending me your source code though? My code isn't looking very efficient, just want to see how you did it. ZodiacTheories
     
  9. Offline

    Harrison015

    [quote uid=90910790 name="ZodiacTheories" post=2613607]Harrison015

    There you go :)

    <Edit by Moderator: Redacted mediafire url>

    VenamousV

    Sorry :p I can delete this if you want[/quote]

    Works perfect! Just need the commands :)
     
    Last edited by a moderator: Nov 2, 2016
  10. Offline

    ZodiacTheories

  11. Offline

    VenamousV

  12. Offline

    ZodiacTheories

    Harrison015

    Doesn't seem to be working, I'll keep trying though
     
  13. Offline

    Harrison015

    The commands or the plugin?
     
  14. Offline

    ZodiacTheories

    Harrison015

    Finished!

    Commands:

    /pickupon - Turns sneak pickup mode on

    /pickupoff - Turns sneak pickup mode off

    permissions:

    What you asked for

    LINK:

    <Edit by Moderator: Redacted mediafire url>
     
    Last edited by a moderator: Nov 2, 2016
  15. Harrison015
    I'm doing this for the heck of it and I just have a question, is the "/pickup" command per player or is it for everyone? Do the individual players toggle their ability?

    Btw, I'll post the source as well for anyone who might want to have a look :)
     
  16. Offline

    ZodiacTheories

  17. Offline

    Harrison015

    It's for everyone.. To toggle on and off if needed.
     
  18. Offline

    ZodiacTheories

  19. Offline

    Harrison015

  20. Offline

    Harrison015

    Works great also, thanks!
    If you want to do another plugin, I have requested this: Gold Bucket

    @TheGamingGrunts
    The plugin seems to no longer work when reloading. I have to restart the server to get it to work again..

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 9, 2016
  21. Offline

    timtower Administrator Administrator Moderator

    Harrison015 Reloads aren't advisable anyways. Memory leaks could get a serious issue
     
  22. Offline

    TedTheTechie

    This plugin seems very simple... How could you even be experiencing issues :/
    PlayerPickupItemEvent > if player is not sneaking > cancel the event
     

Share This Page