Package net.minestom.server.command
Interface CommandSender
- All Superinterfaces:
Audience
,Identified
,PermissionHandler
,Pointered
,Taggable
,TagReadable
,TagWritable
- All Known Implementing Classes:
ConsoleSender
,Player
,ServerSender
Represents something which can send commands to the server.
Main implementations are Player
and ConsoleSender
.
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
sendMessage
(@NotNull String message) Sends a raw string message.default void
sendMessage
(@NotNull String @NotNull [] messages) Sends multiple raw string messages.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, resetTitle, sendActionBar, sendActionBar, sendMessage, 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, stopSound
Methods inherited from interface net.kyori.adventure.identity.Identified
identity
Methods inherited from interface net.minestom.server.permission.PermissionHandler
addPermission, getAllPermissions, getPermission, hasPermission, hasPermission, hasPermission, removePermission, removePermission
Methods inherited from interface net.kyori.adventure.pointer.Pointered
get, getOrDefault, getOrDefaultFrom, pointers
-
Method Details
-
sendMessage
Sends a raw string message.- Parameters:
message
- the message to send
-
sendMessage
Sends multiple raw string messages.- Parameters:
messages
- the messages to send
-