diff --git a/VotingPlugin/src/com/bencodez/votingplugin/voteparty/VoteParty.java b/VotingPlugin/src/com/bencodez/votingplugin/voteparty/VoteParty.java index 7974ec83e..542249266 100644 --- a/VotingPlugin/src/com/bencodez/votingplugin/voteparty/VoteParty.java +++ b/VotingPlugin/src/com/bencodez/votingplugin/voteparty/VoteParty.java @@ -344,7 +344,7 @@ public void setVotedUsers(ArrayList value) { plugin.getServerData().saveData(); } - public void checkVoteReminder() { + public void checkVoteReminder(VotingPluginUser user) { int neededVotes = getNeededVotes(); for (String str : plugin.getSpecialRewardsConfig().getVotePartyVoteReminderAtVotes()) { @@ -352,9 +352,11 @@ public void checkVoteReminder() { int num = Integer.parseInt(str); if (neededVotes == num) { String broadcastMessage = plugin.getSpecialRewardsConfig().getVotePartyVoteReminderBroadcast(); - broadcastMessage = StringParser.getInstance().replacePlaceHolder(broadcastMessage, "votesrequired", - "" + neededVotes); - MiscUtils.getInstance().broadcast(broadcastMessage); + HashMap placeholders = new HashMap(); + placeholders.put("player", user.getPlayerName()); + placeholders.put("votesrequired", "" + neededVotes); + MiscUtils.getInstance() + .broadcast(StringParser.getInstance().replacePlaceHolder(broadcastMessage, placeholders)); } } } @@ -367,7 +369,7 @@ public synchronized void vote(VotingPluginUser user, boolean realVote, boolean f addTotal(user); addVotePlayer(user); check(user, forceBungee); - checkVoteReminder(); + checkVoteReminder(user); } } }