File tree Expand file tree Collapse file tree 4 files changed +63
-0
lines changed
src/main/java/ac/artemis/anticheat/api Expand file tree Collapse file tree 4 files changed +63
-0
lines changed Original file line number Diff line number Diff line change 1
1
package ac .artemis .anticheat .api ;
2
2
3
+ import ac .artemis .anticheat .api .listener .VerboseListener ;
3
4
import cc .ghast .packet .nms .ProtocolVersion ;
4
5
5
6
import java .util .UUID ;
6
7
7
8
public interface ArtemisAPI {
8
9
ProtocolVersion getVersion (UUID uuid );
10
+
11
+ void addVerboseListener (VerboseListener verboseListener );
12
+
13
+ void removeVerboseListener (VerboseListener verboseListener );
14
+
15
+ void clearVerboseListeners ();
9
16
}
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