From 6f97aa219d2da955b249c932c956b4f40eaed727 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Sun, 27 Feb 2022 01:00:26 +1300 Subject: [PATCH] Fix tab complete on option values --- .../libraryaddict/disguise/commands/DisguiseBaseCommand.java | 2 ++ .../disguise/utilities/params/ParamInfoTypes.java | 4 ---- .../disguise/utilities/parser/DisguisePermissionsTest.java | 3 --- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/plugin/src/main/java/me/libraryaddict/disguise/commands/DisguiseBaseCommand.java b/plugin/src/main/java/me/libraryaddict/disguise/commands/DisguiseBaseCommand.java index fb3eea95..e1716952 100644 --- a/plugin/src/main/java/me/libraryaddict/disguise/commands/DisguiseBaseCommand.java +++ b/plugin/src/main/java/me/libraryaddict/disguise/commands/DisguiseBaseCommand.java @@ -233,6 +233,8 @@ public abstract class DisguiseBaseCommand implements CommandExecutor { tabs.add(value); } + } else { + tabs.addAll(wantToUse); } } } diff --git a/plugin/src/main/java/me/libraryaddict/disguise/utilities/params/ParamInfoTypes.java b/plugin/src/main/java/me/libraryaddict/disguise/utilities/params/ParamInfoTypes.java index 03e4b85f..b06edde9 100644 --- a/plugin/src/main/java/me/libraryaddict/disguise/utilities/params/ParamInfoTypes.java +++ b/plugin/src/main/java/me/libraryaddict/disguise/utilities/params/ParamInfoTypes.java @@ -72,10 +72,6 @@ public class ParamInfoTypes { return new ParamInfoItemBlock(ItemStack.class, "ItemStack", "ItemStack (Material)", "An ItemStack compromised of Material", getMaterials()); } - public ParamInfoSoundGroup getParamInfoSoundGroup() { - return new ParamInfoSoundGroup(); - } - /** * Constructor values are listed here for continuity */ diff --git a/plugin/src/test/java/me/libraryaddict/disguise/utilities/parser/DisguisePermissionsTest.java b/plugin/src/test/java/me/libraryaddict/disguise/utilities/parser/DisguisePermissionsTest.java index 85941dda..a8866b8e 100644 --- a/plugin/src/test/java/me/libraryaddict/disguise/utilities/parser/DisguisePermissionsTest.java +++ b/plugin/src/test/java/me/libraryaddict/disguise/utilities/parser/DisguisePermissionsTest.java @@ -2,9 +2,6 @@ package me.libraryaddict.disguise.utilities.parser; import me.libraryaddict.disguise.DisguiseConfig; import me.libraryaddict.disguise.disguisetypes.DisguiseType; -import me.libraryaddict.disguise.utilities.params.ParamInfoManager; -import me.libraryaddict.disguise.utilities.translations.LibsMsg; -import org.bukkit.Material; import org.bukkit.permissions.Permissible; import org.bukkit.permissions.Permission; import org.bukkit.permissions.PermissionAttachment;