Advertisement
Guest User

Minecraf Timer

a guest
Dec 5th, 2019
249
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1.  
  2. public static void startTimerPlus(Player p) {
  3. Main.state = GameStates.CHALLENGE;
  4.  
  5. Bukkit.getServer().getScheduler().scheduleSyncRepeatingTask(plugin, new Runnable() {
  6.  
  7.  
  8. @Override
  9. public void run() {
  10. p.sendMessage("ye");
  11. if(Settings.timerrun == true) {
  12. String msg = "Zeit: " + Settings.timer;
  13. Timer_Countdown.sendActionbar(p, msg);
  14. Settings.timer ++;
  15. } else {
  16.  
  17. }
  18. }
  19.  
  20.  
  21.  
  22. }, 0L, 20L);
  23.  
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement