Instead of using methods that take as argument sender, args, etc. make the methods independent from the command, e.g., only returning string sent back to the sender.
Example:
public @NotNull String balance(final @NotNull String id) {
…
}
Checking for permissions, usage (required args present, etc.) is performed separately.
Instead of using methods that take as argument sender, args, etc. make the methods independent from the command, e.g., only returning string sent back to the sender.
Example:
Checking for permissions, usage (required args present, etc.) is performed separately.