Interface ProxiedCommandSender

All Superinterfaces:
net.kyori.adventure.audience.Audience, CommandSender, net.kyori.adventure.audience.ForwardingAudience, net.kyori.adventure.audience.ForwardingAudience.Single, Permissible, net.kyori.adventure.pointer.Pointered, ServerOperator

public interface ProxiedCommandSender extends CommandSender, net.kyori.adventure.audience.ForwardingAudience.Single
  • Method Details

    • getCaller

      Returns the CommandSender which triggered this proxied command
      Returns:
      the caller which triggered the command
    • getCallee

      Returns the CommandSender which is being used to call the command
      Returns:
      the caller which the command is being run as
    • sendMessage

      default void sendMessage(@NotNull net.kyori.adventure.identity.Identity source, @NotNull net.kyori.adventure.text.Component message, @NotNull net.kyori.adventure.audience.MessageType type)
      Description copied from interface: net.kyori.adventure.audience.Audience
      Sends a player chat message from the entity represented by the given Identity to this Audience with the ChatType corresponding to the provided MessageType.
      Specified by:
      sendMessage in interface net.kyori.adventure.audience.Audience
      Specified by:
      sendMessage in interface CommandSender
      Specified by:
      sendMessage in interface net.kyori.adventure.audience.ForwardingAudience
      Specified by:
      sendMessage in interface net.kyori.adventure.audience.ForwardingAudience.Single
      Parameters:
      source - the identity of the source of the message
      message - a message
      type - the type
      See Also:
      • Component
    • audience

      @NotNull default net.kyori.adventure.audience.Audience audience()
      Description copied from interface: net.kyori.adventure.audience.ForwardingAudience.Single
      Gets the audience.
      Specified by:
      audience in interface net.kyori.adventure.audience.ForwardingAudience.Single
      Returns:
      the audience