TabooLib / taboolib

Powerful framework for creating multi-platform Minecraft plugin
https://tabooproject.org
MIT License
308 stars 101 forks source link

UI模块,hidePlayerInventory()异常 #410

Closed Moki0 closed 1 month ago

Moki0 commented 8 months ago

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

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

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