Skip to content

NamespacedKey Argument

Must be a valid NamespacedKey, which it returns. Example:

Java
new StellarCommand("key")
    .addNamespacedKeyArgument("key")
    .addExecution<Player>(Player.class, context -> {
        NamespacedKey key = context.getArgument<NamespacedKey>("key");
        currentKey = key; // separate variable
    };

Namespaced Key Argument

Released under the MIT License.