mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-02 14:38:45 +00:00
Nitpicky stuff
This commit is contained in:
1 parent
d12fb048df
commit
d5d705fbe4
10 files changed
+401
-266
No files matched your search
@@ -258,18 +258,6 @@ public class Configuration {
|
||||
}
|
||||
}
|
||||
|
||||
public List<String> getWorldsExempt() {
|
||||
return exemptWorlds;
|
||||
}
|
||||
|
||||
public File getConfigFile() {
|
||||
return configFile;
|
||||
}
|
||||
|
||||
public File getLevelFile() {
|
||||
return levelFile;
|
||||
}
|
||||
|
||||
public FileConfiguration getMagic() {
|
||||
return magic;
|
||||
}
|
||||
@@ -305,8 +293,4 @@ public class Configuration {
|
||||
Logger.getLogger(Configuration.class.getName()).log(Level.SEVERE, null, ex);
|
||||
}
|
||||
}
|
||||
|
||||
public String getMainConfigurationDump() {
|
||||
return config.saveToString();
|
||||
}
|
||||
}
|
||||
@@ -1,31 +0,0 @@
|
||||
/*
|
||||
* AntiCheat for Bukkit.
|
||||
* Copyright (C) 2012-2013 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 <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package net.h31ix.anticheat.util;
|
||||
|
||||
import java.util.logging.Formatter;
|
||||
import java.util.logging.LogRecord;
|
||||
|
||||
public class ConsoleFormatter extends Formatter {
|
||||
|
||||
@Override
|
||||
public String format(LogRecord record) {
|
||||
StringBuilder output = new StringBuilder().append(record.getMessage()).append(' ');
|
||||
return output.toString();
|
||||
}
|
||||
}
|
||||
@@ -329,6 +329,10 @@ public class Magic {
|
||||
* The minimum time it should have taken for the player to travel X steps; Type=system; +Leniency=Decrease.
|
||||
*/
|
||||
public final long TIMER_TIMEMIN;
|
||||
/**
|
||||
* Minimum travel distance for move to be considered a teleport and subsequently be ignored; Type=int; +Leniency=Increase.
|
||||
*/
|
||||
public final long TELEPORT_MIN;
|
||||
|
||||
private FileConfiguration defaults;
|
||||
private FileConfiguration magic;
|
||||
@@ -414,6 +418,7 @@ public class Magic {
|
||||
INVENTORY_TIMEMIN = getInt("INVENTORY_TIMEMIN");
|
||||
TIMER_STEP_CHECK = getInt("TIMER_STEP_CHECK");
|
||||
TIMER_TIMEMIN = getLong("TIMER_TIMEMIN");
|
||||
TELEPORT_MIN = getLong("TELEPORT_MIN");
|
||||
}
|
||||
|
||||
private int getInt(String path) {
|
||||
|
||||
Reference in new issue
Block a user