Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- p.playSound(p.getLocation(), Sound.LEVEL_UP, 1, 1); <- cái này sẽ luôn phát ra sound
- Location loc = p.getTargetBlock((Set<Material>) null, 100).getLocation();
- 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
- 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);
- return;
- }
Advertisement
Add Comment
Please, Sign In to add comment