CommandPanel v4 って全然情報が回ってなくて、、、mvtpをさせるのに苦労したので方法を記しておきます。
https://docs.commandpanels.net/TagsPlaceholders/CommandTags
上の公式wikiに従って書いていけばOKらしいんですけどなんかコマンドを実行させる方法をずっと見逃していて、、、
細かいところは自分で見て欲しいんですけど、commands:のところに
[msg] /command
とプレイヤーに実行させたいコマンドを書けば良かったようです。
[close]も地味に使うので要確認。自分のサーバーで動いてるやつ貼っておきます。
title: '&6&lワールド移動メニュー'
type: inventory
rows: 6
command: 'n'
fill:
material: GRAY_STAINED_GLASS_PANE
name: ' '
layout:
'4':
- slot_c25
'22':
- slot_c26_df
'39':
- slot_s24
'40':
- slot_s25
'41':
- slot_s26
'49':
- slot_close
items:
slot_c25:
material: GRASS_BLOCK
stack: 1
name: '&e&lC25 (スーパーフラット)'
lore:
- '&72025年版 クリエイティブ'
- '&f'
- '&b▶ クリックで前回の場所へ移動'
actions:
commands:
- '[chat] /mvtp C25'
- '[close]'
slot_c26_df:
material: OAK_SAPLING
stack: 1
name: '&b&lC26_df (デフォルト地形)'
lore:
- '&72026年版 クリエイティブ'
- '&f'
- '&b▶ クリックで前回の場所へ移動'
actions:
commands:
- '[chat] /mvtp C26_df'
- '[close]'
slot_s24:
material: IRON_SWORD
stack: 1
name: '&a&lS24 (サバイバル)'
lore:
- '&72024年版 サバイバル'
- '&f'
- '&b▶ クリックで前回の場所へ移動'
actions:
commands:
- '[chat] /mvtp S24'
- '[close]'
slot_s25:
material: DIAMOND_SWORD
stack: 1
name: '&a&lS25 (サバイバル)'
lore:
- '&72025年版 サバイバル'
- '&f'
- '&b▶ クリックで前回の場所へ移動'
actions:
commands:
- '[chat] /mvtp S25'
- '[close]'
slot_s26:
material: NETHERITE_SWORD
stack: 1
name: '&a&lS26 (サバイバル)'
lore:
- '&72026年版 サバイバル'
- '&f'
- '&b▶ クリックで前回の場所へ移動'
actions:
commands:
- '[chat] /mvtp S26'
- '[close]'
slot_close:
material: BARRIER
stack: 1
name: '&c&lメニューを閉じる'
actions:
commands:
- '[close]'





