Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class GameTimeBeforePvP
- {
- int task;
- public GameTimeBeforePvP()
- {
- GameStates.setState(GameStates.PVP);
- task = Bukkit.getScheduler().scheduleSyncRepeatingTask(Main.getInstance(), new Runnable()
- {
- public void run()
- {
- Main.getInstance().getBoard().decrementCountdown();
- Main.getInstance().getBoard().updateScoreboard();
- if(Main.getInstance().getBoard().getCountdown() == 0)
- {
- Bukkit.getScheduler().cancelTask(task);
- new GameTimeBeforeAssaut(); // The same class except the name and some messages I spared you, with same bug of course
- }
- }
- }, 20, 20);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement