GuildKickEvent

class GuildKickEvent(player: Player, val guild: Guild, val kicked: OfflinePlayer, val cause: GuildKickEvent.Cause) : GuildEvent(source)

Class representing an event that occurs when a player is kicked from a guild.

Constructors

Link copied to clipboard
fun GuildKickEvent(player: Player, guild: Guild, kicked: OfflinePlayer, cause: GuildKickEvent.Cause)

Creates a new GuildKickEvent.

Types

Link copied to clipboard

Enumeration class representing the possible reasons a player may be kicked from a guild.

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 reason for the player being kicked

Link copied to clipboard

the guild that is involved in the event

Link copied to clipboard
val kicked: OfflinePlayer

the player who was kicked