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
-
Nested Class Summary
Nested classes/interfaces inherited from interface CommandSender
CommandSender.SpigotNested 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.Audienceaudience()@NotNull CommandSenderReturns the CommandSender which is being used to call the command@NotNull CommandSenderReturns the CommandSender which triggered this proxied commanddefault voidsendMessage(@NotNull net.kyori.adventure.chat.SignedMessage signedMessage, @NotNull net.kyori.adventure.chat.ChatType.Bound boundChatType) default voidsendMessage(@NotNull net.kyori.adventure.text.Component message) default voidsendMessage(@NotNull net.kyori.adventure.text.Component message, @NotNull net.kyori.adventure.chat.ChatType.Bound boundChatType) Methods inherited from interface net.kyori.adventure.audience.Audience
deleteMessage, openBook, openBook, removeResourcePacks, removeResourcePacks, removeResourcePacks, sendActionBar, sendMessage, sendMessage, sendPlayerListFooter, sendPlayerListHeader, sendPlayerListHeaderAndFooter, sendResourcePacks, sendResourcePacks, showTitle, stopSoundMethods inherited from interface CommandSender
getName, getServer, name, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlainMessage, sendRichMessage, sendRichMessage, spigotMethods inherited from interface net.kyori.adventure.audience.ForwardingAudience.Single
audiences, clearResourcePacks, clearTitle, closeDialog, deleteMessage, filterAudience, forEachAudience, get, getOrDefault, getOrDefaultFrom, hideBossBar, openBook, playSound, playSound, playSound, pointers, removeResourcePacks, removeResourcePacks, resetTitle, sendActionBar, sendPlayerListFooter, sendPlayerListHeader, sendPlayerListHeaderAndFooter, sendResourcePacks, sendTitlePart, showBossBar, showDialog, stopSoundMethods inherited from interface Permissible
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, permissionValue, permissionValue, recalculatePermissions, removeAttachmentMethods inherited from interface ServerOperator
isOp, setOp
-
Method Details
-
getCaller
Returns the CommandSender which triggered this proxied command- Returns:
- the caller which triggered the command
- Since:
- 1.8
-
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:
sendMessagein interfacenet.kyori.adventure.audience.Audience- Specified by:
sendMessagein interfaceCommandSender- Specified by:
sendMessagein interfacenet.kyori.adventure.audience.ForwardingAudience- Specified by:
sendMessagein interfacenet.kyori.adventure.audience.ForwardingAudience.Single- Since:
- 26.2
-
sendMessage
default void sendMessage(@NotNull @NotNull net.kyori.adventure.text.Component message) - Specified by:
sendMessagein interfacenet.kyori.adventure.audience.Audience- Specified by:
sendMessagein interfaceCommandSender- Specified by:
sendMessagein interfacenet.kyori.adventure.audience.ForwardingAudience- Specified by:
sendMessagein interfacenet.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:
sendMessagein interfacenet.kyori.adventure.audience.Audience- Specified by:
sendMessagein interfaceCommandSender- Specified by:
sendMessagein interfacenet.kyori.adventure.audience.ForwardingAudience- Specified by:
sendMessagein interfacenet.kyori.adventure.audience.ForwardingAudience.Single- Since:
- 26.2
-
audience
@NotNull default net.kyori.adventure.audience.Audience audience()- Specified by:
audiencein interfacenet.kyori.adventure.audience.ForwardingAudience.Single- Since:
- 1.16.5
-