Class ConsoleSender

java.lang.Object
net.minestom.server.command.ConsoleSender
All Implemented Interfaces:
CommandSender, PermissionHandler

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

  • Method Details

    • sendMessage

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

      @NotNull public java.util.Collection<Permission> getAllPermissions()
      Description copied from interface: PermissionHandler
      Returns all permissions associated to this command sender. The returned collection should be modified only by subclasses.
      Specified by:
      getAllPermissions in interface PermissionHandler
      Returns:
      the permissions of this command sender.