*Added Vote (not ready)

This commit is contained in:
Lukas
2015-01-04 15:14:35 +01:00
parent 0a8fb21a2c
commit baaf694467
4 changed files with 120 additions and 3 deletions

View File

@@ -144,7 +144,7 @@ public class Setup {
Core.getMainClass().sittableBlocks.add(l.getBlock());
}
}
Bukkit.getScheduler().scheduleSyncRepeatingTask(Core.getMainClass(), new Runnable() {
@Override
@@ -301,7 +301,7 @@ public class Setup {
Errors.reportException(e);
}
}
public static void setupXPBattle() {
Scoreboard s = Bukkit.getScoreboardManager().getMainScoreboard();
if (s.getObjective("xpBattleStart") == null) {
@@ -311,4 +311,9 @@ public class Setup {
s.registerNewObjective("xpBattleIngame", "dummy");
}
}
public static void setupVotifier() {
AnuraCore.getInstance().getServer().getPluginManager().registerEvents(new de.anura.core.events.VotifierListener(), AnuraCore.getInstance());
AnuraCore.getInstance().getServer().getMessenger().registerIncomingPluginChannel(AnuraCore.getInstance(), "BungeeCord", new VotifierListener());
}
}