Package org.galliumpowered.command
Interface CommandCaller
- All Known Subinterfaces:
Player
- All Known Implementing Classes:
ConsoleCommandCaller
public interface CommandCaller
-
Method Summary
Modifier and TypeMethodDescriptionAn optional of a player.voidsendMessage(String message) Send a message to the command callervoidsendMessage(net.kyori.adventure.text.Component component) Send a message to the command caller
-
Method Details
-
getPlayer
An optional of a player. Returns aPlayeroptional if present.- Returns:
- Player optional
-
sendMessage
void sendMessage(net.kyori.adventure.text.Component component) Send a message to the command caller- Parameters:
component- Message to send
-
sendMessage
Send a message to the command caller- Parameters:
message- Message to send
-