Class ConsoleCommandCaller
java.lang.Object
org.galliumpowered.command.console.ConsoleCommandCaller
- All Implemented Interfaces:
CommandCaller
-
Constructor Summary
Constructors -
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
-
Constructor Details
-
ConsoleCommandCaller
public ConsoleCommandCaller()
-
-
Method Details
-
getPlayer
Description copied from interface:CommandCaller
An optional of a player. Returns aPlayer
optional if present.- Specified by:
getPlayer
in interfaceCommandCaller
- Returns:
- Player optional
-
sendMessage
public void sendMessage(net.kyori.adventure.text.Component component) Description copied from interface:CommandCaller
Send a message to the command caller- Specified by:
sendMessage
in interfaceCommandCaller
- Parameters:
component
- Message to send
-
sendMessage
Description copied from interface:CommandCaller
Send a message to the command caller- Specified by:
sendMessage
in interfaceCommandCaller
- Parameters:
message
- Message to send
-