mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-02 14:38:45 +00:00
Add developer mode, other small fixes
This commit is contained in:
1 parent
cb1959d2c0
commit
8d13e964ae
6 files changed
+39
-17
No files matched your search
@@ -23,6 +23,7 @@ import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import net.h31ix.anticheat.Anticheat;
|
||||
import net.h31ix.anticheat.util.Configuration;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.entity.Player;
|
||||
@@ -102,12 +103,13 @@ public class CheckManager {
|
||||
}
|
||||
|
||||
public boolean willCheck(Player player, CheckType type) {
|
||||
return
|
||||
isActive(type)
|
||||
boolean check = isActive(type)
|
||||
&& config.checkInWorld(player.getWorld())
|
||||
&& !isExempt(player, type)
|
||||
&& !type.checkPermission(player)
|
||||
&& !isOpExempt(player);
|
||||
Anticheat.debugLog("Check " + type + (check ? " run " : " not run ") + "on " + player.getName());
|
||||
return check;
|
||||
}
|
||||
|
||||
public boolean isOnline(Player player) {
|
||||
|
||||
Reference in new issue
Block a user