mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-02 06:28:52 +00:00
Fixed dumb NPE on load.
This commit is contained in:
1 parent
9de009cc44
commit
d8204161e1
2 files changed
+4
-5
No files matched your search
@@ -65,8 +65,8 @@ public class Anticheat extends JavaPlugin
|
||||
public void onEnable()
|
||||
{
|
||||
plugin = this;
|
||||
checkConfig();
|
||||
config = AnticheatManager.CONFIGURATION;
|
||||
checkConfig();
|
||||
verbose = config.verboseStartup();
|
||||
updateFolder = config.updateFolder();
|
||||
checkForUpdate();
|
||||
@@ -211,7 +211,7 @@ public class Anticheat extends JavaPlugin
|
||||
|
||||
public static void checkConfig()
|
||||
{
|
||||
if(!config.getConfigFile().exists())
|
||||
if(!new File("plugins/AntiCheat/config.yml").exists())
|
||||
{
|
||||
plugin.saveDefaultConfig();
|
||||
if(verbose)
|
||||
|
||||
Reference in new issue
Block a user