I am basically trying to make it so when typed /닉네임, the first tab completion would be the player names, then set/reset, then nothing (players type their wanted nicknames) and then colors... but it simply doesnt work... I am using skript and skbee and all of them are the newest... (I have no idea why skellett does not work now)
on tab complete of "/닉네임":
set {_input} to event-string
replace first "/닉네임 " in {_input} with ""
if {_input} is set:
set {_args::*} to split {_input} by " "
else:
clear {_args::*}
set {_argCount} to size of {_args::*}
if {_input} ends with " ":
add 1 to {_argCount}
if {_argCount} = 1:
# 첫 번째 인자: 플레이어 이름 탭 완성 (접속 중인 플레이어 목록)
set tab completions to all players
else if {_argCount} = 2:
# 두 번째 인자: "set" 또는 "reset"
set tab completions to "set", "reset"
else if {_argCount} = 3:
# 세 번째 인자: 원하는 이름 - 탭 완성 없음 (자유롭게 입력)
clear tab completions
else if {_argCount} = 4:
# 네 번째 인자: 색상 목록 (두 번째 인자가 "set"일 때만)
if {_args::2} is "set":
set tab completions to "black", "dark_blue", "dark_green", "dark_aqua", "dark_red", "dark_purple", "gold", "gray", "dark_gray", "blue", "green", "aqua", "red", "light_purple", "yellow", "white"
else:
clear tab completions
else:
clear tab completions
on tab complete of "/닉네임":
set {_input} to event-string
replace first "/닉네임 " in {_input} with ""
if {_input} is set:
set {_args::*} to split {_input} by " "
else:
clear {_args::*}
set {_argCount} to size of {_args::*}
if {_input} ends with " ":
add 1 to {_argCount}
if {_argCount} = 1:
# 첫 번째 인자: 플레이어 이름 탭 완성 (접속 중인 플레이어 목록)
set tab completions to all players
else if {_argCount} = 2:
# 두 번째 인자: "set" 또는 "reset"
set tab completions to "set", "reset"
else if {_argCount} = 3:
# 세 번째 인자: 원하는 이름 - 탭 완성 없음 (자유롭게 입력)
clear tab completions
else if {_argCount} = 4:
# 네 번째 인자: 색상 목록 (두 번째 인자가 "set"일 때만)
if {_args::2} is "set":
set tab completions to "black", "dark_blue", "dark_green", "dark_aqua", "dark_red", "dark_purple", "gold", "gray", "dark_gray", "blue", "green", "aqua", "red", "light_purple", "yellow", "white"
else:
clear tab completions
else:
clear tab completions