Package net.ME1312.Galaxi.Command
Interface CommandSender
- All Superinterfaces:
ExtraDataHandler<String>
- All Known Subinterfaces:
InputSender
- All Known Implementing Classes:
ConsoleCommandSender
Command Sender Layout Class
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
Send a command as the SendergetName()
Get Sender Nameboolean
hasPermission
(String permission) Test if the Sender has a permissionvoid
sendMessage
(String... messages) Send the Sender a messagevoid
sendMessage
(TextElement... messages) Send the Sender a messageMethods inherited from interface net.ME1312.Galaxi.Library.ExtraDataHandler
addExtra, getExtra, getExtra, hasExtra, removeExtra
-
Method Details
-
getName
String getName()Get Sender Name- Returns:
- Sender Name
-
sendMessage
Send the Sender a message- Parameters:
messages
- Messages to send
-
sendMessage
Send the Sender a message- Parameters:
messages
- Messages to send
-
hasPermission
Test if the Sender has a permission- Parameters:
permission
- Permission to test- Returns:
- Sender's Permission Status
-
command
Send a command as the Sender- Parameters:
command
- Command to send
-