Sanity clean up

This commit is contained in:
h31ix committed 2013-10-11 11:16:15 -04:00
1 parent ca4406809b
commit 9486e18c4f
47 files changed
+710 -784

No files matched your search

@@ -18,10 +18,6 @@
package net.h31ix.anticheat;
import java.util.ArrayList;
import java.util.List;
import java.util.logging.Level;
import com.comphenix.protocol.ProtocolLibrary;
import net.h31ix.anticheat.config.Configuration;
import net.h31ix.anticheat.event.*;
@@ -38,6 +34,9 @@ import org.bukkit.entity.Player;
import org.bukkit.event.Listener;
import org.bukkit.plugin.java.JavaPlugin;
import java.util.ArrayList;
import java.util.List;
public class AntiCheat extends JavaPlugin {
private static AnticheatManager manager;
@@ -157,8 +156,8 @@ public class AntiCheat extends JavaPlugin {
}
private void setupEnterprise() {
if(config.getConfig().enterprise.getValue()) {
if(config.getEnterprise().loggingEnabled.getValue()) {
if (config.getConfig().enterprise.getValue()) {
if (config.getEnterprise().loggingEnabled.getValue()) {
config.getEnterprise().database.cleanEvents();
}
}
@@ -214,7 +213,7 @@ public class AntiCheat extends JavaPlugin {
public static void debugLog(final String string) {
Bukkit.getScheduler().runTask(getPlugin(), new Runnable() {
public void run() {
if(developer) {
if (developer) {
manager.log("[DEBUG] " + string);
}
}