Skip to content

Repository files navigation

CHPlus

ProtocolLib 버전만 맞으면 1.8 이상 모든버전 호환 가능

함수

함수명반환 타입인자설명
set_tab_msgvoid[player], header, footer해당 플레이어의 탭창에 헤더와 푸터를 설정합니다.
send_action_msgvoid[player], text해당 플레이어에게 액션 메세지를 보냅니다.
send_json_msgvoid[player], json해당 플레이어에게 json 메세지(tellraw) 를 보냅니다.
launch_instant_fireworkvoidlocationArray, [fireworkArray]해당 위치에 즉시 터지는 폭죽을 발사합니다.
user_inputvoid[player], closure, [itemArray]모루 GUI 로 플레이어의 입력값을 closure 로 받습니다.
ppingint[player]해당 플레이어의 핑(지연시간) 을 불러옵니다.
chp_respawnvoid[player]해당 플레이어를 리스폰시킵니다.
inv_titlestring[player]해당 플레이어에 열려있는 탑 인벤토리의 타이틀을 불러옵니다.

함수 예제

set_tab_msg

set_tab_msg('EntryPoint', 'Header', 'Footer')

send_action_msg

send_action_msg('EntryPoint', 'This is action message')

send_json_msg

launch_instant_firework

launch_instant_firework(array('x':1, 'y':2, 'z':3, 'world':'world'))

user_input

@callback=closure(@msg) {
'EntryPoint 님이'@msg'를 입력했습니다.'
}
@item=array(
id:421, data:0, qty:1,
meta:array(
'display':'이곳에 입력하세요.'
)
)
user_input('EntryPoint', @callback, @item);

pping

@ping=pping('EntryPoint')
if (@ping>1000) {
tmsg('EntryPoint', '핑이 너무 높습니다.')
}

chp_respawn

chp_respawn('EntryPoint')

이벤트

server_ping_protocol

일반적인 server_ping 이벤트와 동일하지만 이벤트 데이터가 players(현재 온라인 플레이어의 수) 밖에 없으며, 이 필드는 수정 가능합니다.(원래 플레이어 수 이상도 가능)

inventory_move_item

아이템이 다른 인벤토리로 이동될 때 호출됩니다.

About

No description or website provided.

Topics

Resources

Stars

1 star

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages