Adds arrow sound when teleporting into a PVP island.

This commit is contained in:
tastybento 2021-09-04 14:46:41 -07:00
parent 74ded5a187
commit 7d7882c309

View File

@ -7,6 +7,7 @@ import java.util.UUID;
import java.util.WeakHashMap;
import org.bukkit.Bukkit;
import org.bukkit.Sound;
import org.bukkit.entity.Entity;
import org.bukkit.entity.Firework;
import org.bukkit.entity.LivingEntity;
@ -258,5 +259,6 @@ public class PVPListener extends FlagListener {
private void alertUser(Player player, Flag flag) {
String message = "protection.flags." + flag.getID() + ".enabled";
Objects.requireNonNull(User.getInstance(player)).sendMessage(message);
player.playSound(player.getLocation(), Sound.ENTITY_ARROW_HIT_PLAYER,2F, 1F);
}
}