Solved Storing data in projectiles?

Discussion in 'Plugin Development' started by bowlerguy66, Oct 4, 2015.

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

    bowlerguy66

    So I am currently working on a guns plugin. When the gun fires, I want to put like a string or something in the snowball so when the ProjectileHitEvent gets called I can see what type of gun it was fired from. Thanks! :D
     
  2. Offline

    SuperSniper

    @bowlerguy66 You can try using a ArrayList or HashMap of somesort to make it to where whenever the Snowball is shot, you can set the ArrayList or HashMap to the gun it was fired from "ItemStack" and the player who shot it "Player" and check it like that
     
  3. Offline

    bowlerguy66

    Oh yeah. I could just do HashMap<Projectile, String>. Fail XD
     
  4. Offline

    Hawktasard

Thread Status:
Not open for further replies.

Share This Page