Add a sound when your king is being damaged
This commit is contained in:
parent
8dcea688ed
commit
53f28ac26b
@ -14,6 +14,7 @@ import org.bukkit.ChatColor;
|
|||||||
import org.bukkit.FireworkEffect.Type;
|
import org.bukkit.FireworkEffect.Type;
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
|
import org.bukkit.Sound;
|
||||||
import org.bukkit.block.Block;
|
import org.bukkit.block.Block;
|
||||||
import org.bukkit.block.BlockFace;
|
import org.bukkit.block.BlockFace;
|
||||||
import org.bukkit.block.Chest;
|
import org.bukkit.block.Chest;
|
||||||
@ -233,7 +234,7 @@ public class CastleAssault extends TeamGame
|
|||||||
private void generateLoot()
|
private void generateLoot()
|
||||||
{
|
{
|
||||||
{
|
{
|
||||||
_rangedGear.addLoot(new ItemStack(Material.EGG), 3);
|
_rangedGear.addLoot(new ItemStack(Material.EGG), 3, 5, 9);
|
||||||
_rangedGear.addLoot(Material.ARROW, 3, 8, 16);
|
_rangedGear.addLoot(Material.ARROW, 3, 8, 16);
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
@ -1194,6 +1195,7 @@ public class CastleAssault extends TeamGame
|
|||||||
{
|
{
|
||||||
if (Recharge.Instance.use(alert, "KingDamageAlert", 5000, false, false))
|
if (Recharge.Instance.use(alert, "KingDamageAlert", 5000, false, false))
|
||||||
{
|
{
|
||||||
|
alert.playSound(alert.getLocation(), Sound.ANVIL_LAND, 10, 3);
|
||||||
alert.sendMessage(king.getName(true) + " is under attack!");
|
alert.sendMessage(king.getName(true) + " is under attack!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user