PlasmaVNGaming

Untitled

Feb 12th, 2017
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. p.playSound(p.getLocation(), Sound.LEVEL_UP, 1, 1); <- cái này sẽ luôn phát ra sound
  2. Location loc = p.getTargetBlock((Set<Material>) null, 100).getLocation();
  3. if(loc.getWorld().getBlockAt(loc).getType() == Material.AIR) { <- nếu như cái này = if nó sẽ phát tiếp 1 sound (đã phát sound LEVEL_UP ở trên) -> 2 sound
  4. Main.sendActionBar(p, ChatColor.GRAY+""+ChatColor.BOLD+"Dùng skill thất bại. Bạn cần hướng về phía player để thực hiện skill."); p.getLocation().getWorld().playSound(p.getLocation(), Sound.ANVIL_LAND, 1, 1);
  5. return;
  6. }
Advertisement
Add Comment
Please, Sign In to add comment