Simple "Disarm" Plugin [Formatted]

Discussion in 'Archived: Plugin Requests' started by wsurfer852, Apr 23, 2012.

  1. Offline

    wsurfer852

    Ok, this is really simple, and relatively low-priority. I know MCMMO does this, but I'm looking for something different. Please got to http://forums.bukkit.org/threads/elaborate-hockey-plugin-formatted.72136/ for a much more complex version of this suggestion if you feel like making me smile :). Please Read.

    Plugin category: FUN/MISC

    Suggested name: PunchDrop, I guess anything you want.

    A bit about me: Server Owner, know next to nothing about coding, but enough to know how simple this is.

    What I want: I want a configurable item (if no config then Ender Pearl) that, if a player has, is dropped from their inventory when they're hit (take damage). If possible, add the command below and maybe add the functionality of left clicking to throw the drop farther (Q still makes it move very little). This is for a hockey game a friend made on my server. It would be great if you could make it check at least the hotbar, instead of just your hand.

    Ideas for commands: /punchdrop - Turns off the drop (and maybe throwing) feature

    Ideas for permissions: punchdrop.punchdrop - makes it so you can turn the features off for you

    When I'd like it by: No rush, but my friend and I would would appreciate it!

    Similar plugin requests: None that I'm aware of.

    Also, if anyone knows where that ice skating plugin went, post the link here plz.

    Devs who might be interested in this: Anyone with 15 minutes of time and more knowledge of Java than me.
     
  2. Offline

    Zerkhan

    A plugin called MagicSpells have a Disarm spell.
    Extremly customizable.

    Without this possibility, MagicSpells is a amazing plugin :3

     
  3. Offline

    wsurfer852

    Thanks bro, I'll look at it, but I'd still prefer a more direct solution.
     
  4. Offline

    Darq

    Well since I already started this, I'll finish it anyway. give me 10 more minutes :D
     
  5. Offline

    wsurfer852

    Awesome, wow. That was fast. You're a boss!
     
  6. Offline

    Darq

    http://dl.dropbox.com/u/68028044/PunchDrop.jar Sorry that took a while, fumbling with inventory.remove() being goofy, when I realized I should be using inventory.removeItem().

    Sauce http://pastie.org/3841416

    I didn't do the throw item further thing. Sorreh.

    Alias of /punchdrop : /pd
    Permission: punchdrop.punchdrop, as requested.

    Edit: Oops. If you haven't already, download it again, small fix to config.
    And, edited to fit within 50 lines, completing @codename_b's 50 line plugin challenge :D
    New sauce: http://pastie.org/3841558
     
  7. Offline

    wsurfer852

    Lol thanks so much. Congratz on the 50-line challenge.

    Plz pm when an update comes out for cb and u need to update

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 25, 2016
  8. Offline

    Darq

    I'm willing to bet MCAPI/Spout will be finished before Bukkit ever changes enough to require an update. You should be safe.
     
  9. Offline

    wsurfer852

    Right. Thanks.
     

Share This Page