mirror of
https://github.com/alexcrea/CustomAnvil.git
synced 2026-08-28 08:25:56 +02:00
do not allow gui in tab completer
Some checks are pending
Java CI with Gradle / build (push) Waiting to run
Some checks are pending
Java CI with Gradle / build (push) Waiting to run
This commit is contained in:
parent
99306b6fee
commit
c062684a3c
1 changed files with 1 additions and 0 deletions
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue