Skip to content

feat: add CommandDefinition.GetTag helper - #608

Open
DevD4v3 wants to merge 1 commit into
ikkentim:mainfrom
DevD4v3:patch-2
Open

feat: add CommandDefinition.GetTag helper#608
DevD4v3 wants to merge 1 commit into
ikkentim:mainfrom
DevD4v3:patch-2

Conversation

@DevD4v3

@DevD4v3 DevD4v3 commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

The documentation includes a sample example:

public class MyPermissionChecker : IPermissionChecker
{
    public bool HasPermission(Player player, CommandDefinition command)
    {
        var permission = command.GetTag("permission");
        if (permission == null)
            return true; // No permission requirement
        
        return player.HasPermission(permission);
    }
}

But the GetTag method doesn't exist in CommandDefinition. This PR adds that helper.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant