mirror of
https://github.com/LuckPerms/LuckPerms.git
synced 2025-02-10 01:21:34 +01:00
Check for an empty buffer in async tab complete handler (#1949)
This commit is contained in:
parent
c39a44c3ac
commit
e9d72df890
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user