mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-02 06:28:52 +00:00
Huge refactor to add detailed logging. May not be perfect, but I need a break.
This commit is contained in:
1 parent
cd0351f028
commit
4c12c346f9
7 files changed
+347
-176
No files matched your search
@@ -0,0 +1,33 @@
|
||||
package net.h31ix.anticheat.util;
|
||||
|
||||
public class CheckResult {
|
||||
|
||||
public enum Result {
|
||||
PASSED,FAILED;
|
||||
}
|
||||
|
||||
private Result result;
|
||||
private String message;
|
||||
|
||||
public CheckResult(Result result, String message) {
|
||||
this(result);
|
||||
this.message = message;
|
||||
}
|
||||
|
||||
public CheckResult(Result result) {
|
||||
this.result = result;
|
||||
}
|
||||
|
||||
public boolean failed() {
|
||||
return result == Result.FAILED;
|
||||
}
|
||||
|
||||
public String getMessage() {
|
||||
return message;
|
||||
}
|
||||
|
||||
public Result getResult() {
|
||||
return result;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user