Package de.dytanic.cloudnet.command
Class ConsoleCommandSender
- java.lang.Object
-
- de.dytanic.cloudnet.command.ConsoleCommandSender
-
- All Implemented Interfaces:
ICommandSender
public final class ConsoleCommandSender extends java.lang.Object implements ICommandSender
The ConsoleCommandSender represents the console of the application. The console has all needed permissions.
-
-
Constructor Summary
Constructors Constructor Description ConsoleCommandSender(de.dytanic.cloudnet.common.logging.ILogger logger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetName()The console name is the codename of the current CloudNet versionbooleanhasPermission(java.lang.String permission)The console as always the permission for by every requestvoidsendMessage(java.lang.String message)Sends a message to the specific sender implementationvoidsendMessage(java.lang.String... messages)Send the messages to the specific sender implementation
-
-
-
Method Detail
-
getName
public java.lang.String getName()
The console name is the codename of the current CloudNet version- Specified by:
getNamein interfaceICommandSender
-
sendMessage
public void sendMessage(java.lang.String message)
Description copied from interface:ICommandSenderSends a message to the specific sender implementation- Specified by:
sendMessagein interfaceICommandSender- Parameters:
message- that should send
-
sendMessage
public void sendMessage(java.lang.String... messages)
Description copied from interface:ICommandSenderSend the messages to the specific sender implementation- Specified by:
sendMessagein interfaceICommandSender- Parameters:
messages- that should send
-
hasPermission
public boolean hasPermission(java.lang.String permission)
The console as always the permission for by every request- Specified by:
hasPermissionin interfaceICommandSender- Parameters:
permission- the permission, that should that- Returns:
- true if the command sender is authorized that it has the permission
-
-