diff --git a/Plugins/Mineplex.Hub/src/mineplex/hub/poll/PollManager.java b/Plugins/Mineplex.Hub/src/mineplex/hub/poll/PollManager.java index 4c27183fd..e770295d9 100644 --- a/Plugins/Mineplex.Hub/src/mineplex/hub/poll/PollManager.java +++ b/Plugins/Mineplex.Hub/src/mineplex/hub/poll/PollManager.java @@ -85,6 +85,9 @@ public class PollManager extends MiniClientPlugin if (event.getType() != UpdateType.SLOW) return; + if (_polls.size() == 0) + return; + for (Player player : _plugin.getServer().getOnlinePlayers()) { PlayerPollData pollData = Get(player); @@ -147,7 +150,7 @@ public class PollManager extends MiniClientPlugin } } player.sendMessage(""); - player.sendMessage("Click an answer to receive " + C.cYellow + poll.getCoinReward() + " Coins"); + player.sendMessage("Click an answer to receive " + C.cGreen + poll.getCoinReward() + " Gems"); player.sendMessage(C.cGold + C.Bold + "--------------------------"); player.playSound(player.getEyeLocation(), Sound.ORB_PICKUP, 2f, 0f); @@ -173,7 +176,7 @@ public class PollManager extends MiniClientPlugin if (_repository.addPollAnswer(uuid, poll.getId(), answer)) { // Poll response successful, give coins - _donationManager.RewardCoins(new Callback() + _donationManager.RewardGems(new Callback() { @Override public void run(Boolean completed) @@ -184,7 +187,7 @@ public class PollManager extends MiniClientPlugin @Override public void run() { - UtilPlayer.message(player, F.main("Coin", "You received " + F.elem(poll.getCoinReward() + "") + " coins!")); + UtilPlayer.message(player, F.main("Gem", "You received " + F.elem(poll.getCoinReward() + "") + " Gems!")); } }); }