mirror of
https://github.com/aikar/commands.git
synced 2026-05-31 06:11:55 +00:00
fix compilation of example plugin (#154)
This commit is contained in:
@@ -65,9 +65,9 @@ public final class ACFExample extends JavaPlugin {
|
||||
SomeObject.getContextResolver());
|
||||
|
||||
// 4: Register Command Completions - this will be accessible with @CommandCompletion("@test")
|
||||
commandManager.getCommandCompletions().registerAsyncCompletion("test", c -> {
|
||||
commandManager.getCommandCompletions().registerAsyncCompletion("test", c ->
|
||||
Arrays.asList("foo", "bar", "baz")
|
||||
});
|
||||
);
|
||||
|
||||
// 5: Register Command Conditions
|
||||
commandManager.getCommandConditions().addCondition(SomeObject.class, "limits", (c, exec, value) -> {
|
||||
|
||||
Reference in New Issue
Block a user