TabooLib / taboolib

Powerful framework for creating multi-platform Minecraft plugin

Home Page:https://tabooproject.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

UI模块,hidePlayerInventory()异常

Moki0 opened this issue · comments

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

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

            player.openMenu<taboolib.module.ui.type.Chest> {
                hidePlayerInventory()
            }
        }
    }