-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathjoin.sk
41 lines (38 loc) · 2.32 KB
/
join.sk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
on join:
# if player is not op:
# broadcast "&c■ OP가 아닌 유저(%player%)&c의 접속으로 킥 처리합니다."
# kick player due to "&c현재 시즌5 준비 중이므로 오피가 아닌 유저는 접속이 어렵습니다."
# stop
if {nick::%uuid of player%} is set:
set join message to "&a&l[+] &r%{nick::%uuid of player%}%&r&7(%player%)&e님의 등장!"
set {_player} to uuid of player
if {partylist::%{_player}%::*} is set:
if {partyIndex::%{_player}%} is not set:
set {partyIndex::%{_player}%} to 0
loop {partylist::%{_player}%::*}:
add 1 to {_index}
if {partyIndex::%{_player}%} is not {_index}:
set {partyIndex::%{_player}%} to {_index}
else:
set join message to "&a&l[+] &r%player%&r&7(%player%)&e님의 등장!"
set {_ismember} to text from "http://mc.yu.ac.kr/ismember.php?uuid=%uuid of player%"
if "%{_ismember}%" contains "YESYESYES":
set {ismember1::%uuid of player%} to 1
message "&a■ 허가된 플레이어의 입장을 환영합니다!" to player
message "&a■ /cl 로 명령어를 확인하실 수 있습니다." to player
delete {nick::%uuid of player%}
if {nick::%uuid of player%} is not set:
set {_cb::*} to {_ismember} split at "///"
set {nick::%uuid of player%} to {_cb::2}
execute console command "/nickname %player% %{nick::%uuid of player%}%"
execute console command "/tab player %player% customtabname %{nick::%uuid of player%}%&7(%player%)"
execute console command "/tab player %player% customtagname %{nick::%uuid of player%}%"
else:
broadcast "&c■ 허가되지 않은 플레이어(%player%)&c의 접속으로 킥 처리합니다."
kick player due to "&cYUMC 공식 홈페이지에서 회원가입(영대생 인증)이 필요한 플레이어입니다. 공식 홈페이지 &e<< http://mc.yu.ac.kr >> &c에서 가입을 진행하시기 바랍니다. 문제가 있는 경우 관리자에게 문의하세요."
stop
on quit:
if {nick::%uuid of player%} is set:
set quit message to "&c&l[-] &r%{nick::%uuid of player%}%&r&7(%player%)&e님의 퇴장!"
else:
set quit message to "&c&l[-] &r%player%&r&7(%player%)&e님의 퇴장!"