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

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

  1. Offline

    TechnoCraft

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I like this idea
  3. Offline

    boardinggamer

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    cancel the item drop event. want me to try making this?
  4. Offline

    TechnoCraft

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
  5. Offline

    greg_t

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    wouldn't know how to do that D:
  7. Offline

    Zaros

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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.

    This post has been edited 2 times. It was last edited by Zaros Nov 1, 2011.
    Pimpen104 likes this.
  8. Offline

    lastern

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    @Zaros is this first permission for normal players to drop items at death?
  9. Offline

    Zaros

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Yes.
  10. Offline

    lastern

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Thanks for developing it then! @Zaros [diamond]
  11. Offline

    Zaros

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    No problem. Make sure it work correctly so I can fix it if needed.
  12. Offline

    lastern

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    @Zaros its not working i think :eek:
  13. Offline

    Zaros

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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.

    This post has been edited 2 times. It was last edited by Zaros Nov 3, 2011.
  14. Offline

    lastern

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    @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

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
  18. Offline

    TechnoCraft

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    this worked for me thanks man BIG HELP
  19. Offline

    ArcheCane

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Quite nice plugin request, would help being able to trust admins on your server! ^^
  20. Offline

    Pimpen104

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Im gonna try this plugin! i really like the idea! =D
  21. Offline

    tom

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    very flawed. cant an admin still place shit in a chest which is then available to other members?
  22. Offline

    Retricide

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    @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

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Possible, but I'm very busy at current. I'll have to dig up the download ASAP.
  24. Offline

    Zaros

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
  25. Offline

    Tolerance

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    @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

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
  27. Offline

    TechnoCraft

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    I have logs for those commands which i daily go over so that wouldn't matter

Share This Page