Skip to content

V1.0.6 - Commands with arguments #13

@Program132

Description

@Program132

Currently, commands can have a name, a description, etc., but there's no way to retrieve arguments, add optional arguments, etc.

In a standard class (without using the library), we use:

protected final RequiredArg<Float> damageArg = this.withRequiredArg("amount", "MY DESCRIPTION!", ArgTypes.FLOAT);

Then to get the value:

context.get(damageArg);

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions