Package com.massivecraft.factions.event
Class FPlayerJoinEvent
- java.lang.Object
-
- org.bukkit.event.Event
-
- com.massivecraft.factions.event.FactionEvent
-
- com.massivecraft.factions.event.FactionPlayerEvent
-
- com.massivecraft.factions.event.FPlayerJoinEvent
-
- All Implemented Interfaces:
org.bukkit.event.Cancellable
public class FPlayerJoinEvent extends FactionPlayerEvent implements org.bukkit.event.Cancellable
Event called when an FPlayer joins a Faction.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FPlayerJoinEvent.PlayerJoinReason
-
Field Summary
Fields Modifier and Type Field Description (package private) boolean
cancelled
(package private) FPlayerJoinEvent.PlayerJoinReason
reason
-
Fields inherited from class com.massivecraft.factions.event.FactionPlayerEvent
fPlayer
-
-
Constructor Summary
Constructors Constructor Description FPlayerJoinEvent(FPlayer fp, Faction f, FPlayerJoinEvent.PlayerJoinReason r)
-
Method Summary
Modifier and Type Method Description FPlayerJoinEvent.PlayerJoinReason
getReason()
Get the reason the player joined the faction.boolean
isCancelled()
void
setCancelled(boolean c)
-
Methods inherited from class com.massivecraft.factions.event.FactionPlayerEvent
getfPlayer
-
Methods inherited from class com.massivecraft.factions.event.FactionEvent
getFaction, getHandlerList, getHandlers
-
-
-
-
Field Detail
-
reason
FPlayerJoinEvent.PlayerJoinReason reason
-
cancelled
boolean cancelled
-
-
Constructor Detail
-
FPlayerJoinEvent
public FPlayerJoinEvent(FPlayer fp, Faction f, FPlayerJoinEvent.PlayerJoinReason r)
-
-
Method Detail
-
getReason
public FPlayerJoinEvent.PlayerJoinReason getReason()
Get the reason the player joined the faction.- Returns:
- reason player joined the faction.
-
isCancelled
public boolean isCancelled()
- Specified by:
isCancelled
in interfaceorg.bukkit.event.Cancellable
-
setCancelled
public void setCancelled(boolean c)
- Specified by:
setCancelled
in interfaceorg.bukkit.event.Cancellable
-
-