Interface CommandSource
- All Superinterfaces:
Audience, PermissionSubject, Pointered
- All Known Subinterfaces:
ConsoleCommandSource, Player
Represents something that can be used to run a
Command.-
Method Summary
Modifier and TypeMethodDescriptiondefault voidsendPlainMessage(@NotNull String message) Sends a plain message to this source.default voidsendRichMessage(@NotNull String message) Sends a message with the MiniMessage format to this source.default voidsendRichMessage(@NotNull String message, @NotNull TagResolver @NotNull ... resolvers) Sends a message with the MiniMessage format to this source.Methods inherited from interface Audience
clearResourcePacks, clearTitle, closeDialog, deleteMessage, deleteMessage, filterAudience, forEachAudience, hideBossBar, openBook, openBook, openBook, playSound, playSound, playSound, removeResourcePacks, removeResourcePacks, removeResourcePacks, removeResourcePacks, removeResourcePacks, resetTitle, sendActionBar, sendActionBar, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlayerListFooter, sendPlayerListFooter, sendPlayerListHeader, sendPlayerListHeader, sendPlayerListHeaderAndFooter, sendPlayerListHeaderAndFooter, sendResourcePacks, sendResourcePacks, sendResourcePacks, sendTitlePart, showBossBar, showDialog, showTitle, stopSound, stopSoundMethods inherited from interface PermissionSubject
getPermissionChecker, getPermissionValue, hasPermissionMethods inherited from interface Pointered
get, getOrDefault, getOrDefaultFrom, pointers
-
Method Details
-
sendRichMessage
Sends a message with the MiniMessage format to this source.- Parameters:
message- MiniMessage content- See Also:
-
sendRichMessage
default void sendRichMessage(@NotNull @NotNull String message, @NotNull @NotNull TagResolver @NotNull ... resolvers) Sends a message with the MiniMessage format to this source.- Parameters:
message- MiniMessage contentresolvers- resolvers to use- See Also:
-
sendPlainMessage
Sends a plain message to this source.- Parameters:
message- plain message- API Note:
- This method will not apply any form of parse to the text provided, however, it is recommended not to use legacy color codes as this is a deprecated format and not recommended.
-