hassansyyid

Untitled

Aug 7th, 2015
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.51 KB | None | 0 0
  1. taskBuilder.execute(new Runnable()
  2.                     {
  3.                         public void run()
  4.                         {
  5.                             System.out.println("[Kits]: Getting called!");
  6.                             if (timeRemaining > 0)
  7.                             {
  8.                                 System.out.println("[Kits]: Getting called to decrease it!");
  9.                                 timeRemaining = timeRemaining - 1;
  10.                                 System.out.println("[Kits]: New value set! " + timeRemaining);
  11.                             }
  12.                         }
  13.                     }).interval(1, TimeUnit.SECONDS).name("Kits - Counts remaining time").submit(game.getPluginManager().getPlugin("Kits").get().getInstance());
Advertisement
Add Comment
Please, Sign In to add comment