ModuCoreSignCommandEvent

class ModuCoreSignCommandEvent(    val sender: CommandSender,     val command: String,     val actualCommand: Component,     val signClicked: Sign,     val interactEvent: PlayerInteractEvent) : ModuCoreCancellableEvent

An event called when a player clicks a sign to run a command.

Parameters

sender

the player/consolesender that ran the command. you can use an instanceOf check to see whether console or a player ran the command

command

the command that was ran by the player, completely unmodified.

actualCommand

the command that was ran by the player, colorized and with placeholders replaced appropriately

signClicked

the sign the player clicked. can be used to get coordinates/location, etc etc

interactEvent

the rest of the event data if you want it for any reason

Constructors

Link copied to clipboard
fun ModuCoreSignCommandEvent(    sender: CommandSender,     command: String,     actualCommand: Component,     signClicked: Sign,     interactEvent: PlayerInteractEvent)

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 actualCommand: Component
Link copied to clipboard
val command: String
Link copied to clipboard
val interactEvent: PlayerInteractEvent
Link copied to clipboard
val sender: CommandSender
Link copied to clipboard
val signClicked: Sign