Package org.bukkit.command
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
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.bukkit.command.CommandSender
CommandSender.Spigot
Nested classes/interfaces inherited from interface net.kyori.adventure.audience.ForwardingAudience
net.kyori.adventure.audience.ForwardingAudience.Single
-
Method Summary
Modifier and TypeMethodDescriptiondefault net.kyori.adventure.audience.Audience
audience()
Returns the CommandSender which is being used to call the commandReturns the CommandSender which triggered this proxied commanddefault void
sendMessage(net.kyori.adventure.identity.Identity source, net.kyori.adventure.text.Component message, net.kyori.adventure.audience.MessageType type)
Methods inherited from interface net.kyori.adventure.audience.Audience
openBook, sendActionBar, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlayerListFooter, sendPlayerListHeader, sendPlayerListHeaderAndFooter, stopSound
Methods inherited from interface org.bukkit.command.CommandSender
getName, getServer, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, spigot
Methods inherited from interface net.kyori.adventure.audience.ForwardingAudience.Single
audiences, clearTitle, get, getOrDefault, getOrDefaultFrom, hideBossBar, openBook, playSound, playSound, playSound, resetTitle, sendActionBar, sendMessage, sendPlayerListFooter, sendPlayerListHeader, sendPlayerListHeaderAndFooter, showBossBar, showTitle, stopSound
Methods inherited from interface org.bukkit.permissions.Permissible
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachment
Methods inherited from interface net.kyori.adventure.pointer.Pointered
pointers
Methods inherited from interface org.bukkit.permissions.ServerOperator
isOp, setOp
-
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)- Specified by:
sendMessage
in interfacenet.kyori.adventure.audience.Audience
- Specified by:
sendMessage
in interfaceCommandSender
- Specified by:
sendMessage
in interfacenet.kyori.adventure.audience.ForwardingAudience
- Specified by:
sendMessage
in interfacenet.kyori.adventure.audience.ForwardingAudience.Single
-
audience
- Specified by:
audience
in interfacenet.kyori.adventure.audience.ForwardingAudience.Single
-