Interface NativeProxyCommandSender

All Superinterfaces:
net.kyori.adventure.audience.Audience, org.bukkit.command.CommandSender, net.kyori.adventure.audience.ForwardingAudience, net.kyori.adventure.audience.ForwardingAudience.Single, org.bukkit.permissions.Permissible, net.kyori.adventure.pointer.Pointered, org.bukkit.command.ProxiedCommandSender, org.bukkit.permissions.ServerOperator

public interface NativeProxyCommandSender extends org.bukkit.command.ProxiedCommandSender
A simple representation of Minecraft's CommandListenerWrapper, in the form of Bukkit's ProxiedCommandSender
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.bukkit.command.CommandSender

    org.bukkit.command.CommandSender.Spigot

    Nested classes/interfaces inherited from interface net.kyori.adventure.audience.ForwardingAudience

    net.kyori.adventure.audience.ForwardingAudience.Single
  • Method Summary

    Modifier and Type
    Method
    Description
    from(org.bukkit.command.CommandSender caller, org.bukkit.command.CommandSender callee, org.bukkit.Location location, org.bukkit.World world)
    Constructs a NativeProxyCommandSender, which is basically Minecraft's CommandListenerWrapper
    org.bukkit.Location
    Returns the location that this native command sender represents
    org.bukkit.World
    Returns the world that this native command sender represents

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

    deleteMessage, openBook, sendActionBar, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlayerListFooter, sendPlayerListHeader, sendPlayerListHeaderAndFooter, showTitle, stopSound

    Methods inherited from interface org.bukkit.command.CommandSender

    getName, getServer, name, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlainMessage, sendRichMessage, sendRichMessage, spigot

    Methods inherited from interface net.kyori.adventure.audience.ForwardingAudience.Single

    audiences, clearTitle, deleteMessage, filterAudience, forEachAudience, get, getOrDefault, getOrDefaultFrom, hideBossBar, openBook, playSound, playSound, playSound, pointers, resetTitle, sendActionBar, sendMessage, sendMessage, sendMessage, sendMessage, sendPlayerListFooter, sendPlayerListHeader, sendPlayerListHeaderAndFooter, sendTitlePart, showBossBar, stopSound

    Methods inherited from interface org.bukkit.permissions.Permissible

    addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, permissionValue, permissionValue, recalculatePermissions, removeAttachment

    Methods inherited from interface org.bukkit.command.ProxiedCommandSender

    audience, getCallee, getCaller, sendMessage

    Methods inherited from interface org.bukkit.permissions.ServerOperator

    isOp, setOp
  • Method Details

    • from

      static NativeProxyCommandSender from(org.bukkit.command.CommandSender caller, org.bukkit.command.CommandSender callee, org.bukkit.Location location, org.bukkit.World world)
      Constructs a NativeProxyCommandSender, which is basically Minecraft's CommandListenerWrapper
      Parameters:
      caller - the command sender that actually sent the command
      callee - the command sender that will be executing the command
      location - the proxied location that the command will be run at
      world - the proxied world that the command will be run in
    • getLocation

      org.bukkit.Location getLocation()
      Returns the location that this native command sender represents
      Returns:
      the location that this native command sender represents
    • getWorld

      org.bukkit.World getWorld()
      Returns the world that this native command sender represents
      Returns:
      the world that this native command sender represents