-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbar.sk
62 lines (51 loc) · 3.49 KB
/
bar.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
every 10 ticks:
remove bossbar "topbar"
loop all players:
remove bossbar "pegaBar%loop-player%"
set {_chunk} to chunk at loop-player
set {_player} to uuid of loop-player
if loop-player is op:
remove bossbar "pegaBar%loop-player%"
create bossbar titled "&b광물 : &f%{pegaMiner::%{_player}%}%&b鏝 &e농사 : &f%{pegaFarm::%{_player}%}%&e鏝 &a낚시 : &f%{pegaFishing::%{_player}%}%&2鏝 &d수렵 : &f%{pegaHunting::%{_player}%}%&d鏝" and id "pegaBar%loop-player%" for loop-player with progress 100 with colors white
if loop-player's world is "world":
if {owned_chunk::%{_chunk}%} is set:
set {_username} to {owned_chunk::%{_chunk}%} parsed as offline player
remove bossbar "topbar%loop-player%"
remove bossbar "zdokdoBar%loop-player%"
set {_chunk.data} to "%chunk at loop-player%"
replace all "chunk (" with "" in {_chunk.data}
replace all ") of " with "," in {_chunk.data}
set {_bartitle} to "&a 위치 : &e%{nick::%{owned_chunk::%{_chunk}%}%}%&e님의 땅 &f(%{_chunk.data}%)"
create bossbar titled "%{_bartitle}%" and id "topbar%loop-player%" for loop-player with progress 100 with colors white
else:
remove bossbar "topbar%loop-player%"
remove bossbar "zdokdoBar%loop-player%"
set {_chunk.data} to "%chunk at loop-player%"
replace all "chunk (" with "" in {_chunk.data}
replace all ") of " with "," in {_chunk.data}
set {_bartitle} to "&a 위치 : &7주인 없는 땅 &e&f(%{_chunk.data}%)"
create bossbar titled "%{_bartitle}%" and id "topbar%loop-player%" for loop-player with progress 100 with colors white
else if loop-player's world is "campus":
remove bossbar "topbar%loop-player%"
remove bossbar "zdokdoBar%loop-player%"
set {_bartitle} to "&a 위치 : &b영남대학교 캠퍼스"
create bossbar titled "%{_bartitle}%" and id "topbar%loop-player%" for loop-player with progress 100 with colors white
#> 독도 월드를 위한 안내 보스바
set {_bartitle} to "&a■독도 월드 &f: &bSHIFt + F&r&f로 이동해봐요"
create bossbar titled "%{_bartitle}%" and id "zdokdoBar%loop-player%" for loop-player with progress 100 with colors white
else if loop-player's world is "Testdokkdo":
remove bossbar "topbar%loop-player%"
#> 독도 월드를 위한 안내 보스바
remove bossbar "zdokdoBar%loop-player%"
set {_bartitle} to "&a■독도 월드 &f: &bSHIFt + F&r&f로 이동해봐요"
create bossbar titled "%{_bartitle}%" and id "zdokdoBar%loop-player%" for loop-player with progress 100 with colors white
else if loop-player's world is "recourcemyland":
remove bossbar "topbar%loop-player%"
set {_bartitle} to "&a 위치 : &b자원 월드"
create bossbar titled "%{_bartitle}%" and id "topbar%loop-player%" for loop-player with progress 100 with colors white
else:
remove bossbar "topbar%loop-player%"
set {_bartitle} to " "
create bossbar titled "%{_bartitle}%" and id "topbar" for loop-player with progress 100 with colors white
# topbar이름 : 위치 정보, 이름 정보
# pegaBar이름 : 페가 정보 표시 (4개)