Fixes some minor issues
Fixes some repositories using http instead of https Fixes formatting for tables
This commit is contained in:
@ -33,7 +33,7 @@ public class BlackSmithEditTabCompleter implements TabCompleter {
|
||||
if (args.length == 1) {
|
||||
return TabCompletionHelper.filterMatchingContains(npcSettings, args[0]);
|
||||
} else {
|
||||
if (npcSettings.contains(args[0]) && args.length <= 2) {
|
||||
if (npcSettings.contains(args[0]) && args.length == 2) {
|
||||
return tabCompleteCommandValues(args[0], args[1]);
|
||||
} else {
|
||||
return new ArrayList<>();
|
||||
|
@ -85,7 +85,7 @@ public final class TypeValidationHelper {
|
||||
* @return <p>True if the value is a non-empty string</p>
|
||||
*/
|
||||
private static boolean isNonEmptyString(Object value, CommandSender sender) {
|
||||
boolean isString = value instanceof String string && !string.strip().isEmpty();
|
||||
boolean isString = value instanceof String string && !string.isBlank();
|
||||
if (!isString && sender != null) {
|
||||
BlacksmithPlugin.getStringFormatter().displayErrorMessage(sender,
|
||||
BlacksmithTranslatableMessage.INPUT_STRING_REQUIRED);
|
||||
|
Reference in New Issue
Block a user