taboolib
taboolib copied to clipboard
UI模块,hidePlayerInventory()异常
第一次输入这个指令是正常隐藏玩家背包物品的,关闭后再打开一次就不隐藏了
@CommandBody
val test = subCommand {
execute<ProxyPlayer> { sender, _, _ ->
val player = Bukkit.getPlayer(sender.name) ?: return@execute
player.openMenu<taboolib.module.ui.type.Chest> {
hidePlayerInventory()
}
}
}