Class Everyone
- java.lang.Object
-
- net.kautler.command.api.restriction.Everyone
-
- All Implemented Interfaces:
Restriction<Object>
@ApplicationScoped public class Everyone extends Object implements Restriction<Object>
A restriction that allows a command for everyone. This always allows a command and is effectively the same as not having any restrictions. It is used internally if no other restrictions are applied and can be used to explicitly state that a command is allowed for everyone.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
allowCommand(Object message)
Returns whether a command caused by the given message should be allowed by this restriction or not.
-
-
-
Method Detail
-
allowCommand
public boolean allowCommand(Object message)
Description copied from interface:Restriction
Returns whether a command caused by the given message should be allowed by this restriction or not.- Specified by:
allowCommand
in interfaceRestriction<Object>
- Parameters:
message
- the message that caused the command to check allowance for- Returns:
- whether a command caused by the given message should be allowed by this restriction or not
-
-