mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-03 14:38:46 +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()
|
public void onEnable()
|
||||||
{
|
{
|
||||||
plugin = this;
|
plugin = this;
|
||||||
|
if(!new File(this.getDataFolder()+"\\config.yml").exists())
|
||||||
|
{
|
||||||
|
saveDefaultConfig();
|
||||||
|
if(verbose)
|
||||||
|
{
|
||||||
|
logger.log(Level.INFO,"[AC] Config file created");
|
||||||
|
}
|
||||||
|
}
|
||||||
config = AnticheatManager.CONFIGURATION;
|
config = AnticheatManager.CONFIGURATION;
|
||||||
verbose = config.verboseStartup();
|
verbose = config.verboseStartup();
|
||||||
updateFolder = config.updateFolder();
|
updateFolder = config.updateFolder();
|
||||||
checkForUpdate();
|
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 PlayerListener());
|
||||||
eventList.add(new BlockListener());
|
eventList.add(new BlockListener());
|
||||||
eventList.add(new EntityListener());
|
eventList.add(new EntityListener());
|
||||||
|
|||||||
Reference in new issue
Block a user