Interface ProxiedCommandSender
- All Superinterfaces:
Audience, CommandSender, ForwardingAudience, ForwardingAudience.Single, Permissible, Pointered, ServerOperator
-
Nested Class Summary
Nested classes/interfaces inherited from interface CommandSender
CommandSender.SpigotNested classes/interfaces inherited from interface ForwardingAudience
ForwardingAudience.Single -
Method Summary
Modifier and TypeMethodDescriptiondefault Audienceaudience()Returns the CommandSender which is being used to call the commandReturns the CommandSender which triggered this proxied commanddefault voidsendMessage(@NotNull SignedMessage signedMessage, @NotNull ChatType.Bound boundChatType) default voidsendMessage(@NotNull Component message) default voidsendMessage(@NotNull Component message, @NotNull ChatType.Bound boundChatType) Methods inherited from interface 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 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
-
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 @NotNull Component message, @NotNull ChatType.Bound boundChatType) - Specified by:
sendMessagein interfaceAudience- Specified by:
sendMessagein interfaceCommandSender- Specified by:
sendMessagein interfaceForwardingAudience- Specified by:
sendMessagein interfaceForwardingAudience.Single
-
sendMessage
- Specified by:
sendMessagein interfaceAudience- Specified by:
sendMessagein interfaceCommandSender- Specified by:
sendMessagein interfaceForwardingAudience- Specified by:
sendMessagein interfaceForwardingAudience.Single
-
sendMessage
default void sendMessage(@NotNull @NotNull SignedMessage signedMessage, @NotNull ChatType.Bound boundChatType) - Specified by:
sendMessagein interfaceAudience- Specified by:
sendMessagein interfaceCommandSender- Specified by:
sendMessagein interfaceForwardingAudience- Specified by:
sendMessagein interfaceForwardingAudience.Single
-
audience
- Specified by:
audiencein interfaceForwardingAudience.Single
-