Package net.minestom.server.command
Class ConsoleSender
java.lang.Object
net.minestom.server.command.ConsoleSender
- All Implemented Interfaces:
net.kyori.adventure.audience.Audience,net.kyori.adventure.identity.Identified,net.kyori.adventure.pointer.Pointered,CommandSender,PermissionHandler,Taggable,TagReadable,TagWritable
Represents the console when sending a command to the server.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull Set<Permission> Returns all permissions associated to this handler.@NotNull net.kyori.adventure.identity.Identityidentity()@NotNull net.kyori.adventure.pointer.Pointerspointers()voidsendMessage(@NotNull String message) Sends a raw string message.voidsendMessage(@NotNull net.kyori.adventure.identity.Identity source, @NotNull net.kyori.adventure.text.Component message, @NotNull net.kyori.adventure.audience.MessageType type) @NotNull TagHandlerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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, sendPlayerListFooter, sendPlayerListFooter, sendPlayerListHeader, sendPlayerListHeader, sendPlayerListHeaderAndFooter, sendPlayerListHeaderAndFooter, sendResourcePacks, sendResourcePacks, sendResourcePacks, sendTitlePart, showBossBar, showTitle, stopSound, stopSoundMethods inherited from interface net.minestom.server.command.CommandSender
sendMessageMethods inherited from interface net.minestom.server.permission.PermissionHandler
addPermission, getPermission, hasPermission, hasPermission, hasPermission, removePermission, removePermissionMethods inherited from interface net.kyori.adventure.pointer.Pointered
get, getOrDefault, getOrDefaultFrom
-
Constructor Details
-
ConsoleSender
public ConsoleSender()
-
-
Method Details
-
sendMessage
Description copied from interface:CommandSenderSends a raw string message.- Specified by:
sendMessagein interfaceCommandSender- Parameters:
message- the message to send
-
sendMessage
public void sendMessage(@NotNull @NotNull net.kyori.adventure.identity.Identity source, @NotNull @NotNull net.kyori.adventure.text.Component message, @NotNull @NotNull net.kyori.adventure.audience.MessageType type) - Specified by:
sendMessagein interfacenet.kyori.adventure.audience.Audience
-
getAllPermissions
Description copied from interface:PermissionHandlerReturns all permissions associated to this handler. The returned collection should be modified only by subclasses.- Specified by:
getAllPermissionsin interfacePermissionHandler- Returns:
- the permissions of this handler.
-
tagHandler
- Specified by:
tagHandlerin interfaceTaggable
-
identity
@NotNull public @NotNull net.kyori.adventure.identity.Identity identity()- Specified by:
identityin interfacenet.kyori.adventure.identity.Identified
-
pointers
@NotNull public @NotNull net.kyori.adventure.pointer.Pointers pointers()- Specified by:
pointersin interfacenet.kyori.adventure.pointer.Pointered
-