public class PlayerPermissionGroupChangeEvent extends PlayerEvent implements Cancellable
| Constructor and Description |
|---|
PlayerPermissionGroupChangeEvent(Player player,
java.lang.String oldGroup,
java.lang.String newGroup) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getNewPermissionGroup()
Gets the name of the new permission group (the player will be assigned to).
|
java.lang.String |
getPreviousPermissionGroup()
Gets the old permission group of the player.
|
boolean |
isCancelled()
Determines if the event is cancelled.
|
void |
setCancelled(boolean cancel)
Cancels this event.
|
void |
setNewPermissionGroup(java.lang.String group)
Changes the target permission group for the player.
|
getPlayerpublic PlayerPermissionGroupChangeEvent(Player player, java.lang.String oldGroup, java.lang.String newGroup)
public java.lang.String getNewPermissionGroup()
public java.lang.String getPreviousPermissionGroup()
public void setNewPermissionGroup(java.lang.String group)
group - the new group name.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.