mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2026-11-27 21:23:07 +00:00
Check for an empty buffer in async tab complete handler (#1949)
This commit is contained in:
1 file changed
+4
@@ -54,6 +54,10 @@ public class BukkitAsyncCommandExecutor extends BukkitCommandExecutor implements
|
||||
}
|
||||
|
||||
String buffer = e.getBuffer();
|
||||
if (buffer.isEmpty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (buffer.charAt(0) == '/') {
|
||||
buffer = buffer.substring(1);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user