More changes.
This commit is contained in:
parent
91d0a37d77
commit
cf61b50d98
@ -118,7 +118,11 @@ public enum AchievementCategory
|
||||
|
||||
MICRO_BATTLE("Micro Battle", null,
|
||||
new StatDisplay[] { StatDisplay.WINS, StatDisplay.GAMES_PLAYED, StatDisplay.KILLS, StatDisplay.DEATHS, StatDisplay.GEMS_EARNED },
|
||||
Material.LAVA, 0, GameCategory.ARCADE, null);
|
||||
Material.LAVA, 0, GameCategory.ARCADE, null),
|
||||
|
||||
BOMB_LOBBERS("Bomb Lobbers", null,
|
||||
new StatDisplay[] { StatDisplay.WINS, StatDisplay.GAMES_PLAYED, StatDisplay.KILLS, StatDisplay.DEATHS, StatDisplay.GEMS_EARNED },
|
||||
Material.FIREBALL, 0, GameCategory.ARCADE, "Waller Kit");
|
||||
|
||||
|
||||
private String _name;
|
||||
|
@ -3,6 +3,7 @@ package nautilus.game.arcade.gui.privateServer.page;
|
||||
import java.util.ArrayList;
|
||||
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.Sound;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.inventory.ClickType;
|
||||
|
||||
@ -113,6 +114,7 @@ public class GameVotingPage extends BasePage
|
||||
for (Player p : UtilServer.getPlayers())
|
||||
{
|
||||
UtilPlayer.message(p, F.main("Vote", "A vote has started! Use " + F.skill("/vote") + " to vote."));
|
||||
p.playSound(p.getLocation(), Sound.NOTE_BASS, 1F, 1F);
|
||||
}
|
||||
refresh();
|
||||
}
|
||||
|
@ -374,6 +374,13 @@ public class GameHostManager implements Listener
|
||||
return;
|
||||
}
|
||||
|
||||
if (!_voteInProgress)
|
||||
{
|
||||
UtilPlayer.message(event.getPlayer(), F.main("Vote", "There is no vote in progress."));
|
||||
event.setCancelled(true);
|
||||
return;
|
||||
}
|
||||
|
||||
event.setCancelled(true);
|
||||
_shop.openPageForPlayer(event.getPlayer(), new GameVotingPage(Manager, _shop, event.getPlayer()));
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user