@@ -1 +1,1943 @@
+package me.stefvanschie;%0A%0Aimport org.bukkit.ChatColor;%0Aimport org.bukkit.entity.Player;%0A%0Apublic class Vote %7B%0A%09%0A%09@SuppressWarnings(%22deprecation%22)%0A%09public static void vote(Player player, int points) %7B%0A%09%09if (player.hasPermission(%22bg.vote%22)) %7B%0A%09%09%09if (BuildingGame.main.players.containsKey(player)) %7B%0A%09%09%09%09if (points %3E= 1 && points %3C= 10) %7B%0A%09%09%09%09%09Player pl = BuildingGame.main.playernumbers.get(BuildingGame.main.place);%0A%09%09%09%09%09BuildingGame.main.votes.put(pl, points + BuildingGame.main.votes.get(pl));%0A%09%09%09%09%09//scoreboard%0A%09%09%09%09%09BuildingGame.main.score = BuildingGame.main.objective.getScore(BuildingGame.main.playernumbers.get(BuildingGame.main.place));%0A%09%09%09%09%09BuildingGame.main.score.setScore(BuildingGame.main.votes.get(BuildingGame.main.playernumbers.get(BuildingGame.main.place)));%0A%09%09%09%09%09//message%0A%09%09%09%09%09player.sendMessage(BuildingGame.main.messages.getString(%22global.prefix%22).replaceAll(%22&%22, %22%C2%A7%22) + BuildingGame.main.messages.getString(%22vote.message%22)%0A%09%09%09%09%09%09%09.replace(%22%25playerplot%25%22, BuildingGame.main.playernumbers.get(BuildingGame.main.place) + %22%22)%0A%09%09%09%09%09%09%09.replace(%22%25points%25%22, points + %22%22)%0A%09%09%09%09%09%09%09.replaceAll(%22&%22, %22%C2%A7%22));%0A%09%09%09%09%7D else if (!(points %3E= 1 && points %3C= 10)) %7B%0A%09%09%09%09%09player.sendMessage(ChatColor.RED + %22Choose a number between 1 and 10%22);%0A%09%09%09%09%7D else %7B%0A%09%09%09%09%09player.sendMessage(ChatColor.RED + %22An unexpected error occured. Error: bg.vote.number%22);%0A%09%09%09%09%7D%0A%09%09%09%7D else if (!BuildingGame.main.players.containsKey(player)) %7B%0A%09%09%09%09player.sendMessage(ChatColor.RED + %22You're not in a game%22);%0A%09%09%09%7D else %7B%0A%09%09%09%09player.sendMessage(ChatColor.RED + %22An unexpected error occured. Error: bg.vote.cotains%22);%0A%09%09%09%7D%0A%09%09%7D else if (!player.hasPermission(%22bg.vote%22)) %7B%0A%09%09%09player.sendMessage(BuildingGame.main.messages.getString(%22global.prefix%22).replaceAll(%22&%22, %22%C2%A7%22) + BuildingGame.main.messages.getString(%22global.permissionNode%22).replaceAll(%22&%22, %22%C2%A7%22));%0A%09%09%7D else %7B%0A%09%09%09player.sendMessage(ChatColor.RED + %22An unexpected error occured. Error: bg.vote.permission%22);%0A%09%09%7D%0A%09%7D%0A%7D
 %0A

Update Vote.java