-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcommand.sk
284 lines (242 loc) · 8.55 KB
/
command.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
command /s:
trigger:
message "&e■ 3초 후 스폰으로 이동합니다..." to player
if player is not op:
send title "&e스폰으로 이동 중" to player for 3 seconds with fadein 0 second and fade out 0 second
wait 1 seconds
send title "&e스폰으로 이동 중." to player for 3 seconds with fadein 0 second and fade out 0 second
wait 1 seconds
send title "&e스폰으로 이동 중.." to player for 3 seconds with fadein 0 second and fade out 0 second
wait 1 seconds
if player's vehicle is set:
message "&c■ 어딘가에 앉아서 사용할 수 없는 명령어입니다." to player
stop
else:
execute console command "/spawn %player%"
message "&e■ 스폰으로 이동하였습니다" to player
command /hs:
trigger:
message "&e사용법 : /h1, /h2" to player
command /h1:
aliases: /h
trigger:
if player is sneaking:
message "&c■ 어딘가에 앉아서 사용할 수 없는 명령어입니다." to player
stop
if {home::%uuid of player%} is set:
if player is op:
set {_per} to 1
if {major::%uuid of player%} is 8:
set {_per} to 1
if {_per} is not 1:
message "&b■ 3초 후 홈으로 이동합니다..." to player
send title "&b홈으로 이동 중" to player for 3 seconds with fadein 0 second and fade out 0 second
wait 1 seconds
send title "&b홈으로 이동 중." to player for 3 seconds with fadein 0 second and fade out 0 second
wait 1 seconds
send title "&b홈으로 이동 중.." to player for 3 seconds with fadein 0 second and fade out 0 second
wait 1 seconds
if player's vehicle is set:
message "&c■ 어딘가에 앉아서 사용할 수 없는 명령어입니다." to player
stop
else:
teleport player to {home::%uuid of player%}
message "&b■ 당신의 홈에 도착했습니다." to player
wait 2 ticks
set {_chunk} to chunk at {home::%uuid of player%}
if {owned_chunk::%{_chunk}%} is set:
if {owned_chunk::%{_chunk}%} is uuid of player:
set {_key} to true
else:
loop {partylist::%uuid of player%::*}:
if {_key} is true:
exit loop
else:
loop {party::%loop-value%::members::*}:
if {owned_chunk::%{_chunk}%} is loop-value-2:
set {_key} to true
exit loop
else:
set {_key} to false
if {_key} is false:
delete {home::%uuid of player%}
message "&4---------<경고>---------" to player
message "&4현재 집이 위치한 곳은 &e타인의 땅&4입니다." to player
message "&4해당 위치의 Home이 사라졌습니다!!" to player
message "&a자신의 토지&f에서 Home을 지정하는 것을 권장하고 있습니다." to player
message "&4-----------------------" to player
else:
message "&c■ 홈을 지정(/sh)해주세요." to player
command /h2:
aliases: /hh
trigger:
if player is sneaking:
message "&c■ 어딘가에 앉아서 사용할 수 없는 명령어입니다." to player
stop
if {home2::%uuid of player%} is set:
if player is op:
set {_per} to 1
if {major::%uuid of player%} is 8:
set {_per} to 1
if {_per} is not 1:
message "&b■ 3초 후 홈으로 이동합니다..." to player
send title "&b홈으로 이동 중" to player for 3 seconds with fadein 0 second and fade out 0 second
wait 1 seconds
send title "&b홈으로 이동 중." to player for 3 seconds with fadein 0 second and fade out 0 second
wait 1 seconds
send title "&b홈으로 이동 중.." to player for 3 seconds with fadein 0 second and fade out 0 second
wait 1 seconds
if player's vehicle is set:
message "&c■ 어딘가에 앉아서 사용할 수 없는 명령어입니다." to player
stop
else:
teleport player to {home2::%uuid of player%}
message "&b■ 당신의 홈에 도착했습니다." to player
wait 2 ticks
set {_chunk} to chunk at {home2::%uuid of player%}
if {owned_chunk::%{_chunk}%} is set:
if {owned_chunk::%{_chunk}%} is uuid of player:
set {_key} to true
else:
loop {partylist::%uuid of player%::*}:
if {_key} is true:
exit loop
else:
loop {party::%loop-value%::members::*}:
if {owned_chunk::%{_chunk}%} is loop-value-2:
set {_key} to true
exit loop
else:
set {_key} to false
if {_key} is false:
delete {home2::%uuid of player%}
message "&4---------<경고>---------" to player
message "&4현재 집이 위치한 곳은 &e타인의 땅&4입니다." to player
message "&4해당 위치의 Home이 사라졌습니다!!" to player
message "&a자신의 토지&f에서 Home을 지정하는 것을 권장하고 있습니다." to player
message "&4-----------------------" to player
else:
message "&c■ 홈을 지정(/sh)해주세요." to player
command /sh [<integer>]:
trigger:
if "%player's world%" contains "world":
set {_x} to 0
else:
message "&c■ 해당 월드에서는 사용할 수 없는 명령어입니다." to player
stop
if arg 1 is set:
set {_chunk} to chunk at player
set {_key} to false
if {owned_chunk::%{_chunk}%} is uuid of player:
set {_key} to true
else if {owned_chunk::%{_chunk}%} is not set:
set {_key} to true
else:
loop {partylist::%uuid of player%::*}:
if {_key} is true:
exit loop
else:
loop {party::%loop-value%::members::*}:
if {owned_chunk::%{_chunk}%} is loop-value-2:
set {_key} to true
exit loop
else:
set {_key} to false
if {_key} is false:
message "&e타인의 토지에 홈을 지정할 수 없습니다!" to player
else:
if arg 1 is 1:
set {home::%uuid of player%} to player's location
message "&b■ 당신의 홈(1)을 지정했습니다." to player
else if arg 1 is 2:
set {home2::%uuid of player%} to player's location
message "&b■ 당신의 홈(2)을 지정했습니다." to player
else:
message "&e사용법 : /sh 1, /sh 2" to player
command /tr [<text>]:
trigger:
if arg 1 is "on":
execute player command "/treefeller on"
message "&b찹트리가 활성화되었습니다." to player
else if arg 1 is "off":
execute player command "/treefeller off"
message "&4찹트리가 비활성화되었습니다." to player
else:
message "&a찹트리 명령어&f(Tree Feller)" to player
message "&e사용법 : /tr on, /tr off" to player
command /접속일 [<text>]:
trigger:
if arg 1 is set:
set {_player} to HangulToUUID(arg 1)
set {_username} to {_player} parsed as offline player
execute player command "/seen %{_username}%"
else:
message "&e사용법 : &f/seen 유저한글이름" to player
#on tab completer for "/tpi":
#loop all players:
#add loop-value to tab completions
command /trash:
trigger:
open chest with 3 rows named "&l쓰레기통 (복구 불가)" to player
command /noticelagg:
permission: op
trigger:
if player is not op:
message "&c■ 관리자만 사용 가능한 명령어입니다." to player
stop
loop all players:
send title "&d잠시 &b렉&d이 걸릴 수 있습니다!" to loop-player for 5 seconds
command /jamsu:
trigger:
execute player command "/afk"
command /mysort [<text>]:
trigger:
if player is not op:
if arg 1 is "on":
execute player command "/sort on"
message "&b자동 정리가 활성화되었습니다." to player
else if arg 1 is "off":
execute player command "/sort off"
message "&4자동 정리가 비활성화되었습니다." to player
else:
message "사용법: /mysort on, /mysort off"
else if player is op:
if arg 1 is "on":
execute player command "/sort on"
message "&b자동 정리가 활성화되었습니다." to player
else:
execute player command "/sort"
on command "/elevator create":
if {com::%player%} is not 1:
if player is not op:
cancel event
if player is op:
cancel event
on command "/chest":
if {com::%player%} is not 1:
if player is not op:
cancel event
on command "/ironicchest:chest":
if {com::%player%} is not 1:
cancel event
on command "/ironicchest":
if {com::%player%} is not 1:
cancel event
on command "/ironicchest:ironicchest":
if {com::%player%} is not 1:
cancel event
on command "/ironicchest:ichestone":
if {com::%player%} is not 1:
cancel event
on command "/ichestone":
if {com::%player%} is not 1:
cancel event
on command "/chestone":
if {com::%player%} is not 1:
cancel event
on command "/ironicchest:chestone":
if {com::%player%} is not 1:
cancel event
on command "/ironicchest:chesttwo":
if {com::%player%} is not 1:
cancel event