Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI模块,hidePlayerInventory()异常 #410

Open
Moki0 opened this issue Mar 3, 2024 · 0 comments
Open

UI模块,hidePlayerInventory()异常 #410

Moki0 opened this issue Mar 3, 2024 · 0 comments

Comments

@Moki0
Copy link

Moki0 commented Mar 3, 2024

第一次输入这个指令是正常隐藏玩家背包物品的,关闭后再打开一次就不隐藏了

    @CommandBody
    val test = subCommand {
        execute<ProxyPlayer> { sender, _, _ ->
            val player = Bukkit.getPlayer(sender.name) ?: return@execute

            player.openMenu<taboolib.module.ui.type.Chest> {
                hidePlayerInventory()
            }
        }
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant