Package com.massivecraft.factions.event
Class FPlayerRoleChangeEvent
- java.lang.Object
-
- org.bukkit.event.Event
-
- com.massivecraft.factions.event.FactionEvent
-
- com.massivecraft.factions.event.FactionPlayerEvent
-
- com.massivecraft.factions.event.FPlayerRoleChangeEvent
-
- All Implemented Interfaces:
org.bukkit.event.Cancellable
public class FPlayerRoleChangeEvent extends FactionPlayerEvent implements org.bukkit.event.Cancellable
RepresentsRole
change of a factions player- See Also:
FPlayer.getRole()
-
-
Field Summary
-
Fields inherited from class com.massivecraft.factions.event.FactionPlayerEvent
fPlayer
-
-
Constructor Summary
Constructors Constructor Description FPlayerRoleChangeEvent(Faction faction, FPlayer fPlayer, Role to)
FPlayerRoleChangeEvent(Faction faction, FPlayer fPlayer, Role from, Role to)
-
Method Summary
Modifier and Type Method Description Role
getFrom()
Role
getTo()
boolean
isCancelled()
void
setCancelled(boolean cancelled)
void
setTo(Role to)
-
Methods inherited from class com.massivecraft.factions.event.FactionPlayerEvent
getfPlayer
-
Methods inherited from class com.massivecraft.factions.event.FactionEvent
getFaction, getHandlerList, getHandlers
-
-
-
-
Method Detail
-
isCancelled
public boolean isCancelled()
- Specified by:
isCancelled
in interfaceorg.bukkit.event.Cancellable
-
setCancelled
public void setCancelled(boolean cancelled)
- Specified by:
setCancelled
in interfaceorg.bukkit.event.Cancellable
-
getFrom
public Role getFrom()
-
getTo
public Role getTo()
-
setTo
public void setTo(Role to)
-
-