Fixes #229
This commit is contained in:
parent
35883cfb16
commit
3ec42144e7
@ -14,6 +14,7 @@ import com.boydti.fawe.bukkit.regions.TownyFeature;
|
|||||||
import com.boydti.fawe.bukkit.regions.Worldguard;
|
import com.boydti.fawe.bukkit.regions.Worldguard;
|
||||||
import com.boydti.fawe.bukkit.v0.BukkitQueue_All;
|
import com.boydti.fawe.bukkit.v0.BukkitQueue_All;
|
||||||
import com.boydti.fawe.bukkit.v0.ChunkListener;
|
import com.boydti.fawe.bukkit.v0.ChunkListener;
|
||||||
|
import com.boydti.fawe.config.BBC;
|
||||||
import com.boydti.fawe.config.Settings;
|
import com.boydti.fawe.config.Settings;
|
||||||
import com.boydti.fawe.object.FaweCommand;
|
import com.boydti.fawe.object.FaweCommand;
|
||||||
import com.boydti.fawe.object.FawePlayer;
|
import com.boydti.fawe.object.FawePlayer;
|
||||||
@ -32,7 +33,7 @@ import java.util.ArrayList;
|
|||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
import org.bukkit.ChatColor;
|
import org.bukkit.command.ConsoleCommandSender;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.event.EventHandler;
|
import org.bukkit.event.EventHandler;
|
||||||
import org.bukkit.event.Listener;
|
import org.bukkit.event.Listener;
|
||||||
@ -85,7 +86,12 @@ public class FaweBukkit implements IFawe, Listener {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void debug(final String s) {
|
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
|
@Override
|
||||||
@ -120,7 +126,6 @@ public class FaweBukkit implements IFawe, Listener {
|
|||||||
public void startMetrics() {
|
public void startMetrics() {
|
||||||
Metrics metrics = new Metrics(plugin);
|
Metrics metrics = new Metrics(plugin);
|
||||||
metrics.start();
|
metrics.start();
|
||||||
debug("&6Metrics enabled.");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -134,7 +134,6 @@ public class FaweForge implements IFawe {
|
|||||||
try {
|
try {
|
||||||
com.boydti.fawe.forge.ForgeMetrics metrics = new com.boydti.fawe.forge.ForgeMetrics("FastAsyncWorldEdit", "3.5.1");
|
com.boydti.fawe.forge.ForgeMetrics metrics = new com.boydti.fawe.forge.ForgeMetrics("FastAsyncWorldEdit", "3.5.1");
|
||||||
metrics.start();
|
metrics.start();
|
||||||
debug("[FAWE] &6Metrics enabled.");
|
|
||||||
} catch (Throwable e) {
|
} catch (Throwable e) {
|
||||||
debug("[FAWE] &cFailed to load up metrics.");
|
debug("[FAWE] &cFailed to load up metrics.");
|
||||||
}
|
}
|
||||||
|
@ -131,7 +131,6 @@ public class FaweForge implements IFawe {
|
|||||||
try {
|
try {
|
||||||
ForgeMetrics metrics = new ForgeMetrics("FastAsyncWorldEdit", "3.5.1");
|
ForgeMetrics metrics = new ForgeMetrics("FastAsyncWorldEdit", "3.5.1");
|
||||||
metrics.start();
|
metrics.start();
|
||||||
debug("[FAWE] &6Metrics enabled.");
|
|
||||||
} catch (Throwable e) {
|
} catch (Throwable e) {
|
||||||
debug("[FAWE] &cFailed to load up metrics.");
|
debug("[FAWE] &cFailed to load up metrics.");
|
||||||
}
|
}
|
||||||
|
@ -134,7 +134,6 @@ public class FaweForge implements IFawe {
|
|||||||
try {
|
try {
|
||||||
com.boydti.fawe.forge.ForgeMetrics metrics = new com.boydti.fawe.forge.ForgeMetrics("FastAsyncWorldEdit", "3.5.1");
|
com.boydti.fawe.forge.ForgeMetrics metrics = new com.boydti.fawe.forge.ForgeMetrics("FastAsyncWorldEdit", "3.5.1");
|
||||||
metrics.start();
|
metrics.start();
|
||||||
debug("[FAWE] &6Metrics enabled.");
|
|
||||||
} catch (Throwable e) {
|
} catch (Throwable e) {
|
||||||
debug("[FAWE] &cFailed to load up metrics.");
|
debug("[FAWE] &cFailed to load up metrics.");
|
||||||
}
|
}
|
||||||
|
@ -134,7 +134,6 @@ public class FaweForge implements IFawe {
|
|||||||
try {
|
try {
|
||||||
com.boydti.fawe.forge.ForgeMetrics metrics = new com.boydti.fawe.forge.ForgeMetrics("FastAsyncWorldEdit", "3.5.1");
|
com.boydti.fawe.forge.ForgeMetrics metrics = new com.boydti.fawe.forge.ForgeMetrics("FastAsyncWorldEdit", "3.5.1");
|
||||||
metrics.start();
|
metrics.start();
|
||||||
debug("[FAWE] &6Metrics enabled.");
|
|
||||||
} catch (Throwable e) {
|
} catch (Throwable e) {
|
||||||
debug("[FAWE] &cFailed to load up metrics.");
|
debug("[FAWE] &cFailed to load up metrics.");
|
||||||
}
|
}
|
||||||
|
@ -134,7 +134,6 @@ public class FaweSponge implements IFawe {
|
|||||||
try {
|
try {
|
||||||
SpongeMetrics metrics = new SpongeMetrics(Sponge.getGame(), Sponge.getPluginManager().fromInstance(plugin).get());
|
SpongeMetrics metrics = new SpongeMetrics(Sponge.getGame(), Sponge.getPluginManager().fromInstance(plugin).get());
|
||||||
metrics.start();
|
metrics.start();
|
||||||
debug("[FAWE] &6Metrics enabled.");
|
|
||||||
} catch (Throwable e) {
|
} catch (Throwable e) {
|
||||||
debug("[FAWE] &cFailed to load up metrics.");
|
debug("[FAWE] &cFailed to load up metrics.");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user