Guest User

Untitled

a guest
Mar 19th, 2013
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. public class EntityShootBow implements Listener{
  2. @EventHandler
  3. public void onEntityShootBow(EntityShootBowEvent e){
  4. if(e.getEntity() instanceof Player){
  5. Player p = (Player) e.getEntity();
  6.  
  7. if(BowWarfare.getInstance().getArena(p) == -1){
  8. return;
  9. }
  10.  
  11. if(e.getProjectile() instanceof Arrow){
  12. Arrow arrow = (Arrow) e.getProjectile();
  13. arrow.setVelocity(arrow.getVelocity().multiply(new Vector(10, 10, 10)));
  14. }
  15. }
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment