Package net.minestom.server.command
Class ConsoleSender
java.lang.Object
net.minestom.server.command.ConsoleSender
- All Implemented Interfaces:
CommandSender
,PermissionHandler
public class ConsoleSender extends java.lang.Object implements CommandSender
Represents the console when sending a command to the server.
-
Constructor Summary
Constructors Constructor Description ConsoleSender()
-
Method Summary
Modifier and Type Method Description java.util.Collection<Permission>
getAllPermissions()
Returns all permissions associated to this command sender.void
sendMessage(java.lang.String message)
Sends a raw string message.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minestom.server.command.CommandSender
asConsole, asPlayer, isConsole, isPlayer, sendMessage
Methods inherited from interface net.minestom.server.permission.PermissionHandler
addPermission, hasPermission, hasPermission, hasPermission, hasPermission, removePermission
-
Constructor Details
-
ConsoleSender
public ConsoleSender()
-
-
Method Details
-
sendMessage
public void sendMessage(@NotNull java.lang.String message)Description copied from interface:CommandSender
Sends a raw string message.- Specified by:
sendMessage
in interfaceCommandSender
- Parameters:
message
- the message to send
-
getAllPermissions
Description copied from interface:PermissionHandler
Returns all permissions associated to this command sender. The returned collection should be modified only by subclasses.- Specified by:
getAllPermissions
in interfacePermissionHandler
- Returns:
- the permissions of this command sender.
-