Class KonquestTownRaidEvent
java.lang.Object
org.bukkit.event.Event
com.github.rumsfield.konquest.api.event.KonquestEvent
com.github.rumsfield.konquest.api.event.town.KonquestTownEvent
com.github.rumsfield.konquest.api.event.town.KonquestTownRaidEvent
Called after a town has been attacked, caused by a town raid alert.
This event occurs every time a town raid alert is sent to the town's kingdom members, while the town is under attack.
Raid alerts have cooldown times specified by the Konquest configuration.
A new event is invoked for every raid alert caused by enemy players entering a town, or breaking blocks in the town, while the town is under attack.
This event will not be invoked when KonquestTownAttackEvent
is cancelled.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
ConstructorDescriptionKonquestTownRaidEvent
(KonquestAPI konquest, KonquestTown town, KonquestPlayer attacker) Default constructor -
Method Summary
Modifier and TypeMethodDescriptionGets the attacking player that caused the raid alert.static org.bukkit.event.HandlerList
Get the handler listorg.bukkit.event.HandlerList
Get the handler listMethods inherited from class com.github.rumsfield.konquest.api.event.town.KonquestTownEvent
getTown
Methods inherited from class com.github.rumsfield.konquest.api.event.KonquestEvent
getKonquest
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
KonquestTownRaidEvent
Default constructor- Parameters:
konquest
- The API instancetown
- The townattacker
- The attacking player that caused the raid alert
-
-
Method Details
-
getAttacker
Gets the attacking player that caused the raid alert.- Returns:
- The attacker
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList()Get the handler list- Returns:
- handlers
-
getHandlers
@Nonnull public org.bukkit.event.HandlerList getHandlers()Get the handler list- Specified by:
getHandlers
in classKonquestEvent
- Returns:
- handlers
-