Package de.dytanic.cloudnet.command
Class DriverCommandSender
- java.lang.Object
-
- de.dytanic.cloudnet.command.DriverCommandSender
-
- All Implemented Interfaces:
ICommandSender
public final class DriverCommandSender extends java.lang.Object implements ICommandSender
The driverCommandSender
-
-
Constructor Summary
Constructors Constructor Description DriverCommandSender(java.util.Collection<java.lang.String> messages)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetName()Returns the name of the command senderbooleanhasPermission(java.lang.String permission)Checks, that the commandSender has the permission to execute the commandvoidsendMessage(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()
Description copied from interface:ICommandSenderReturns the name of the command sender- 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)
Description copied from interface:ICommandSenderChecks, that the commandSender has the permission to execute the command- Specified by:
hasPermissionin interfaceICommandSender- Parameters:
permission- the permission, that should that- Returns:
- true if the command sender is authorized that it has the permission
-
-