ModuCoreAsyncChatEvent

class ModuCoreAsyncChatEvent(    val player: Player,     val originalMessage: String,     var message: Component,     var recipients: Set<Player>,     val mentionedPlayers: Set<Player>,     var playersToPing: Set<Player>) : ModuCoreCancellableEvent

The Chat Event that ModuCore will call if chat is enabled in the modules.

Parameters

player

the player who sent the message

originalMessage

the original message without markdown formatting

message

the bukkit message with formatting

recipients

the players who will recieve the message

mentionedPlayers

the players that were mentioned in the message using the ChatPing activator

playersToPing

a filtered list of mentionedPlayers that only includes those that have chat pings enabled. this is who the sound will play for.

Constructors

Link copied to clipboard
fun ModuCoreAsyncChatEvent(    player: Player,     originalMessage: String,     message: Component,     recipients: Set<Player>,     mentionedPlayers: Set<Player>,     playersToPing: Set<Player>)

Functions

Link copied to clipboard
open fun callEvent(): Boolean
Link copied to clipboard
@NotNull
open fun getEventName(): @NotNull String
Link copied to clipboard
open override fun getHandlers(): HandlerList
Link copied to clipboard
fun isAsynchronous(): Boolean
Link copied to clipboard
open override fun isCancelled(): Boolean
Link copied to clipboard
open override fun setCancelled(cancel: Boolean)

Properties

Link copied to clipboard
val mentionedPlayers: Set<Player>
Link copied to clipboard
var message: Component
Link copied to clipboard
val originalMessage: String
Link copied to clipboard
val player: Player
Link copied to clipboard
var playersToPing: Set<Player>
Link copied to clipboard
var recipients: Set<Player>