Package de.dytanic.cloudnet.command
Interface ICommandSender
-
- All Known Subinterfaces:
IPermissionUserCommandSender
- All Known Implementing Classes:
ConsoleCommandSender,DefaultPermissionUserCommandSender,DriverCommandSender
public interface ICommandSenderThe commandSender represents the sender for a command dispatch operation
-
-
Method Summary
All Methods Instance Methods Abstract 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
java.lang.String getName()
Returns the name of the command sender
-
sendMessage
void sendMessage(java.lang.String message)
Sends a message to the specific sender implementation- Parameters:
message- that should send
-
sendMessage
void sendMessage(java.lang.String... messages)
Send the messages to the specific sender implementation- Parameters:
messages- that should send
-
hasPermission
boolean hasPermission(java.lang.String permission)
Checks, that the commandSender has the permission to execute the command- Parameters:
permission- the permission, that should that- Returns:
- true if the command sender is authorized that it has the permission
-
-