mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-02 22:16:03 +00:00
Add "Event Chains", track plugins that register AntiCheat's events, dumped in new debug reports.
This commit is contained in:
1 parent
895c082325
commit
1476b16948
10 files changed
+112
No files matched your search
@@ -50,6 +50,7 @@ public class Configuration {
|
||||
private boolean silentMode;
|
||||
private boolean opExempt;
|
||||
private boolean trackCreativeXRay;
|
||||
private boolean eventChains;
|
||||
private int fileLogLevel = 0;
|
||||
private int medThreshold = 0;
|
||||
private int highThreshold = 0;
|
||||
@@ -122,6 +123,10 @@ public class Configuration {
|
||||
return trackCreativeXRay;
|
||||
}
|
||||
|
||||
public boolean eventChains() {
|
||||
return eventChains;
|
||||
}
|
||||
|
||||
public int medThreshold() {
|
||||
return medThreshold;
|
||||
}
|
||||
@@ -174,6 +179,7 @@ public class Configuration {
|
||||
highThreshold = getInt("Events.High threshold", 50);
|
||||
opExempt = getBoolean("System.Exempt op", false);
|
||||
trackCreativeXRay = getBoolean("XRay.Track creative", true);
|
||||
eventChains = getBoolean("System.Event Chains", true);
|
||||
eventMed = getString("Events.Level Medium", "WARN");
|
||||
eventHigh = getString("Events.Level High", "KICK");
|
||||
chatActionKick = getString("Chat.Kick Action", "KICK");
|
||||
|
||||
@@ -77,6 +77,8 @@ public class PastebinReport {
|
||||
}
|
||||
report.append("------------Permission Tester------------" + '\n');
|
||||
appendPermissionsTester(player);
|
||||
report.append("------------Event Chains------------" + '\n');
|
||||
eventHandlersDump();
|
||||
report.append("-----------End Of Report------------");
|
||||
}
|
||||
|
||||
@@ -93,6 +95,7 @@ public class PastebinReport {
|
||||
|
||||
private void eventHandlersDump() {
|
||||
// TODO: Get a list of plugins hooking into AntiCheat events.
|
||||
report.append(Anticheat.getManager().getEventChainReport());
|
||||
}
|
||||
|
||||
private void writeReport() throws IOException {
|
||||
|
||||
@@ -64,6 +64,7 @@ public class CommentedConfiguration extends YamlConfiguration {
|
||||
comments.put("Verbose startup:", " # If silent mode is on, players will not be stopped when they try to hack, and AntiCheat will do everything possible to keep them unaware of their rising hack level.");
|
||||
comments.put("# If silent mode is on, players will not be stopped when they try to hack, and AntiCheat will do everything possible to keep them unaware of their rising hack level.", " # However, alerts will still be sent to console and to admins online, and events will still take place.");
|
||||
comments.put("Silent mode:", " # Should ops be exempt from all checks?");
|
||||
comments.put("Exempt op:", " # Should AntiCheat track plugins in it's own registered events?");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user