mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-02 14:38:45 +00:00
Added NoSlowdown, migrations to new config
This commit is contained in:
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");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user