/* * AntiCheat for Bukkit. * Copyright (C) 2012-2014 AntiCheat Team | http://gravitydevelopment.net * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ package net.gravitydevelopment.anticheat.config.files; import net.gravitydevelopment.anticheat.AntiCheat; import net.gravitydevelopment.anticheat.config.Configuration; import net.gravitydevelopment.anticheat.config.ConfigurationFile; import java.util.List; public class Config extends ConfigurationFile { public static final String FILENAME = "config.yml"; public ConfigValue logToConsole; public ConfigValue autoUpdate; public ConfigValue verboseStartup; public ConfigValue silentMode; public ConfigValue exemptOp; public ConfigValue eventChains; public ConfigValue enterprise; public ConfigValue blockChatSpamSpeed; public ConfigValue blockCommandSpamSpeed; public ConfigValue blockChatSpamRepetition; public ConfigValue blockCommandSpamRepetition; public ConfigValue chatSpamActionOne; public ConfigValue chatSpamActionTwo; public ConfigValue commandSpamActionOne; public ConfigValue commandSpamActionTwo; public ConfigValue logToFile; public ConfigValue> disabledWorlds; public ConfigValue> disabledChecks; public Config(AntiCheat plugin, Configuration config) { super(plugin, config, FILENAME); } @Override public void open() { logToConsole = new ConfigValue("system.log-to-console"); autoUpdate = new ConfigValue("system.auto-update"); verboseStartup = new ConfigValue("system.verbose-startup"); silentMode = new ConfigValue("system.silent-mode"); exemptOp = new ConfigValue("system.exempt-op"); eventChains = new ConfigValue("system.event-chains"); enterprise = new ConfigValue("system.enterprise"); blockChatSpamSpeed = new ConfigValue("spam.chat.block-speed"); blockChatSpamRepetition = new ConfigValue("spam.chat.block-repetition"); chatSpamActionOne = new ConfigValue("spam.chat.action-one"); chatSpamActionTwo = new ConfigValue("spam.chat.action-two"); blockCommandSpamSpeed = new ConfigValue("spam.command.block-speed"); blockCommandSpamRepetition = new ConfigValue("spam.command.block-repetition"); commandSpamActionOne = new ConfigValue("spam.command.action-one"); commandSpamActionTwo = new ConfigValue("spam.command.action-two"); logToFile = new ConfigValue("system.log-to-file"); disabledWorlds = new ConfigValue>("disable-in"); disabledChecks = new ConfigValue>("disabled-checks"); } }