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

    TechnoCraft

    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

    Julianoz1224

    I like this idea
     
  3. cancel the item drop event. want me to try making this?
     
  4. Offline

    TechnoCraft

  5. Offline

    greg_t

    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

    TechnoCraft

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

    Zaros

    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.

    Permissions.
    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

    lastern

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

    Zaros

    Yes.
     
  10. Offline

    lastern

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

    Zaros

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

    lastern

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

    Zaros

    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

    lastern

    @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

    Boreeas

    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

    Zaros

    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

    lastern

  18. Offline

    TechnoCraft

    this worked for me thanks man BIG HELP
     
  19. Offline

    ArcheCane

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

    Pimpen104

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

    tom

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

    Retricide

    @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

    Zaros

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

    Zaros

  25. Offline

    Tolerance

    @TechnoCraft
    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

    Retricide

  27. Offline

    TechnoCraft

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

Share This Page