package musician101.emergencywhitelist.util;

import musician101.emergencywhitelist.EmergencyWhitelist;
import musician101.emergencywhitelist.lib.Constants;
import musician101.emergencywhitelist.runnables.KickPlayers;

import org.bukkit.Bukkit;

/**
 * Runs when '/ewl toggle' is executed.
 * 
 * @author Musician101
 */
public class RunKickMethod 
{
	/**
	 * @param plugin Reference to the plugin's main class.
	 * @param enabled References the 'enabled' option in the config.
	 */
	public RunKickMethod(EmergencyWhitelist plugin, boolean enabled)
	{
		plugin.getLogger().info(Constants.getWhitelistEnabled(plugin.getConfig().getBoolean("enabled")));
		plugin.getLogger().info(Constants.getToggleMessage(plugin.getConfig().getBoolean("enabled")));
		if (enabled)
		{
			Bukkit.broadcastMessage(Constants.getWhitelistAnnounce(enabled));
			plugin.getServer().getScheduler().scheduleSyncDelayedTask(plugin, new KickPlayers(plugin), 100L);
		}
		else
			Bukkit.broadcastMessage(Constants.getWhitelistAnnounce(enabled));
	}
}

@@ -605,48 +605,15 @@
 led(
-plugin.getConfig().getBoolean(%22
 enabled
-%22)
 ));%0A
@@ -669,48 +669,15 @@
 age(
-plugin.getConfig().getBoolean(%22
 enabled
-%22)
 ));%0A

Fix RunKickMethod actually use the provided parameters.