Package io.github.mqzn.commands.base
Interface CommandRequirement<S>
- Type Parameters:
S
- the sender type
public interface CommandRequirement<S>
Represents a requirement/criteria
that must be true for the command to be executed
-
Method Summary
-
Method Details
-
accepts
Whether the criteria are true or not- Parameters:
sender
- the command sendercommandContext
- the context used- Returns:
- Whether the criteria are true or not
-
caption
The caption that will be sent to the user if the criteria is false- Returns:
- null if no caption to send, otherwise it will return the key of the caption to send
-