Plugin category: Fun Suggested name: Tomahawk! What I want: My idea is basically to have it so when a player double clicks with an axe/right clicks with it (whatever would work better) it would delete the axe from the players inventory and launch a arrow/snowball or whatever. I was thinking that the more valuable the axe the more damage the projectile does like for example, a diamond axe would do 20 damage while a wood axe would only do 5. I'm pretty sure this is very easy to make but its been almost a year since ive even touched java so i am just gonna ask if someone else would like to make it . All I ask is that i get credit for the idea! Ideas for commands: None unless you want to enable the plugin for a single punch with an axe /th Ideas for permissions: tomahawk.wood, tomahawk.stone, tomahawk.iron etc for each type of tomahawk When I'd like it by: Whenever you can get it to me. I dont need this plugin as much as i want it I just think its a pretty cool idea Thank you!
GoTheRedSox You are not able to see when a player double clicks with an item... So how about right clicking air because right clicking with an axe does nothing.
Yes you are, just get the player interact event, add them to a hashmap, and check if they interact again.
What i was saying is that there is no bukkit method to check a double click but if you do it your way youll have to check the timestamps to see if a player clicks within the desired amount of time.
Making this highly configurable so it can be set so potion effects can be applied when an axe hits. Can also be set so it can break blocks. Another feature being it can teleport a player to where it lands. Like a re-usable ender pearl. All being disabled by default. But can be turned on at any time.