Package net.apartium.cocoabeans.commands
Interface Sender
@NonExtendable
public interface Sender
Represents a command sender
-
Method Summary
Modifier and TypeMethodDescriptionReturns the underlying platform-specific sender object.voidsendMessage(@NotNull String text) Sends a message to the sendervoidsendMessage(String... args) Sends a message to the sender
-
Method Details
-
getSender
Object getSender()Returns the underlying platform-specific sender object. For Spigot, this would be the CommandSender instance- Returns:
- the underlying sender object
-
sendMessage
Sends a message to the sender- Parameters:
text- message as text
-
sendMessage
Sends a message to the sender- Parameters:
args- messages as text
-