From 8e00ba11acef50cc422ca2fba0054788e02db71f Mon Sep 17 00:00:00 2001 From: benwoo1110 <30431861+benwoo1110@users.noreply.github.com> Date: Sun, 20 Dec 2020 14:38:48 +0800 Subject: [PATCH] Change MVConfig suggection to static --- .../MultiverseCore/commands_helper/MVCommandCompletions.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); }