| Enum Constant and Description |
|---|
BAN |
BANIP |
COMMAND |
KICK |
MUTE |
NOTHING |
TEMPBAN |
TEMPBANIP |
TEMPMUTE |
UNBAN |
UNBAN_IP |
UNMUTE |
WARNING |
| Modifier and Type | Method and Description |
|---|---|
static void |
broadcastMessage(java.lang.Enum<Action> action,
java.lang.String message)
This method is simply to announce the action done by a warning increment.
|
static void |
notifyPlayer(java.lang.Enum<Action> action,
org.bukkit.entity.Player player,
java.lang.String message)
Used in the process of notifying players..
|
static Action |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Action[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Action KICK
public static final Action BAN
public static final Action MUTE
public static final Action TEMPBAN
public static final Action BANIP
public static final Action TEMPBANIP
public static final Action NOTHING
public static final Action TEMPMUTE
public static final Action UNBAN
public static final Action UNMUTE
public static final Action WARNING
public static final Action COMMAND
public static final Action UNBAN_IP
public static Action[] values()
for (Action c : Action.values()) System.out.println(c);
public static Action valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static void broadcastMessage(java.lang.Enum<Action> action, java.lang.String message)
action - message - public static void notifyPlayer(java.lang.Enum<Action> action, org.bukkit.entity.Player player, java.lang.String message)
action - The action being taken against that player in the case that they need to be notified about itplayer - The player to check for permissions and to send the messagemessage - The message to send if everything checks out