do not allow gui in tab completer
Some checks are pending
Java CI with Gradle / build (push) Waiting to run

This commit is contained in:
alexcrea 2026-07-07 22:13:57 +02:00
parent 99306b6fee
commit c062684a3c
Signed by: alexcrea
GPG key ID: E59DF23EE2A2266C

View file

@ -80,6 +80,7 @@ class CustomAnvilCommand(plugin: CustomAnvil) : CommandExecutor, TabCompleter {
if(args.size < 2) { if(args.size < 2) {
for ((key, cmd) in commands) { for ((key, cmd) in commands) {
if(!cmd.allowed(sender)) continue if(!cmd.allowed(sender)) continue
if("gui".contentEquals(key)) continue
result.add(key) result.add(key)
} }
} else { } else {