Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Placeholder API expansion wrapper #28

Open
Matt-MX opened this issue Jun 22, 2024 · 0 comments
Open

Placeholder API expansion wrapper #28

Matt-MX opened this issue Jun 22, 2024 · 0 comments

Comments

@Matt-MX
Copy link
Owner

Matt-MX commented Jun 22, 2024

Implementation of a wrapper for placeholder requests.

placeholderExpansion {
    name = "ktgui"
    version = "1.0.0"

    // Reuse arguments from declarative commands
    val player by onlinePlayerArgument()
    matches("uuid" / player) {
        player().uniqueId.toString()
    }
    matches("uuid") {
        requesting.uniqueId.toString()
    }
}

This allows for a more declarative and streamlined approach to supplying placeholders to PlaceholderAPI

Matt-MX added a commit that referenced this issue Jun 22, 2024
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

No branches or pull requests

1 participant