This commit is contained in:
Jesse Boyd 2016-08-10 17:36:28 +10:00
parent 35883cfb16
commit 3ec42144e7
6 changed files with 8 additions and 8 deletions

View File

@ -14,6 +14,7 @@ import com.boydti.fawe.bukkit.regions.TownyFeature;
import com.boydti.fawe.bukkit.regions.Worldguard;
import com.boydti.fawe.bukkit.v0.BukkitQueue_All;
import com.boydti.fawe.bukkit.v0.ChunkListener;
import com.boydti.fawe.config.BBC;
import com.boydti.fawe.config.Settings;
import com.boydti.fawe.object.FaweCommand;
import com.boydti.fawe.object.FawePlayer;
@ -32,7 +33,7 @@ import java.util.ArrayList;
import java.util.Collection;
import java.util.UUID;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.command.ConsoleCommandSender;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
@ -85,7 +86,12 @@ public class FaweBukkit implements IFawe, Listener {
@Override
public void debug(final String s) {
Bukkit.getLogger().info(ChatColor.translateAlternateColorCodes('&', s));
ConsoleCommandSender console = Bukkit.getConsoleSender();
if (console != null) {
console.sendMessage(BBC.color(s));
} else {
Bukkit.getLogger().info(BBC.color(s));
}
}
@Override
@ -120,7 +126,6 @@ public class FaweBukkit implements IFawe, Listener {
public void startMetrics() {
Metrics metrics = new Metrics(plugin);
metrics.start();
debug("&6Metrics enabled.");
}
/**

View File

@ -134,7 +134,6 @@ public class FaweForge implements IFawe {
try {
com.boydti.fawe.forge.ForgeMetrics metrics = new com.boydti.fawe.forge.ForgeMetrics("FastAsyncWorldEdit", "3.5.1");
metrics.start();
debug("[FAWE] &6Metrics enabled.");
} catch (Throwable e) {
debug("[FAWE] &cFailed to load up metrics.");
}

View File

@ -131,7 +131,6 @@ public class FaweForge implements IFawe {
try {
ForgeMetrics metrics = new ForgeMetrics("FastAsyncWorldEdit", "3.5.1");
metrics.start();
debug("[FAWE] &6Metrics enabled.");
} catch (Throwable e) {
debug("[FAWE] &cFailed to load up metrics.");
}

View File

@ -134,7 +134,6 @@ public class FaweForge implements IFawe {
try {
com.boydti.fawe.forge.ForgeMetrics metrics = new com.boydti.fawe.forge.ForgeMetrics("FastAsyncWorldEdit", "3.5.1");
metrics.start();
debug("[FAWE] &6Metrics enabled.");
} catch (Throwable e) {
debug("[FAWE] &cFailed to load up metrics.");
}

View File

@ -134,7 +134,6 @@ public class FaweForge implements IFawe {
try {
com.boydti.fawe.forge.ForgeMetrics metrics = new com.boydti.fawe.forge.ForgeMetrics("FastAsyncWorldEdit", "3.5.1");
metrics.start();
debug("[FAWE] &6Metrics enabled.");
} catch (Throwable e) {
debug("[FAWE] &cFailed to load up metrics.");
}

View File

@ -134,7 +134,6 @@ public class FaweSponge implements IFawe {
try {
SpongeMetrics metrics = new SpongeMetrics(Sponge.getGame(), Sponge.getPluginManager().fromInstance(plugin).get());
metrics.start();
debug("[FAWE] &6Metrics enabled.");
} catch (Throwable e) {
debug("[FAWE] &cFailed to load up metrics.");
}