Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- taskBuilder.execute(new Runnable()
- {
- public void run()
- {
- ConfigurationLoader<CommentedConfigurationNode> configManager = Main.getConfigManager();
- Main.config.getNode("players", player.getUniqueId().toString(), kit, "usable").setValue("true");
- try
- {
- configManager.save(Main.config);
- configManager.load();
- }
- catch (IOException e)
- {
- System.out.println("[Kits]: Failed to save config!");
- }
- }
- }).delay(val, TimeUnit.MILLISECONDS).name("Kits - Sets Value Back to True").submit(game.getPluginManager().getPlugin("Kits").get().getInstance());
- taskBuilder.execute(new Runnable()
- {
- public void run()
- {
- if (timeRemaining > 0)
- {
- timeRemaining = timeRemaining - 1;
- }
- }
- }).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