more CP changes

This commit is contained in:
Chiss 2014-04-21 12:55:24 +10:00
parent b1e082b73a
commit adf8821a26
2 changed files with 3 additions and 12 deletions

View File

@ -17,6 +17,7 @@ import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.GameMode;
import org.bukkit.Material;
import org.bukkit.Sound;
import org.bukkit.craftbukkit.v1_7_R2.entity.CraftEntity;
import org.bukkit.craftbukkit.v1_7_R2.entity.CraftPlayer;
import org.bukkit.entity.Player;
@ -26,6 +27,7 @@ import org.bukkit.event.block.BlockFadeEvent;
import org.bukkit.event.block.BlockSpreadEvent;
import org.bukkit.event.block.LeavesDecayEvent;
import org.bukkit.event.entity.CreatureSpawnEvent;
import org.bukkit.event.player.PlayerCommandPreprocessEvent;
import org.bukkit.event.player.PlayerJoinEvent;
import org.bukkit.event.player.PlayerLoginEvent;
import org.bukkit.event.player.PlayerQuitEvent;

View File

@ -321,18 +321,7 @@ public class CapturePoint
for (Player player : _owner.GetPlayers(false))
{
UtilPlayer.message(player, C.Bold + _name + " is being captured...");
player.playSound(player.getLocation(), Sound.NOTE_BASS, 2f, 1f);
player.playSound(player.getLocation(), Sound.NOTE_BASS, 2f, 1f);
final Player fPlayer = player;
Host.Manager.GetPlugin().getServer().getScheduler().scheduleSyncDelayedTask(Host.Manager.GetPlugin(), new Runnable()
{
public void run()
{
fPlayer.playSound(fPlayer.getLocation(), Sound.NOTE_BASS, 2f, 0.5f);
fPlayer.playSound(fPlayer.getLocation(), Sound.NOTE_BASS, 2f, 0.5f);
}
}, 5);
player.playSound(player.getLocation(), Sound.GHAST_SCREAM2, 0.6f, 0.6f);
}
}