Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CountDown countdown = new CountDown([the plugin object], [the number counting down from], [the number of ticks per count])
- {
- @Override
- protected void onCount(CountDown countDown, int currentCount)
- {
- if(currentCount == 1)
- for(Player player : Bukkit.getOnlinePlayers())
- player.sendMessage("One minute to go!");
- // Any other per-count code.
- }
- @Override
- protected void onFinish(CountDown countDown)
- {
- for(Player player : Bukkit.getOnlinePlayers())
- player.sendMessage("Ta-da!!");
- }
- };
- countdown.run();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement