package com.kolinkrewinkel.BitLimitTweaks;

import org.bukkit.plugin.java.JavaPlugin;
import org.bukkit.plugin.Plugin;
import org.bukkit.ChatColor;
import org.bukkit.World;
import org.bukkit.Server;
import java.util.*;

public class BitLimitTweaks extends JavaPlugin {

    @Override
    public void onEnable() {
        new BitLimitTweaksListener(this);

        this.getCommand("tweaks").setExecutor(new TweaksCommandExecutor(this));

        BitLimitTweaksRepeatingTask task = new BitLimitTweaksRepeatingTask();
        this.getServer().getScheduler().scheduleSyncRepeatingTask(this, task, 0L, 1200L);
    }

    @Override
    public void onDisable() {        
        // save the configuration file, if there are no values, write the defaults.
        this.getConfig().options().copyDefaults(true);
        this.saveConfig();
    }
}


@@ -438,24 +438,30 @@
         
+class 
 BitLimit
 TweaksRe
@@ -456,69 +456,1132 @@
 imit
-TweaksRepeatingTask task = new BitLimitTweaksRepeatingTask();
+RecurringTask implements Runnable %7B%0A            Plugin plugin;%0A            %0A            BitLimitRecurringTask(Plugin p) %7B%0A                plugin = p;%0A            %7D%0A%0A            public void run() %7B%0A                World world = plugin.getServer().getWorld(plugin.getConfig().getString(%22world%22));%0A                if (!world.hasStorm()) %7B%0A                    this.plugin.getServer().broadcastMessage(ChatColor.GREEN + %22Rain decremented!%22);%0A                    int weatherDuration = world.getWeatherDuration();%0A                    this.plugin.getServer().broadcastMessage(ChatColor.RED + Integer.toString(world.getWeatherDuration());%0A                    world.setWeatherDuration(weatherDuration + 6000);%0A                    this.plugin.getServer().broadcastMessage(ChatColor.RED + Integer.toString(world.getWeatherDuration());%0A                %7D else %7B%0A                    this.plugin.getServer().broadcastMessage(ChatColor.RED + %22Timer untouched, it's raining!%22);%0A                    this.plugin.getServer().broadcastMessage(ChatColor.RED + Integer.toString(world.getWeatherDuration());%0A                %7D%0A            %7D%0A        %7D
 %0A   
@@ -1653,12 +1653,39 @@
 is, 
-task
+new BitLimitRecurringTask(this)
 , 0L

Add debug broadcasts