public class Negativity extends Object
Modifier and Type | Field and Description |
---|---|
static boolean |
hasBypass |
static boolean |
log |
static boolean |
log_console |
static boolean |
tpsDrop |
Constructor and Description |
---|
Negativity() |
Modifier and Type | Method and Description |
---|---|
static boolean |
alertMod(ReportType type,
Player p,
Cheat c,
int reliability,
String checkName,
String proof)
Try to alert moderator.
|
static boolean |
alertMod(ReportType type,
Player p,
Cheat c,
int reliability,
String checkName,
String proof,
Cheat.CheatHover hover)
Try to alert moderator.
|
static boolean |
alertMod(ReportType type,
Player p,
Cheat c,
int reliability,
String checkName,
String proof,
Cheat.CheatHover hover,
long amount)
Try to alert moderator.
|
static void |
closeNegativity() |
static <T> void |
loadExtensions(Class<T> extensionClass,
Predicate<T> extensionConsumer) |
static void |
loadNegativity()
Load all Negativity's class and content.
|
static void |
sendAlertMessage(NegativityPlayer np,
PlayerCheatAlertEvent alert)
Send alert message to all player which can receive them
If any, the message will keep in cache and showed when someone can see them
If a lot of one, all message are compiled into one (and amount or are additionned)
|
static void |
sendReportMessage(Player reporter,
String reason,
String reported)
If there is a proxy, and we don't are on proxy platform, the message is sent to them.
|
public static boolean log
public static boolean log_console
public static boolean hasBypass
public static boolean tpsDrop
public static boolean alertMod(ReportType type, Player p, Cheat c, int reliability, String checkName, String proof)
type
- the report typep
- the player which have to be reportedc
- the cheat that just detect the playerreliability
- the reliability of the cheatcheckName
- the name of the checkproof
- the proof which will be on proof filepublic static boolean alertMod(ReportType type, Player p, Cheat c, int reliability, String checkName, String proof, Cheat.CheatHover hover)
type
- the report typep
- the player which have to be reportedc
- the cheat that just detect the playerreliability
- the reliability of the cheatcheckName
- the name of the checkproof
- the proof which will be on proof filehover
- the cheatHover see in alertpublic static boolean alertMod(ReportType type, Player p, Cheat c, int reliability, String checkName, String proof, Cheat.CheatHover hover, long amount)
type
- the report typep
- the player which have to be reportedc
- the cheat that just detect the playerreliability
- the reliability of the cheatcheckName
- the name of the checkproof
- the proof which will be on proof filehover
- the cheatHover see in alertamount
- the amount of alertpublic static void sendAlertMessage(NegativityPlayer np, PlayerCheatAlertEvent alert)
np
- the negativity player which create alertalert
- a compiled alertpublic static void sendReportMessage(Player reporter, String reason, String reported)
reporter
- the player which report the other playerreason
- the reason of the reportreported
- the name of the reported playerpublic static void loadNegativity()
public static <T> void loadExtensions(Class<T> extensionClass, Predicate<T> extensionConsumer)
public static void closeNegativity()