mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-02 06:28:52 +00:00
Add extra debug information and make sure it logs if developer mode is activated
This commit is contained in:
1 parent
1cf33a6c45
commit
0bcbb9b736
3 files changed
+24
-3
No files matched your search
@@ -82,6 +82,11 @@ public class AnticheatManager {
|
||||
log(message, 0);
|
||||
}
|
||||
|
||||
public void debugLog(String message) {
|
||||
Bukkit.getConsoleSender().sendMessage("[AntiCheat] " + ChatColor.GRAY + message);
|
||||
logs.add(ChatColor.stripColor(message));
|
||||
}
|
||||
|
||||
public void log(String message, int i) {
|
||||
if (i != 1 && getConfiguration().getConfig().logToConsole.getValue()) {
|
||||
Bukkit.getConsoleSender().sendMessage("[AntiCheat] " + ChatColor.RED + message);
|
||||
|
||||
Reference in new issue
Block a user