GuildWarChallengeEvent

class GuildWarChallengeEvent(player: Player, val challenger: Guild, val defender: Guild) : GuildEvent(source)

An event that is called when a guild war challenge request is initiated.

Constructors

Link copied to clipboard
fun GuildWarChallengeEvent(player: Player, challenger: Guild, defender: Guild)

Creates a new GuildWarChallengeEvent with the given player, challenger and defender.

Functions

Link copied to clipboard
@NotNull
open fun getEventName(): String
Link copied to clipboard
open override fun getHandlers(): HandlerList

Returns the list of handlers, through which this event is passed.

Link copied to clipboard
@NotNull
fun getPlayer(): Player
Link copied to clipboard
Link copied to clipboard
open override fun isCancelled(): Boolean

Returns whether this event is cancelled or not.

Link copied to clipboard
open override fun setCancelled(cancelled: Boolean)

Sets whether this event is cancelled or not.

Properties

Link copied to clipboard

the guild who initiated the request

Link copied to clipboard

the guild who the request is sent to

Link copied to clipboard

the guild that is involved in the event