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.voidsendMessage(String message) Send a message to the command callervoidsendMessage(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:CommandCallerAn optional of a player. Returns aPlayeroptional if present.- Specified by:
getPlayerin interfaceCommandCaller- Returns:
- Player optional
-
sendMessage
public void sendMessage(net.kyori.adventure.text.Component component) Description copied from interface:CommandCallerSend a message to the command caller- Specified by:
sendMessagein interfaceCommandCaller- Parameters:
component- Message to send
-
sendMessage
Description copied from interface:CommandCallerSend a message to the command caller- Specified by:
sendMessagein interfaceCommandCaller- Parameters:
message- Message to send
-