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
Since:
1.8
  • Method Details

    • getCaller

      @NotNull @NotNull CommandSender getCaller()
      Returns the CommandSender which triggered this proxied command
      Returns:
      the caller which triggered the command
      Since:
      1.8
    • getCallee

      @NotNull @NotNull CommandSender getCallee()
      Returns the CommandSender which is being used to call the command
      Returns:
      the caller which the command is being run as
      Since:
      1.8
    • sendMessage

      default void sendMessage(@NotNull @NotNull net.kyori.adventure.text.Component message, @NotNull net.kyori.adventure.chat.ChatType.Bound boundChatType)
      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
      Since:
      26.2
    • sendMessage

      default void sendMessage(@NotNull @NotNull net.kyori.adventure.text.Component message)
      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
      Since:
      26.2
    • sendMessage

      default void sendMessage(@NotNull @NotNull net.kyori.adventure.chat.SignedMessage signedMessage, @NotNull net.kyori.adventure.chat.ChatType.Bound boundChatType)
      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
      Since:
      26.2
    • audience

      @NotNull default net.kyori.adventure.audience.Audience audience()
      Specified by:
      audience in interface net.kyori.adventure.audience.ForwardingAudience.Single
      Since:
      1.16.5