diff --git a/src/main/java/net/knarcraft/paidsigns/utility/TabCompleteHelper.java b/src/main/java/net/knarcraft/paidsigns/utility/TabCompleteHelper.java index 73349a3..bcdf18a 100644 --- a/src/main/java/net/knarcraft/paidsigns/utility/TabCompleteHelper.java +++ b/src/main/java/net/knarcraft/paidsigns/utility/TabCompleteHelper.java @@ -4,6 +4,7 @@ import net.knarcraft.paidsigns.PaidSigns; import java.util.ArrayList; import java.util.List; +import java.util.Set; /** * A helper class for providing common tab complete options @@ -43,7 +44,12 @@ public final class TabCompleteHelper { * @return

The names of all registered paid signs

*/ public static List getPaidSignNames() { - return new ArrayList<>(PaidSigns.getInstance().getSignManager().getAllPaidSigns().keySet()); + Set paidSignNames = PaidSigns.getInstance().getSignManager().getAllPaidSigns().keySet(); + List quotedNames = new ArrayList<>(paidSignNames.size()); + for (String paidSignName : paidSignNames) { + quotedNames.add("\"" + paidSignName + "\""); + } + return new ArrayList<>(quotedNames); } /**