Class ConsoleSender

java.lang.Object
net.minestom.server.command.ConsoleSender
All Implemented Interfaces:
net.kyori.adventure.audience.Audience, net.kyori.adventure.identity.Identified, net.kyori.adventure.pointer.Pointered, CommandSender, PermissionHandler, Taggable, TagReadable, TagWritable

public class ConsoleSender extends Object implements CommandSender
Represents the console when sending a command to the server.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull Set<Permission>
    Returns all permissions associated to this handler.
    @NotNull net.kyori.adventure.identity.Identity
     
    @NotNull net.kyori.adventure.pointer.Pointers
     
    void
    sendMessage(@NotNull String message)
    Sends a raw string message.
    void
    sendMessage(@NotNull net.kyori.adventure.identity.Identity source, @NotNull net.kyori.adventure.text.Component message, @NotNull net.kyori.adventure.audience.MessageType type)
     
    @NotNull TagHandler
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.kyori.adventure.audience.Audience

    clearResourcePacks, clearTitle, deleteMessage, deleteMessage, filterAudience, forEachAudience, hideBossBar, openBook, openBook, playSound, playSound, playSound, removeResourcePacks, removeResourcePacks, removeResourcePacks, removeResourcePacks, resetTitle, sendActionBar, sendActionBar, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlayerListFooter, sendPlayerListFooter, sendPlayerListHeader, sendPlayerListHeader, sendPlayerListHeaderAndFooter, sendPlayerListHeaderAndFooter, sendResourcePacks, sendResourcePacks, sendResourcePacks, sendTitlePart, showBossBar, showTitle, stopSound, stopSound

    Methods inherited from interface net.minestom.server.command.CommandSender

    sendMessage

    Methods inherited from interface net.minestom.server.permission.PermissionHandler

    addPermission, getPermission, hasPermission, hasPermission, hasPermission, removePermission, removePermission

    Methods inherited from interface net.kyori.adventure.pointer.Pointered

    get, getOrDefault, getOrDefaultFrom

    Methods inherited from interface net.minestom.server.tag.Taggable

    getTag, hasTag, removeTag, setTag
  • Constructor Details

    • ConsoleSender

      public ConsoleSender()
  • Method Details

    • sendMessage

      public void sendMessage(@NotNull @NotNull String message)
      Description copied from interface: CommandSender
      Sends a raw string message.
      Specified by:
      sendMessage in interface CommandSender
      Parameters:
      message - the message to send
    • sendMessage

      public void sendMessage(@NotNull @NotNull net.kyori.adventure.identity.Identity source, @NotNull @NotNull net.kyori.adventure.text.Component message, @NotNull @NotNull net.kyori.adventure.audience.MessageType type)
      Specified by:
      sendMessage in interface net.kyori.adventure.audience.Audience
    • getAllPermissions

      @NotNull public @NotNull Set<Permission> getAllPermissions()
      Description copied from interface: PermissionHandler
      Returns all permissions associated to this handler. The returned collection should be modified only by subclasses.
      Specified by:
      getAllPermissions in interface PermissionHandler
      Returns:
      the permissions of this handler.
    • tagHandler

      @NotNull public @NotNull TagHandler tagHandler()
      Specified by:
      tagHandler in interface Taggable
    • identity

      @NotNull public @NotNull net.kyori.adventure.identity.Identity identity()
      Specified by:
      identity in interface net.kyori.adventure.identity.Identified
    • pointers

      @NotNull public @NotNull net.kyori.adventure.pointer.Pointers pointers()
      Specified by:
      pointers in interface net.kyori.adventure.pointer.Pointered