Guest User

Untitled

a guest
Aug 6th, 2014
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.34 KB | None | 0 0
  1.         @EventHandler
  2.           public void Leftclick(PlayerInteractEvent e) {
  3.           Player p = e.getPlayer();
  4.          
  5.          //Make a itemstack Stick
  6.            
  7.           if(e.getAction() == Action.LEFT_CLICK_AIR || e.getAction() == Action.LEFT_CLICK_BLOCK) {
  8.           if(e.getItem().equals(Stick)) {
  9.           p.launchProjectile(Snowball.class);
  10.           }
  11.           }
  12.           }
Advertisement
Add Comment
Please, Sign In to add comment