mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2024-11-25 20:16:06 +01:00
Change MVConfig suggection to static
This commit is contained in:
parent
3ca9de69f0
commit
8e00ba11ac
@ -36,7 +36,7 @@ public class MVCommandCompletions extends PaperCommandCompletions {
|
||||
registerAsyncCompletion("unloadedWorlds", this::suggestUnloadedWorlds);
|
||||
registerAsyncCompletion("potentialWorlds", this::suggestPotentialWorlds);
|
||||
registerAsyncCompletion("location", this::suggestLocation);
|
||||
registerAsyncCompletion("MVConfigs", this::suggestMVConfig); //TODO: Change to static
|
||||
registerStaticCompletion("MVConfigs", suggestMVConfig());
|
||||
registerStaticCompletion("gameRules", suggestGameRules());
|
||||
registerStaticCompletion("environments", suggestEnvironments());
|
||||
registerStaticCompletion("setProperties", suggestSetProperties());
|
||||
@ -127,7 +127,7 @@ public class MVCommandCompletions extends PaperCommandCompletions {
|
||||
}
|
||||
|
||||
@NotNull
|
||||
private Collection<String> suggestMVConfig(@NotNull BukkitCommandCompletionContext context) {
|
||||
private Collection<String> suggestMVConfig() {
|
||||
return this.plugin.getMVConfig().serialize().keySet();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user