/*
 * Copyright (c) 2013, LankyLord
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * * Redistributions of source code must retain the above copyright notice, this
 *   list of conditions and the following disclaimer.
 * * Redistributions in binary form must reproduce the above copyright notice,
 *   this list of conditions and the following disclaimer in the documentation
 *   and/or other materials provided with the distribution.
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 * POSSIBILITY OF SUCH DAMAGE.
 */
package net.lankylord.dontswear;

import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;
import net.lankylord.dontswear.commands.AddSwearCommand;
import net.lankylord.dontswear.commands.RemoveSwearCommand;
import org.bukkit.Bukkit;
import org.bukkit.plugin.PluginDescriptionFile;
import org.bukkit.plugin.java.JavaPlugin;

/**
 *
 * @author LankyLord
 */
public class DontSwear extends JavaPlugin {

    static final Logger logger = Logger.getLogger("Minecraft");
    private SwearManager manager;

    @Override
    public void onEnable() {
        PluginDescriptionFile pdfFile = this.getDescription();
        logger.log(Level.INFO, "[DontSwear] DontSwear v{0} Enabled.", pdfFile.getVersion());

        getConfig().options().copyDefaults(true);
        saveDefaultConfig();
        saveConfig();

        manager = new SwearManager(this);
        Bukkit.getServer().getPluginManager().registerEvents(new ChatListener(manager), this);
        loadCommands();

        if (getConfig().getBoolean("AutoUpdater.Enabled")) {
            Updater updater = new Updater(this, "dontswear", this.getFile(), Updater.UpdateType.DEFAULT, true);
            logger.info("[DontSwear] AutoUpdater Enabled.");
        }

        try {
            MetricsLite metrics = new MetricsLite(this);
            metrics.start();
        } catch (IOException e) {
            logger.info("[DontSwear] Error while submitting stats.");
        }
    }

    private void loadCommands() {
        getCommand("addswear").setExecutor(new AddSwearCommand(manager));
        getCommand("delswear").setExecutor(new RemoveSwearCommand(manager));
    }
}

@@ -1799,72 +1799,8 @@
  %7B%0A%0A
-    static final Logger logger = Logger.getLogger(%22Minecraft%22);%0A
     
@@ -1829,16 +1829,16 @@
 anager;%0A
+
 %0A    @Ov
@@ -1948,58 +1948,35 @@
     
-l
+getL
 ogger.
-log(Level.INFO, %22%5BDontSwear%5D Dont
+info(%22Don't 
 Swear
- v%7B0%7D
  Ena
@@ -1985,33 +1985,9 @@
 ed.%22
-, pdfFile.getVersion());%0A
+)
 %0A   
@@ -2360,19 +2360,13 @@
 is, 
-%22dontswear%22
+52997
 , th
@@ -2418,33 +2418,36 @@
 e);%0A            
-l
+getL
 ogger.info(%22%5BDon
@@ -2635,17 +2635,20 @@
         
-l
+getL
 ogger.in

Remove unreliable logging method