Class ServerSender

java.lang.Object
net.minestom.server.command.ServerSender
All Implemented Interfaces:
Audience, Pointered, CommandSender, PermissionHandler, Taggable, TagReadable, TagWritable

public class ServerSender extends Object implements CommandSender
Sender used in CommandManager.executeServerCommand(String).

Although this class implemented CommandSender and thus Audience, no data can be sent to this sender because it's purpose is to process the data of CommandContext.getReturnData().

  • Constructor Details

    • ServerSender

      public ServerSender()
  • Method Details

    • 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