public class VerificationManager extends Object
Modifier and Type | Field and Description |
---|---|
static UUID |
CONSOLE |
static boolean |
disableAlertOnVerif |
static int |
timeVerif |
Constructor and Description |
---|
VerificationManager() |
Modifier and Type | Method and Description |
---|---|
static Verificator |
create(UUID asker,
UUID target,
Verificator verificator)
Create a new verification
|
static int |
getTimeVerif()
Get the default time of a verification in ticks
20 tick = 1 second
|
static Collection<Verificator> |
getVerifications(UUID target)
Get all verification of a player
|
static Optional<Verificator> |
getVerificationsFrom(UUID target,
UUID asker)
Get verification of a player made by a specific player
|
static boolean |
hasVerifications(UUID target)
Check if player is currently verified
|
static void |
init()
Load verifications
|
static boolean |
isDisablingAlertOnVerif()
Check if alert are disabled during verif
|
static <T> void |
recordData(UUID target,
Cheat cheat,
VerifData.DataType<T> type,
T value)
Record data for each verificator that the player is currently register on
|
static void |
remove(UUID asker,
UUID target)
Remove the verification of someone
|
public static final UUID CONSOLE
public static int timeVerif
public static boolean disableAlertOnVerif
public static void init()
public static int getTimeVerif()
public static boolean isDisablingAlertOnVerif()
public static Verificator create(UUID asker, UUID target, Verificator verificator)
asker
- the UUID of the player which are the veriftarget
- the UUID of the verified playerverificator
- the verificatorpublic static void remove(UUID asker, UUID target)
asker
- the mod which ask the veriftarget
- the verified playerpublic static boolean hasVerifications(UUID target)
target
- the verified playerpublic static Collection<Verificator> getVerifications(UUID target)
target
- the player which can have verifpublic static Optional<Verificator> getVerificationsFrom(UUID target, UUID asker)
target
- the verified playerasker
- the mod which ask for verifpublic static <T> void recordData(UUID target, Cheat cheat, VerifData.DataType<T> type, T value)
T
- type of what is countedtarget
- the player which create the datacheat
- the cheat which record the datatype
- the type of the datavalue
- the recorded value