hassansyyid

Untitled

Aug 7th, 2015
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.98 KB | None | 0 0
  1.                     taskBuilder.execute(new Runnable()
  2.                     {
  3.                         public void run()
  4.                         {
  5.                             ConfigurationLoader<CommentedConfigurationNode> configManager = Main.getConfigManager();
  6.                             Main.config.getNode("players", player.getUniqueId().toString(), kit, "usable").setValue("true");
  7.                             try
  8.                             {
  9.                                 configManager.save(Main.config);
  10.                                 configManager.load();
  11.                             }
  12.                             catch (IOException e)
  13.                             {
  14.                                 System.out.println("[Kits]: Failed to save config!");
  15.                             }
  16.                         }
  17.                     }).delay(val, TimeUnit.MILLISECONDS).name("Kits - Sets Value Back to True").submit(game.getPluginManager().getPlugin("Kits").get().getInstance());
  18.                    
  19.                     taskBuilder.execute(new Runnable()
  20.                     {
  21.                         public void run()
  22.                         {
  23.                             if (timeRemaining > 0)
  24.                             {
  25.                                 timeRemaining = timeRemaining - 1;
  26.                             }
  27.                         }
  28.                     }).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