From 374cca2b221c2b1ca19f3224c975c6df485f1f64 Mon Sep 17 00:00:00 2001 From: Zrips Date: Fri, 27 Jul 2018 16:32:19 +0300 Subject: [PATCH] Tabcomplete should not send usage if no matches are found --- src/main/java/com/gamingmesh/jobs/stuff/TabComplete.java | 2 -- src/main/resources/plugin.yml | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/java/com/gamingmesh/jobs/stuff/TabComplete.java b/src/main/java/com/gamingmesh/jobs/stuff/TabComplete.java index 56650321..9fe84381 100644 --- a/src/main/java/com/gamingmesh/jobs/stuff/TabComplete.java +++ b/src/main/java/com/gamingmesh/jobs/stuff/TabComplete.java @@ -102,8 +102,6 @@ public class TabComplete implements TabCompleter { StringUtil.copyPartialMatches(PartOfCommand, temp, completionList); } - if (completionList.isEmpty()) - Jobs.getCommandManager().sendUsage(sender, args[0].toLowerCase()); Collections.sort(completionList); return completionList; } diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index fa313d49..539c723e 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -1,7 +1,7 @@ name: Jobs description: Jobs Plugin for the BukkitAPI main: com.gamingmesh.jobs.Jobs -version: 4.5.4 +version: 4.6.0 api-version: 1.13 website: https://www.spigotmc.org/resources/jobs-reborn.4216/ author: phrstbrn