mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2024-11-29 14:06:30 +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("unloadedWorlds", this::suggestUnloadedWorlds);
|
||||||
registerAsyncCompletion("potentialWorlds", this::suggestPotentialWorlds);
|
registerAsyncCompletion("potentialWorlds", this::suggestPotentialWorlds);
|
||||||
registerAsyncCompletion("location", this::suggestLocation);
|
registerAsyncCompletion("location", this::suggestLocation);
|
||||||
registerAsyncCompletion("MVConfigs", this::suggestMVConfig); //TODO: Change to static
|
registerStaticCompletion("MVConfigs", suggestMVConfig());
|
||||||
registerStaticCompletion("gameRules", suggestGameRules());
|
registerStaticCompletion("gameRules", suggestGameRules());
|
||||||
registerStaticCompletion("environments", suggestEnvironments());
|
registerStaticCompletion("environments", suggestEnvironments());
|
||||||
registerStaticCompletion("setProperties", suggestSetProperties());
|
registerStaticCompletion("setProperties", suggestSetProperties());
|
||||||
@ -127,7 +127,7 @@ public class MVCommandCompletions extends PaperCommandCompletions {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@NotNull
|
@NotNull
|
||||||
private Collection<String> suggestMVConfig(@NotNull BukkitCommandCompletionContext context) {
|
private Collection<String> suggestMVConfig() {
|
||||||
return this.plugin.getMVConfig().serialize().keySet();
|
return this.plugin.getMVConfig().serialize().keySet();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user