diff --git a/src/main/java/com/onarandombox/MultiverseCore/commands_helper/MVCommandCompletions.java b/src/main/java/com/onarandombox/MultiverseCore/commands_helper/MVCommandCompletions.java index ff4e6872..bcc7d177 100644 --- a/src/main/java/com/onarandombox/MultiverseCore/commands_helper/MVCommandCompletions.java +++ b/src/main/java/com/onarandombox/MultiverseCore/commands_helper/MVCommandCompletions.java @@ -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 suggestMVConfig(@NotNull BukkitCommandCompletionContext context) { + private Collection suggestMVConfig() { return this.plugin.getMVConfig().serialize().keySet(); }