mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-01 14:38:56 +00:00
Fixed a dumb config issue.
This commit is contained in:
1 parent
1d1bb0a962
commit
94fb44c005
1 file changed
+9
-8
@@ -57,18 +57,19 @@ public class Anticheat extends JavaPlugin
|
||||
public void onEnable()
|
||||
{
|
||||
plugin = this;
|
||||
if(!new File(this.getDataFolder()+"\\config.yml").exists())
|
||||
{
|
||||
saveDefaultConfig();
|
||||
if(verbose)
|
||||
{
|
||||
logger.log(Level.INFO,"[AC] Config file created");
|
||||
}
|
||||
}
|
||||
config = AnticheatManager.CONFIGURATION;
|
||||
verbose = config.verboseStartup();
|
||||
updateFolder = config.updateFolder();
|
||||
checkForUpdate();
|
||||
if(!new File("plugins/AntiCheat/config.yml").exists())
|
||||
{
|
||||
if(verbose)
|
||||
{
|
||||
logger.log(Level.INFO,"[AC] Config file created");
|
||||
}
|
||||
saveDefaultConfig();
|
||||
}
|
||||
|
||||
eventList.add(new PlayerListener());
|
||||
eventList.add(new BlockListener());
|
||||
eventList.add(new EntityListener());
|
||||
|
||||
Reference in new issue
Block a user