Class CreativeChatEvent

java.lang.Object
org.bukkit.event.Event
ua.mcchickenstudio.opencreative.events.CreativeEvent
ua.mcchickenstudio.opencreative.events.player.CreativeChatEvent
All Implemented Interfaces:
org.bukkit.event.Cancellable

public class CreativeChatEvent extends CreativeEvent implements org.bukkit.event.Cancellable
Called when player or console sends message in creative chat.

If a Creative Chat event is cancelled, it will not send a message.

See Also:
  • Constructor Details

    • CreativeChatEvent

      public CreativeChatEvent(@NotNull @NotNull org.bukkit.command.CommandSender sender, @NotNull @NotNull String message, @NotNull @NotNull net.kyori.adventure.text.Component formattedMessage)
  • Method Details

    • getFormattedMessage

      @NotNull public @NotNull net.kyori.adventure.text.Component getFormattedMessage()
    • setFormattedMessage

      public void setFormattedMessage(@NotNull @NotNull net.kyori.adventure.text.Component formattedMessage)
    • getMessage

      @NotNull public @NotNull String getMessage()
    • getSender

      @NotNull public @NotNull org.bukkit.command.CommandSender getSender()
    • isCancelled

      public boolean isCancelled()
      Specified by:
      isCancelled in interface org.bukkit.event.Cancellable
    • setCancelled

      public void setCancelled(boolean cancel)
      Specified by:
      setCancelled in interface org.bukkit.event.Cancellable