From 6c8f3ac43aafc026d5b5d26606843089f406f64c Mon Sep 17 00:00:00 2001 From: Lukas Date: Fri, 9 Jan 2015 15:46:41 +0100 Subject: [PATCH] Little changes (look comments) --- src/de/anura/core/events/VotifierListener.java | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/de/anura/core/events/VotifierListener.java b/src/de/anura/core/events/VotifierListener.java index 4631e30..33a72a2 100644 --- a/src/de/anura/core/events/VotifierListener.java +++ b/src/de/anura/core/events/VotifierListener.java @@ -49,7 +49,7 @@ public class VotifierListener implements Listener, PluginMessageListener { int lastVoteDate = rs2.getInt("dateOfLastVote"); int votesInRow; votesInRow = rs2.getInt("votesInARow"); - if (lastVoteDate > ((System.currentTimeMillis() / 1000) - (60*60*24))) { + if (lastVoteDate > ((System.currentTimeMillis() / 1000) - (60 * 60 * 24))) { votesInRow++; if (votesInRow == 10) { addPlayerMoney(50, vote); @@ -113,12 +113,11 @@ public class VotifierListener implements Listener, PluginMessageListener { String playername = in.readUTF(); Player p = Bukkit.getPlayer(playername); int money = Integer.parseInt(in.readUTF()); - Money.payMoney(p, money); - if (money == 25) { - Core.getl("Vote_Normal", p); - } else if (money == 50) { - Core.getl("Vote_10_Times", p); + Core.statusMsg(p, "Vote_Normal", Boolean.TRUE); + if (money == 75) { + Core.statusMsg(p, "Vote_10_Times", true); } + Money.payMoney(p, money); } } catch (IOException ex) { Errors.reportException(ex);