Admins can't drop items and don't drop items on death

Discussion in 'Archived: Plugin Requests' started by TechnoCraft, Oct 29, 2011.

  1. Offline


    How do i make it so admins can't drop items using q or whatever so others can't get items from them
    And how do i make admins not drop items on death
  2. Offline


    I like this idea
  3. Offline


    cancel the item drop event. want me to try making this?
  4. Offline


  5. Offline


    What you would do would be add the admins to a hashmap or in a config and then when a drop event happens check if it is an admin the if it is cancel the event
  6. Offline


    wouldn't know how to do that D:
  7. Offline


    Here's a fast made version of your request. Can't debug on this computer, suprised it could even compile it. You may have issues, but you might not. I'll relook when I return home.

    @greg_t Why would you need a hashmap or anything that complex? Just use permissions. Its already integrated into the normal system, and there is no longer a 'need' for a config. Also, I didn't see a cancel for onEntityDeath so I just cleared the drops.

    AdminDrop.AllowDeath = allow drops on death.
    AdminDrop.AllowDrop = Allow 'q' button dropping.

    Zip is the plugin.jar as well as the source.

    Attached Files:

    Pimpen104 likes this.
  8. Offline


    @Zaros is this first permission for normal players to drop items at death?
  9. Offline


  10. Offline


    Thanks for developing it then! @Zaros [diamond]
  11. Offline


    No problem. Make sure it work correctly so I can fix it if needed.
  12. Offline


    @Zaros its not working i think :eek:
  13. Offline


    Not very descriptive... I think. What appears to be the issue? Any errors/etc?

    If it didn't work, I apologize. I had to write it from memory and it's had no previous testing.
  14. Offline


    @Zaros no there's no error but when i kill a player he drops items also i've tried it with giving permission too.
  15. Offline


    On an other note, how will admins prevent inventory clogging? If you can't drop stuff, and you can't lose stuff when you die, you will end up with a filled inventory fairly quickly.
  16. Offline


    If it worked correctly they would lose everything on death, but nothing would appear.

    @lastern I'll work on it the next time I have an opportunity.
  17. Offline


  18. Offline


    this worked for me thanks man BIG HELP
  19. Offline


    Quite nice plugin request, would help being able to trust admins on your server! ^^
  20. Offline


    Im gonna try this plugin! i really like the idea! =D
  21. Offline


    very flawed. cant an admin still place shit in a chest which is then available to other members?
  22. Offline


    @tom Yes, this plugin isn't supposed to negate that. It just prevents players from "dropping" items.
    Maybe tom's idea could be a future addition, @Zaros ? Could have potential for a full-fledged, yet sort and concise, plugin.

    Also, the DL isn't working for me.
  23. Offline


    Possible, but I'm very busy at current. I'll have to dig up the download ASAP.
  24. Offline


  25. Offline


    Is 'Admin' the highest rank on your server? I take you're wanting this plugin because you don't want your Admins spawning items and giving it to Builders, Donators, etc.

    If so, you know they can just do /give <username> <item> (if they have access)
  26. Offline


  27. Offline


    I have logs for those commands which i daily go over so that wouldn't matter

Share This Page