File tree Expand file tree Collapse file tree
src/main/java/ac/artemis/anticheat/api Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11package ac .artemis .anticheat .api ;
22
3+ import ac .artemis .anticheat .api .listener .VerboseListener ;
34import cc .ghast .packet .nms .ProtocolVersion ;
45
56import java .util .UUID ;
67
78public interface ArtemisAPI {
89 ProtocolVersion getVersion (UUID uuid );
10+
11+ void addVerboseListener (VerboseListener verboseListener );
12+
13+ void removeVerboseListener (VerboseListener verboseListener );
14+
15+ void clearVerboseListeners ();
916}
Original file line number Diff line number Diff line change 1+ package ac .artemis .anticheat .api .alert ;
2+
3+ import ac .artemis .anticheat .api .check .CheckInfo ;
4+
5+ import java .util .UUID ;
6+
7+ public interface Alert {
8+ /**
9+ * Returns the severity of the alert. An alert can either be a verbose or a violation.
10+ * @return Severity of alert
11+ */
12+ Severity getSeverity ();
13+
14+ /**
15+ * UUID of the player that has flagged
16+ * @return The UUID
17+ */
18+ UUID getUuid ();
19+
20+ /**
21+ * Information about the check in question
22+ * @return Information about the checkinformation
23+ */
24+ CheckInfo getCheck ();
25+
26+ /**
27+ * Violation digit
28+ * @return Integer representing the above
29+ */
30+ int count ();
31+
32+ /**
33+ * Value that corresponds to a Minecraft chat message
34+ * @return Minecraft chat message value
35+ */
36+ String toMinecraftMessage ();
37+
38+ }
Original file line number Diff line number Diff line change 1+ package ac .artemis .anticheat .api .alert ;
2+
3+ public enum Severity {
4+ VERBOSE ,
5+ VIOLATION ;
6+ }
Original file line number Diff line number Diff line change 1+ package ac .artemis .anticheat .api .listener ;
2+
3+ import ac .artemis .anticheat .api .alert .Alert ;
4+
5+ public interface VerboseListener {
6+ /**
7+ * Will listen to every kind of verbose. This can be constructed as a Player,
8+ * a discord or whatnot.
9+ * @param alert Alert that has to be received
10+ */
11+ void receive (Alert alert );
12+ }
You can’t perform that action at this time.
0 commit comments