Package org.bukkit.command
Interface MessageCommandSender
- All Superinterfaces:
- Audience,- CommandSender,- Permissible,- Pointered,- ServerOperator
- All Known Implementing Classes:
- BufferedCommandSender,- TimingsReportListener
For when all you care about is just messaging
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.bukkit.command.CommandSenderCommandSender.Spigot
- 
Method SummaryModifier and TypeMethodDescriptiondefault @NotNull PermissionAttachmentaddAttachment(@NotNull Plugin plugin) Adds a new emptyPermissionAttachmentto this objectdefault @NotNull PermissionAttachmentaddAttachment(@NotNull Plugin plugin, int ticks) Temporarily adds a new emptyPermissionAttachmentto this objectdefault @NotNull PermissionAttachmentaddAttachment(@NotNull Plugin plugin, @NotNull String name, boolean value) Adds a newPermissionAttachmentwith a single permission by name and valuedefault @NotNull PermissionAttachmentaddAttachment(@NotNull Plugin plugin, @NotNull String name, boolean value, int ticks) Temporarily adds a newPermissionAttachmentwith a single permission by name and valuedefault @NotNull Set<PermissionAttachmentInfo>Gets a set containing all of the permissions currently in effect by this objectgetName()Gets the name of this command senderReturns the server instance that this command is running ondefault booleanhasPermission(@NotNull String name) Gets the value of the specified permission, if set.default booleanhasPermission(@NotNull Permission perm) Gets the value of the specified permission, if set.default booleanisOp()Checks if this object is a server operatordefault booleanisPermissionSet(@NotNull String name) Checks if this object contains an override for the specified permission, by fully qualified namedefault booleanChecks if this object contains an override for the specifiedPermissionname()Gets the name of this command senderdefault voidRecalculates the permissions for this object, if the attachments have changed values.default voidremoveAttachment(@NotNull PermissionAttachment attachment) Removes the givenPermissionAttachmentfrom this objectdefault voidsendMessage(@NotNull String[] messages) Sends this sender multiple messagesdefault voidsendMessage(@Nullable UUID sender, @NotNull String message) Sends this sender a messagedefault voidsendMessage(@Nullable UUID sender, @NotNull String[] messages) Sends this sender multiple messagesdefault voidsetOp(boolean value) Sets the operator status of this objectdefault @NotNull CommandSender.Spigotspigot()Methods inherited from interface net.kyori.adventure.audience.AudienceclearTitle, deleteMessage, deleteMessage, filterAudience, forEachAudience, hideBossBar, openBook, openBook, playSound, playSound, playSound, resetTitle, sendActionBar, sendActionBar, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlayerListFooter, sendPlayerListFooter, sendPlayerListHeader, sendPlayerListHeader, sendPlayerListHeaderAndFooter, sendPlayerListHeaderAndFooter, sendTitlePart, showBossBar, showTitle, stopSound, stopSoundMethods inherited from interface org.bukkit.command.CommandSendersendMessage, sendMessage, sendMessage, sendMessage, sendPlainMessage, sendRichMessage, sendRichMessageMethods inherited from interface org.bukkit.permissions.PermissiblepermissionValue, permissionValueMethods inherited from interface net.kyori.adventure.pointer.Pointeredget, getOrDefault, getOrDefaultFrom, pointers
- 
Method Details- 
sendMessageDescription copied from interface:CommandSenderSends this sender multiple messages- Specified by:
- sendMessagein interface- CommandSender
- Parameters:
- messages- An array of messages to be displayed
- See Also:
 
- 
sendMessageDescription copied from interface:CommandSenderSends this sender a message- Specified by:
- sendMessagein interface- CommandSender
- Parameters:
- sender- The sender of this message
- message- Message to be displayed
- See Also:
 
- 
sendMessageDescription copied from interface:CommandSenderSends this sender multiple messages- Specified by:
- sendMessagein interface- CommandSender
- Parameters:
- sender- The sender of this message
- messages- An array of messages to be displayed
- See Also:
 
- 
getServerDescription copied from interface:CommandSenderReturns the server instance that this command is running on- Specified by:
- getServerin interface- CommandSender
- Returns:
- Server instance
 
- 
nameDescription copied from interface:CommandSenderGets the name of this command sender- Specified by:
- namein interface- CommandSender
- Returns:
- Name of the sender
 
- 
getNameDescription copied from interface:CommandSenderGets the name of this command sender- Specified by:
- getNamein interface- CommandSender
- Returns:
- Name of the sender
 
- 
isOpdefault boolean isOp()Description copied from interface:ServerOperatorChecks if this object is a server operator- Specified by:
- isOpin interface- ServerOperator
- Returns:
- true if this is an operator, otherwise false
 
- 
setOpdefault void setOp(boolean value) Description copied from interface:ServerOperatorSets the operator status of this object- Specified by:
- setOpin interface- ServerOperator
- Parameters:
- value- New operator value
 
- 
isPermissionSetDescription copied from interface:PermissibleChecks if this object contains an override for the specified permission, by fully qualified name- Specified by:
- isPermissionSetin interface- Permissible
- Parameters:
- name- Name of the permission
- Returns:
- true if the permission is set, otherwise false
 
- 
isPermissionSetDescription copied from interface:PermissibleChecks if this object contains an override for the specifiedPermission- Specified by:
- isPermissionSetin interface- Permissible
- Parameters:
- perm- Permission to check
- Returns:
- true if the permission is set, otherwise false
 
- 
hasPermissionDescription copied from interface:PermissibleGets the value of the specified permission, if set.If a permission override is not set on this object, the default value of the permission will be returned. - Specified by:
- hasPermissionin interface- Permissible
- Parameters:
- name- Name of the permission
- Returns:
- Value of the permission
 
- 
hasPermissionDescription copied from interface:PermissibleGets the value of the specified permission, if set.If a permission override is not set on this object, the default value of the permission will be returned - Specified by:
- hasPermissionin interface- Permissible
- Parameters:
- perm- Permission to get
- Returns:
- Value of the permission
 
- 
addAttachment@NotNull default @NotNull PermissionAttachment addAttachment(@NotNull @NotNull Plugin plugin, @NotNull @NotNull String name, boolean value) Description copied from interface:PermissibleAdds a newPermissionAttachmentwith a single permission by name and value- Specified by:
- addAttachmentin interface- Permissible
- Parameters:
- plugin- Plugin responsible for this attachment, may not be null or disabled
- name- Name of the permission to attach
- value- Value of the permission
- Returns:
- The PermissionAttachment that was just created
 
- 
addAttachmentDescription copied from interface:PermissibleAdds a new emptyPermissionAttachmentto this object- Specified by:
- addAttachmentin interface- Permissible
- Parameters:
- plugin- Plugin responsible for this attachment, may not be null or disabled
- Returns:
- The PermissionAttachment that was just created
 
- 
addAttachment@NotNull default @NotNull PermissionAttachment addAttachment(@NotNull @NotNull Plugin plugin, @NotNull @NotNull String name, boolean value, int ticks) Description copied from interface:PermissibleTemporarily adds a newPermissionAttachmentwith a single permission by name and value- Specified by:
- addAttachmentin interface- Permissible
- Parameters:
- plugin- Plugin responsible for this attachment, may not be null or disabled
- name- Name of the permission to attach
- value- Value of the permission
- ticks- Amount of ticks to automatically remove this attachment after
- Returns:
- The PermissionAttachment that was just created
 
- 
addAttachment@NotNull default @NotNull PermissionAttachment addAttachment(@NotNull @NotNull Plugin plugin, int ticks) Description copied from interface:PermissibleTemporarily adds a new emptyPermissionAttachmentto this object- Specified by:
- addAttachmentin interface- Permissible
- Parameters:
- plugin- Plugin responsible for this attachment, may not be null or disabled
- ticks- Amount of ticks to automatically remove this attachment after
- Returns:
- The PermissionAttachment that was just created
 
- 
removeAttachmentDescription copied from interface:PermissibleRemoves the givenPermissionAttachmentfrom this object- Specified by:
- removeAttachmentin interface- Permissible
- Parameters:
- attachment- Attachment to remove
 
- 
recalculatePermissionsdefault void recalculatePermissions()Description copied from interface:PermissibleRecalculates the permissions for this object, if the attachments have changed values.This should very rarely need to be called from a plugin. - Specified by:
- recalculatePermissionsin interface- Permissible
 
- 
getEffectivePermissionsDescription copied from interface:PermissibleGets a set containing all of the permissions currently in effect by this object- Specified by:
- getEffectivePermissionsin interface- Permissible
- Returns:
- Set of currently effective permissions
 
- 
spigot- Specified by:
- spigotin interface- CommandSender
 
 
-