public final class AddAdminEvent extends Event implements Cancellable
| Constructor and Description |
|---|
AddAdminEvent(java.lang.String playername,
long playerUID) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getPlayerName()
Gets the name of the player who was added to the admin list.
|
long |
getPlayerUID()
Get the unique ID of the player who was added to the admin list.
|
boolean |
isCancelled()
Determines if the event is cancelled.
|
void |
setCancelled(boolean cancel)
Cancels this event.
|
public long getPlayerUID()
public java.lang.String getPlayerName()
public boolean isCancelled()
CancellableisCancelled in interface Cancellablepublic void setCancelled(boolean cancel)
CancellablesetCancelled in interface Cancellablecancel - set to true if you want to cancel this event.