Solved Events?

Discussion in 'Plugin Development' started by MrHatz2, Sep 2, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    MrHatz2

    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
     
  2. Offline

    hintss

    EntityDamageByEntity, set an upward velocity on the player that got hit, and a bukkitrunnable to make an explosion at their location a bit later
     
  3. Offline

    Gater12

    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
     
  4. Offline

    MrHatz2

    hintss Gater12
    k but do you have an example code? i never heard of velocity or bukkittask
     
  5. Offline

    hintss

    Read the docs youlself :)
     
  6. Offline

    SmooshCakez

  7. Offline

    hintss

  8. Offline

    MrHatz2

    SmooshCakez hintss
    k but can you provide an example code so i can see what i need to do?
     
  9. Offline

    Gater12

  10. Offline

    hintss

    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)
     
  11. Offline

    SmooshCakez

    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 likes this.
  12. Offline

    MrHatz2

    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
     
  13. Offline

    BillyGalbreath

    You can see what it looks like in the links provided above.
     
    SmooshCakez and hintss like this.
  14. Offline

    SmooshCakez

    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.
     
    hintss likes this.
  15. Offline

    MrHatz2

    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
     
  16. Offline

    SmooshCakez

    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.
     
    hintss and BillyGalbreath like this.
  17. Offline

    BillyGalbreath

    Confused? Read more.
     
    hintss likes this.
  18. Offline

    Gater12

    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.
     
    hintss likes this.
  19. Offline

    Skionz

  20. Offline

    MrHatz2

    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
     
  21. Offline

    BillyGalbreath

  22. Offline

    SmooshCakez

    What have you tried?

    If you had tried looking at the links, I bet your code would be completed now.
     
    BillyGalbreath likes this.
  23. Offline

    MrHatz2

    SmooshCakez
    you know what? this forum sucks ill just find a actually HELPFUL person who will help me
     
    hintss likes this.
  24. Offline

    BillyGalbreath

    Well, we tried. I guess learning isnt for everyone.
     
  25. Offline

    hintss

    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.
     
Thread Status:
Not open for further replies.

Share This Page