Package com.massivecraft.factions.event
Class LandClaimEvent
- java.lang.Object
-
- org.bukkit.event.Event
-
- com.massivecraft.factions.event.FactionEvent
-
- com.massivecraft.factions.event.FactionPlayerEvent
-
- com.massivecraft.factions.event.LandClaimEvent
-
- All Implemented Interfaces:
org.bukkit.event.Cancellable
public class LandClaimEvent extends FactionPlayerEvent implements org.bukkit.event.Cancellable
Event called when an FPlayer claims land for a Faction.
-
-
Field Summary
-
Fields inherited from class com.massivecraft.factions.event.FactionPlayerEvent
fPlayer
-
-
Constructor Summary
Constructors Constructor Description LandClaimEvent(FLocation loc, Faction f, FPlayer p)
-
Method Summary
Modifier and Type Method Description java.lang.String
getFactionId()
Deprecated.use getFaction().getId() instead.java.lang.String
getFactionTag()
Deprecated.use getFaction().getTag() instead.FLocation
getLocation()
Get the FLocation involved in this event.org.bukkit.entity.Player
getPlayer()
Deprecated.use getfPlayer().getPlayer() instead.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
-
-
-
-
Method Detail
-
getLocation
public FLocation getLocation()
Get the FLocation involved in this event.- Returns:
- the FLocation (also a chunk) involved in this event.
-
getFactionId
@Deprecated public java.lang.String getFactionId()
Deprecated.use getFaction().getId() instead.Get the id of the faction.- Returns:
- id of faction as String
-
getFactionTag
@Deprecated public java.lang.String getFactionTag()
Deprecated.use getFaction().getTag() instead.Get the tag of the faction.- Returns:
- tag of faction as String
-
getPlayer
@Deprecated public org.bukkit.entity.Player getPlayer()
Deprecated.use getfPlayer().getPlayer() instead.Get the Player involved in this event.- Returns:
- player from FPlayer.
-
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
-
-