+ Added sound on "ding" countdown.

This commit is contained in:
Steffion 2013-08-26 15:30:28 +02:00
parent 87c3730a30
commit ffb1e986f3

View File

@ -170,22 +170,37 @@ public class BlockHunt extends JavaPlugin implements Listener {
ConfigC.normal_lobbyArenaIsStarting,
true, "1-10");
} else if (arena.timer == 5) {
arena.lobbyWarp.getWorld()
.playSound(arena.lobbyWarp,
Sound.ORB_PICKUP, 1, 0);
ArenaHandler.sendFMessage(arena,
ConfigC.normal_lobbyArenaIsStarting,
true, "1-5");
} else if (arena.timer == 4) {
arena.lobbyWarp.getWorld()
.playSound(arena.lobbyWarp,
Sound.ORB_PICKUP, 1, 0);
ArenaHandler.sendFMessage(arena,
ConfigC.normal_lobbyArenaIsStarting,
true, "1-4");
} else if (arena.timer == 3) {
arena.lobbyWarp.getWorld()
.playSound(arena.lobbyWarp,
Sound.ORB_PICKUP, 1, 1);
ArenaHandler.sendFMessage(arena,
ConfigC.normal_lobbyArenaIsStarting,
true, "1-3");
} else if (arena.timer == 2) {
arena.lobbyWarp.getWorld()
.playSound(arena.lobbyWarp,
Sound.ORB_PICKUP, 1, 1);
ArenaHandler.sendFMessage(arena,
ConfigC.normal_lobbyArenaIsStarting,
true, "1-2");
} else if (arena.timer == 1) {
arena.lobbyWarp.getWorld()
.playSound(arena.lobbyWarp,
Sound.ORB_PICKUP, 1, 2);
ArenaHandler.sendFMessage(arena,
ConfigC.normal_lobbyArenaIsStarting,
true, "1-1");
@ -336,22 +351,37 @@ public class BlockHunt extends JavaPlugin implements Listener {
ConfigC.normal_ingameArenaEnd, true,
"1-10");
} else if (arena.timer == 5) {
arena.lobbyWarp.getWorld()
.playSound(arena.lobbyWarp,
Sound.ORB_PICKUP, 1, 0);
ArenaHandler.sendFMessage(arena,
ConfigC.normal_ingameArenaEnd, true,
"1-5");
} else if (arena.timer == 4) {
arena.lobbyWarp.getWorld()
.playSound(arena.lobbyWarp,
Sound.ORB_PICKUP, 1, 0);
ArenaHandler.sendFMessage(arena,
ConfigC.normal_ingameArenaEnd, true,
"1-4");
} else if (arena.timer == 3) {
arena.lobbyWarp.getWorld()
.playSound(arena.lobbyWarp,
Sound.ORB_PICKUP, 1, 1);
ArenaHandler.sendFMessage(arena,
ConfigC.normal_ingameArenaEnd, true,
"1-3");
} else if (arena.timer == 2) {
arena.lobbyWarp.getWorld()
.playSound(arena.lobbyWarp,
Sound.ORB_PICKUP, 1, 1);
ArenaHandler.sendFMessage(arena,
ConfigC.normal_ingameArenaEnd, true,
"1-2");
} else if (arena.timer == 1) {
arena.lobbyWarp.getWorld()
.playSound(arena.lobbyWarp,
Sound.ORB_PICKUP, 1, 2);
ArenaHandler.sendFMessage(arena,
ConfigC.normal_ingameArenaEnd, true,
"1-1");