Magic number configuration! Hooray!

This commit is contained in:
h31ix committed 2012-09-26 20:53:20 -04:00
1 parent 486c19f080
commit 540cc30151
6 files changed
+515 -153

No files matched your search

@@ -23,7 +23,6 @@ import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
import net.h31ix.anticheat.event.*;
import net.h31ix.anticheat.manage.AnticheatManager;
import net.h31ix.anticheat.manage.CheckType;
@@ -248,6 +247,14 @@ public class Anticheat extends JavaPlugin
getLogger().log(Level.INFO, "Lang file created.");
}
}
if (!new File(getDataFolder() + "/magic.yml").exists())
{
saveResource("magic.yml", false);
if (verbose)
{
getLogger().log(Level.INFO, "Magic file created.");
}
}
}
public static Anticheat getPlugin()