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.void
sendMessage
(String message) Send a message to the command callervoid
sendMessage
(net.kyori.adventure.text.Component component) Send a message to the command caller
-
Method Details
-
getPlayer
An optional of a player. Returns aPlayer
optional 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
-