Ok so i want when a player with a kit that has a specific item hits a player the player that got hit will be thrown into the air and explode in mid-air How would i go about that which event should i use? i was think PlayerInteractEvent
EntityDamageByEntity, set an upward velocity on the player that got hit, and a bukkitrunnable to make an explosion at their location a bit later
MrHatz2 I would use EntityDamageByEntityEvent Check if the damager and the entity being hit are players then perform your checks. You should also look into velocities and BukkitTasks
MrHatz2 You could look at the docs and the wiki for examples. You can also look here: http://docs.oracle.com/javase/tutorial/
No, it's up to you to read the docs and understand them for yourself. We're just here to give pointers when people get stuck. (Well, at least, that's my philosophy when it comes to support forums)
Could you try looking at the links we sent you? The links were meant to help you understand this. You will not learn anything in programming if you just copy/paste.
hintss Gater12 I just want a script to see what it looks then i can understand thats how i learn SmooshCakez You assume i copy and paste but i dont i just want to see what it looks like and try to see ho wit works then i go off and write the code myself
We're here to help you understand this, and help you write it yourself, hence the name Plugin Development. If you want code written, migrate over to Plugin Requests. If you want to learn it yourself by looking at code, YouTube is your friend.
SmooshCakez Yes but the way that will help me understand is an example im confused at thos eother examples from other posts and the link
If you're confused about the links, you should head over to the Java tutorials so you'll get a better understanding of how things work.
MrHatz2 Well then you shouldn't be programming at all. I understand people got to start somewhere and no one programmer started out understanding everything, but if you don't actually TRY to put EFFORT into learning HOW to program, then I believe you should not be programming. I believe you're better off requesting a plugin.
SmooshCakez BillyGalbreath Gater12 if youre not going to help me then i belive you shouldnt be posting here i just want an example code is that too much to ask for? and i know people wont do my pluign ideas lets face it there either too big and brushed off or people demand pay which i dont have the money so the logical answer would be to do it myself
This works, too: http://jd.bukkit.org/rb/doxygen/df/d08/namespaceorg_1_1bukkit_1_1event.html (just expand the "event" item in the tree on the left side to see them all)
Oh, I'm sorry, I didn't realize we were obligated to help you. People here are giving you all the references you should need to be able to do this yourself, if you're ignoring them and just asking for the code, you're not putting in the effort to build this yourself, and will just lead to more problems down the road. It's much better to link you to the resources to let you understand it yourself than it is to just spoonfeed you the code. Show us what you tried/what you think it would be, then we'll help you.