Package org.bukkit.command
Interface MessageCommandSender
- All Superinterfaces:
Audience,CommandSender,Permissible,Pointered,ServerOperator
- All Known Implementing Classes:
BufferedCommandSender,TimingsReportListener
Deprecated, for removal: This API element is subject to removal in a future version.
Timings will be removed in the future
For when all you care about is just messaging
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.bukkit.command.CommandSender
CommandSender.Spigot -
Method Summary
Modifier and TypeMethodDescriptiondefault @NotNull PermissionAttachmentaddAttachment(@NotNull Plugin plugin) Deprecated, for removal: This API element is subject to removal in a future version.Adds a new emptyPermissionAttachmentto this objectdefault @NotNull PermissionAttachmentaddAttachment(@NotNull Plugin plugin, int ticks) Deprecated, for removal: This API element is subject to removal in a future version.Temporarily adds a new emptyPermissionAttachmentto this objectdefault @NotNull PermissionAttachmentaddAttachment(@NotNull Plugin plugin, @NotNull String name, boolean value) Deprecated, for removal: This API element is subject to removal in a future version.Adds a newPermissionAttachmentwith a single permission by name and valuedefault @NotNull PermissionAttachmentaddAttachment(@NotNull Plugin plugin, @NotNull String name, boolean value, int ticks) Deprecated, for removal: This API element is subject to removal in a future version.Temporarily adds a newPermissionAttachmentwith a single permission by name and valuedefault @NotNull Set<PermissionAttachmentInfo> Deprecated, for removal: This API element is subject to removal in a future version.Gets a set containing all of the permissions currently in effect by this objectgetName()Deprecated, for removal: This API element is subject to removal in a future version.Gets the name of this command senderDeprecated, for removal: This API element is subject to removal in a future version.Returns the server instance that this command is running ondefault booleanhasPermission(@NotNull String name) Deprecated, for removal: This API element is subject to removal in a future version.Gets the value of the specified permission, if set.default booleanhasPermission(@NotNull Permission perm) Deprecated, for removal: This API element is subject to removal in a future version.Gets the value of the specified permission, if set.default booleanisOp()Deprecated, for removal: This API element is subject to removal in a future version.Checks if this object is a server operatordefault booleanisPermissionSet(@NotNull String name) Deprecated, for removal: This API element is subject to removal in a future version.Checks if this object contains an override for the specified permission, by fully qualified namedefault booleanDeprecated, for removal: This API element is subject to removal in a future version.Checks if this object contains an override for the specifiedPermissionname()Deprecated, for removal: This API element is subject to removal in a future version.Gets the name of this command senderdefault voidDeprecated, for removal: This API element is subject to removal in a future version.Recalculates the permissions for this object, if the attachments have changed values.default voidremoveAttachment(@NotNull PermissionAttachment attachment) Deprecated, for removal: This API element is subject to removal in a future version.Removes the givenPermissionAttachmentfrom this objectdefault voidsendMessage(@NotNull String[] messages) Deprecated, for removal: This API element is subject to removal in a future version.Sends this sender multiple messagesdefault voidsendMessage(@Nullable UUID sender, @NotNull String message) Deprecated, for removal: This API element is subject to removal in a future version.Sends this sender a messagedefault voidsendMessage(@Nullable UUID sender, @NotNull String[] messages) Deprecated, for removal: This API element is subject to removal in a future version.Sends this sender multiple messagesdefault voidsetOp(boolean value) Deprecated, for removal: This API element is subject to removal in a future version.Sets the operator status of this objectdefault @NotNull CommandSender.Spigotspigot()Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from interface net.kyori.adventure.audience.Audience
clearResourcePacks, clearTitle, deleteMessage, deleteMessage, filterAudience, forEachAudience, hideBossBar, openBook, openBook, playSound, playSound, playSound, removeResourcePacks, removeResourcePacks, removeResourcePacks, removeResourcePacks, removeResourcePacks, resetTitle, sendActionBar, sendActionBar, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlayerListFooter, sendPlayerListFooter, sendPlayerListHeader, sendPlayerListHeader, sendPlayerListHeaderAndFooter, sendPlayerListHeaderAndFooter, sendResourcePacks, sendResourcePacks, sendResourcePacks, sendTitlePart, showBossBar, showTitle, stopSound, stopSoundMethods inherited from interface org.bukkit.command.CommandSender
sendMessage, sendMessage, sendMessage, sendMessage, sendPlainMessage, sendRichMessage, sendRichMessageMethods inherited from interface org.bukkit.permissions.Permissible
permissionValue, permissionValueMethods inherited from interface net.kyori.adventure.pointer.Pointered
get, getOrDefault, getOrDefaultFrom, pointers
-
Method Details
-
sendMessage
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:CommandSenderSends this sender multiple messages- Specified by:
sendMessagein interfaceCommandSender- Parameters:
messages- An array of messages to be displayed- See Also:
-
sendMessage
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:CommandSenderSends this sender a message- Specified by:
sendMessagein interfaceCommandSender- Parameters:
sender- The sender of this messagemessage- Message to be displayed- See Also:
-
sendMessage
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:CommandSenderSends this sender multiple messages- Specified by:
sendMessagein interfaceCommandSender- Parameters:
sender- The sender of this messagemessages- An array of messages to be displayed- See Also:
-
getServer
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:CommandSenderReturns the server instance that this command is running on- Specified by:
getServerin interfaceCommandSender- Returns:
- Server instance
-
name
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:CommandSenderGets the name of this command sender- Specified by:
namein interfaceCommandSender- Returns:
- Name of the sender
-
getName
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:CommandSenderGets the name of this command sender- Specified by:
getNamein interfaceCommandSender- Returns:
- Name of the sender
-
isOp
default boolean isOp()Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ServerOperatorChecks if this object is a server operator- Specified by:
isOpin interfaceServerOperator- Returns:
- true if this is an operator, otherwise false
-
setOp
default void setOp(boolean value) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:ServerOperatorSets the operator status of this object- Specified by:
setOpin interfaceServerOperator- Parameters:
value- New operator value
-
isPermissionSet
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:PermissibleChecks if this object contains an override for the specified permission, by fully qualified name- Specified by:
isPermissionSetin interfacePermissible- Parameters:
name- Name of the permission- Returns:
- true if the permission is set, otherwise false
-
isPermissionSet
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:PermissibleChecks if this object contains an override for the specifiedPermission- Specified by:
isPermissionSetin interfacePermissible- Parameters:
perm- Permission to check- Returns:
- true if the permission is set, otherwise false
-
hasPermission
Deprecated, for removal: This API element is subject to removal in a future version.Description 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 interfacePermissible- Parameters:
name- Name of the permission- Returns:
- Value of the permission
-
hasPermission
Deprecated, for removal: This API element is subject to removal in a future version.Description 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 interfacePermissible- 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) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:PermissibleAdds a newPermissionAttachmentwith a single permission by name and value- Specified by:
addAttachmentin interfacePermissible- Parameters:
plugin- Plugin responsible for this attachment, may not be null or disabledname- Name of the permission to attachvalue- Value of the permission- Returns:
- The PermissionAttachment that was just created
-
addAttachment
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:PermissibleAdds a new emptyPermissionAttachmentto this object- Specified by:
addAttachmentin interfacePermissible- 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) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:PermissibleTemporarily adds a newPermissionAttachmentwith a single permission by name and value- Specified by:
addAttachmentin interfacePermissible- Parameters:
plugin- Plugin responsible for this attachment, may not be null or disabledname- Name of the permission to attachvalue- Value of the permissionticks- 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) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:PermissibleTemporarily adds a new emptyPermissionAttachmentto this object- Specified by:
addAttachmentin interfacePermissible- Parameters:
plugin- Plugin responsible for this attachment, may not be null or disabledticks- Amount of ticks to automatically remove this attachment after- Returns:
- The PermissionAttachment that was just created
-
removeAttachment
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:PermissibleRemoves the givenPermissionAttachmentfrom this object- Specified by:
removeAttachmentin interfacePermissible- Parameters:
attachment- Attachment to remove
-
recalculatePermissions
default void recalculatePermissions()Deprecated, for removal: This API element is subject to removal in a future version.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 interfacePermissible
-
getEffectivePermissions
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:PermissibleGets a set containing all of the permissions currently in effect by this object- Specified by:
getEffectivePermissionsin interfacePermissible- Returns:
- Set of currently effective permissions
-
spigot
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
spigotin interfaceCommandSender
-