Package org.bukkit.command
Interface ProxiedCommandSender
- All Superinterfaces:
Audience,CommandSender,ForwardingAudience,ForwardingAudience.Single,Permissible,ServerOperator
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.bukkit.command.CommandSender
CommandSender.SpigotNested classes/interfaces inherited from interface net.kyori.adventure.audience.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(Identity source, Component message, 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, sendPlayerListHeaderAndFooterMethods inherited from interface org.bukkit.command.CommandSender
getName, getServer, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, spigotMethods inherited from interface net.kyori.adventure.audience.ForwardingAudience.Single
audiences, clearTitle, hideBossBar, openBook, playSound, playSound, resetTitle, sendActionBar, sendMessage, sendPlayerListFooter, sendPlayerListHeader, sendPlayerListHeaderAndFooter, showBossBar, showTitle, stopSoundMethods inherited from interface org.bukkit.permissions.Permissible
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachmentMethods 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 Identity source, @NotNull Component message, @NotNull MessageType type)- Specified by:
sendMessagein interfaceAudience- Specified by:
sendMessagein interfaceCommandSender- Specified by:
sendMessagein interfaceForwardingAudience- Specified by:
sendMessagein interfaceForwardingAudience.Single
-
audience
- Specified by:
audiencein interfaceForwardingAudience.Single
-