Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- taskBuilder.execute(new Runnable()
- {
- public void run()
- {
- System.out.println("[Kits]: Getting called!");
- if (timeRemaining > 0)
- {
- System.out.println("[Kits]: Getting called to decrease it!");
- timeRemaining = timeRemaining - 1;
- System.out.println("[Kits]: New value set! " + timeRemaining);
- }
- }
- }).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