Added NoSlowdown, migrations to new config

This commit is contained in:
Rammelkast committed 2020-07-12 14:04:18 +02:00
1 parent add3fe5eae
commit 2086a01f80
20 files changed
+288 -243

No files matched your search

@@ -26,6 +26,7 @@ import java.util.Map;
import java.util.UUID;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.entity.Player;
import com.rammelkast.anticheatreloaded.check.CheckType;
@@ -47,14 +48,17 @@ public class CheckManager {
this.manager = manager;
this.config = manager.getConfiguration();
for (String string : config.getConfig().disabledChecks.getValue()) {
for (CheckType type : CheckType.values()) {
if (type.toString().equalsIgnoreCase(string)) {
checkIgnoreList.add(type);
break;
}
for (CheckType type : CheckType.values()) {
if (!config.getChecks().isEnabled(type)) {
checkIgnoreList.add(type);
break;
}
}
if (!checkIgnoreList.isEmpty()) {
Bukkit.getConsoleSender().sendMessage(ChatColor.GOLD + "" + ChatColor.BOLD + "ACR " + ChatColor.DARK_GRAY + "> " + ChatColor.GRAY
+ checkIgnoreList.size() + " check(s) have been disabled");
}
}
/**