Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class EntityShootBow implements Listener{
- @EventHandler
- public void onEntityShootBow(EntityShootBowEvent e){
- if(e.getEntity() instanceof Player){
- Player p = (Player) e.getEntity();
- if(BowWarfare.getInstance().getArena(p) == -1){
- return;
- }
- if(e.getProjectile() instanceof Arrow){
- Arrow arrow = (Arrow) e.getProjectile();
- arrow.setVelocity(arrow.getVelocity().multiply(new Vector(10, 10, 10)));
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment