Class RequirementIsPlayer
java.lang.Object
com.kamikazejam.kamicommon.command.requirement.RequirementAbstract
com.kamikazejam.kamicommon.command.requirement.RequirementIsPlayer
- All Implemented Interfaces:
Requirement, Predicate<CommandSender>, Serializable, Predicate<CommandSender>
A
Requirement that passes only for a Player sender, so a command carrying it can never run
from console. Reach the shared instance with get() and attach it with
KamiCommand.addRequirements(Requirement...); the refusal message is the shared one from
KamiCommand.Config.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanapply(CommandSender sender, KamiCommand command) @NotNull VersionedComponentcreateErrorMessage(CommandSender sender, KamiCommand command) static RequirementIsPlayerget()Methods inherited from class RequirementAbstract
apply, createErrorMessage, getDesc, getRequirementsError, isRequirementsMet
-
Constructor Details
-
RequirementIsPlayer
public RequirementIsPlayer()
-
-
Method Details
-
get
-
apply
-
createErrorMessage
@NotNull public @NotNull VersionedComponent createErrorMessage(CommandSender sender, KamiCommand command)
-