Little changes (look comments)

This commit is contained in:
Lukas
2015-01-09 15:46:41 +01:00
parent a2d91f0bd2
commit 6c8f3ac43a

View File

@@ -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);