public class AltAccountBan extends Object
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
AltAccountBan.BanAltAction  | 
| Constructor and Description | 
|---|
AltAccountBan(int altNb,
             Configuration config)  | 
| Modifier and Type | Method and Description | 
|---|---|
AltAccountBan.BanAltAction | 
getAction()
Get the action of the ban to do with alt 
 | 
@Nullable String | 
getAlertMessage()  | 
int | 
getAltNb()  | 
long | 
getBanTime()
Get the time of ban in milliseconds. 
 | 
HashMap<ReportType,Integer> | 
getConditions()  | 
boolean | 
hasCondition(long warns,
            long violations)
Check if players has enough warn/violations... to be banned 
 | 
boolean | 
isBanDef()
Know if the ban is definitely
 If the ban time is -1, it's a definitive ban 
 | 
public AltAccountBan(int altNb,
                     Configuration config)
public int getAltNb()
public AltAccountBan.BanAltAction getAction()
public HashMap<ReportType,Integer> getConditions()
public @Nullable String getAlertMessage()
public long getBanTime()
public boolean isBanDef()
public boolean hasCondition(long warns,
                            long violations)
warns - the warn of all playersviolations - the violations of all players