public abstract class AlertSender extends Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
changeDefaultValue |
protected String |
name |
Constructor and Description |
---|
AlertSender(String name,
boolean changeDefaultValue) |
Modifier and Type | Method and Description |
---|---|
void |
addOne() |
abstract void |
alert(NegativityPlayer np,
PlayerCheatAlertEvent alert) |
boolean |
canChangeDefaultValue() |
void |
config(Configuration config) |
static AlertSender |
getAlertShower() |
static AlertSender |
getAlertShowerOfTypeName(String type) |
static List<AlertSender> |
getAllAlertSender() |
int |
getDefaultValue() |
String |
getName() |
String |
getShowedValue() |
int |
getValue() |
static void |
initAlertShower(Adapter ada) |
static void |
refreshAlertShower(Adapter ada,
AlertSender newShower) |
void |
removeOne() |
abstract void |
save() |
static void |
setAlertShower(AlertSender shower) |
static void |
setAlertShower(String type) |
void |
stop() |
protected final String name
protected final boolean changeDefaultValue
public AlertSender(String name, boolean changeDefaultValue)
public String getName()
public boolean canChangeDefaultValue()
public int getDefaultValue()
public void addOne()
public void removeOne()
public String getShowedValue()
public int getValue()
public abstract void save()
public void config(Configuration config)
public void stop()
public abstract void alert(NegativityPlayer np, PlayerCheatAlertEvent alert)
public static AlertSender getAlertShower()
public static AlertSender getAlertShowerOfTypeName(String type)
public static void initAlertShower(Adapter ada)
public static void refreshAlertShower(Adapter ada, AlertSender newShower)
public static void setAlertShower(String type)
public static void setAlertShower(AlertSender shower)
public static List<AlertSender> getAllAlertSender()