mirror of
https://github.com/YouHaveTrouble/CommandWhitelist.git
synced 2026-05-12 06:26:57 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 94d5afdb47 | |||
| c943455392 |
@@ -6,7 +6,7 @@
|
||||
|
||||
<groupId>eu.endermite</groupId>
|
||||
<artifactId>CommandWhitelist</artifactId>
|
||||
<version>1.7.0</version>
|
||||
<version>1.7.1</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<name>CommandWhitelist</name>
|
||||
|
||||
+3
-3
@@ -21,13 +21,13 @@ 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 + " ")) {
|
||||
continue;
|
||||
}
|
||||
if (cmd.startsWith("/" + scommand)) {
|
||||
try {
|
||||
while (suggestions.contains(slast))
|
||||
suggestions.remove(slast);
|
||||
} catch (Exception ignored) {}
|
||||
}
|
||||
}
|
||||
event.setCompletions(suggestions);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user