open Gui
GUI を構築してプレイヤーに表示する
player.openGui {
title = "設定メニュー"
rows = 3
structure {
+"# # # # # # # # #"
+"# A . B . C . D #"
+"# # # # # # # # #"
}
decoration('#', Material.BLACK_STAINED_GLASS_PANE)
item('A') {
material = Material.DIAMOND_SWORD
displayName = "戦闘設定"
onClick { action ->
GuiResult.Success(Unit)
}
}
}Content copied to clipboard