Compare commits

...

1 Commits

2 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -6,7 +6,7 @@
<groupId>eu.endermite</groupId>
<artifactId>CommandWhitelist</artifactId>
<version>1.5.1</version>
<version>1.5.2</version>
<packaging>jar</packaging>
<name>CommandWhitelist</name>
@@ -22,10 +22,12 @@ public class TabCompleteBlockerListener implements Listener {
String slast = CommandsList.getLastArgument(s);
String scommand = s.replace(slast, "");
cmd = cmd.replace(CommandsList.getLastArgument(cmd), "");
if (cmd.startsWith("/"+scommand+" ")) {
if (cmd.startsWith("/" + scommand + " ")) {
continue;
}
suggestions.remove(slast);
try {
suggestions.remove(slast);
} catch (Exception ignored) {}
}
event.setCompletions(suggestions);
}