Package dev.jorel.commandapi.wrappers
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.SpigotNested classes/interfaces inherited from interface net.kyori.adventure.audience.ForwardingAudience
net.kyori.adventure.audience.ForwardingAudience.Single -
Method Summary
Modifier and TypeMethodDescriptionstatic NativeProxyCommandSenderfrom(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 CommandListenerWrapperorg.bukkit.LocationReturns the location that this native command sender representsorg.bukkit.WorldgetWorld()Returns the world that this native command sender representsMethods 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, stopSoundMethods inherited from interface org.bukkit.command.CommandSender
getName, getServer, name, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlainMessage, sendRichMessage, sendRichMessage, spigotMethods 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, stopSoundMethods inherited from interface org.bukkit.permissions.Permissible
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, permissionValue, permissionValue, recalculatePermissions, removeAttachmentMethods inherited from interface org.bukkit.command.ProxiedCommandSender
audience, getCallee, getCaller, sendMessageMethods 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 commandcallee- the command sender that will be executing the commandlocation- the proxied location that the command will be run atworld- 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
-