-
Notifications
You must be signed in to change notification settings - Fork 2
/
commands.sk
389 lines (334 loc) · 16.8 KB
/
commands.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
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
# ### General commands & aliases by Roy Curtis
# ### Licensed under MIT, 2014
# uuuuuuuuuuuuuuuuuuuu
# u" uuuuuuuuuuuuuuuuuu "u
# u" u$$$$$$$$$$$$$$$$$$$$u "u
# u" u$$$$$$$$$$$$$$$$$$$$$$$$u "u
# u" u$$$$$$$$$$$$$$$$$$$$$$$$$$$$u "u
# u" u$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$u "u
# u" u$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$u "u IT IS CRITICAL THAT ALL ADDITIONS,
# $ $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ $ REMOVALS OR MODIFICATIONS TO COMMANDS
# $ $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ $ IN THIS SKRIPT FILE ARE TESTED WITH A
# $ $$$" ... "$... ...$" ... "$$$ ... "$$$ $ PLAYER IN THE DERPI TO ENSURE NO NEW
# $ $$$u `"$$$$$$$ $$$ $$$$$ $$ $$$ $$$ $ EXPLOITS OR HOLES ARE INTRODUCED.
# $ $$$$$$uu "$$$$ $$$ $$$$$ $$ """ u$$$ $
# $ $$$""$$$ $$$$ $$$u "$$$" u$$ $$$$$$$$ $ PLEASE ALWAYS NOTIFY STAFF WHEN ANY
# $ $$$$....,$$$$$..$$$$$....,$$$$..$$$$$$$$ $ CHANGE IS MADE IN THIS FILE.
# $ $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ $
# "u "$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$" u" PLEASE ALWAYS TEST ANY CHANGES MADE
# "u "$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$" u" IN THIS FILE.
# "u "$$$$$$$$$$$$$$$$$$$$$$$$$$$$" u"
# "u "$$$$$$$$$$$$$$$$$$$$$$$$" u" - Roy
# "u "$$$$$$$$$$$$$$$$$$$$" u"
# "u """""""""""""""""" u"
# """"""""""""""""""""
command /spawn:
description: Takes you to the server's spawn
aliases: /hub, /lobby
permission: multiverse.core.spawn.self
executable by: players
trigger:
player does not have permission "derpi.inmate"
execute console command "/mv tp %player% a:world"
command /servertime:
description: Gets the server's IRL time/date
aliases: /stime, /date
executable by: players and console
trigger:
message "&7*** Current server date/time: &f%now%"
command /links:
description: Shows a list of useful Gamealition websites
aliases: /www
executable by: players and console
trigger:
message "&B&LGamealition &f&lSurvival &flinks:"
message "&f• &3gamealition.com &f- Official"
message "&f• &3forums.gamealition.com &f- Forums"
message "&f• &3discord.gamealition.com &f- Discord"
message "&f• &3survival.gamealition.com/rules &f- Rules"
message "&f• &3survival.gamealition.com/dynmap &f- Dynmap"
message "&f• &3survival.gamealition.com/features &f- Features"
message "&f• &3survival.gamealition.com/changelog &f- Changelog"
message "&f• &3survival.gamealition.com/bugs &f- Known issues"
message "&f• &3stitchhasaglitch.com/mcshopdex &f- Stitch's Shop Index"
command /color:
description: Prints a list of formatting codes
aliases: /colors, /formatting
executable by: players and console
trigger:
message "&B&LFormatting codes&r - Put these digits after &!"
message "&00 - Black &11 - Blue &22 - Green &33 - Dark Cyan"
message "&44 - Dark Red &55 - Purple &66 - Orange &77 - Grey"
message "&88 - Dark Grey &99 - Blue &AA - Lime &BB - Cyan"
message "&CC - Red &DD - Magenta &EE - Yellow &FF - White"
message "L - &LBold&R K - &KMagic&R M - &MStrike&R N - &NUnderline"
message "O - &OItalic&R R - &RReset"
command /modreq [<text>]:
description: Files a ticket for staff to handle at current location. Alias for "/ticket new"
executable by: players
permission: ticketmaster.user.basic
trigger:
if arg 1 is not set:
# Prevent sending "<none>" and let Ticket-Master handle error
player command "/ticket new"
else:
player command "/ticket new %arg 1%"
command /shrug [<text>]:
description: Allows for shrugging
executable by: players
permission: gamealition.approved
permission message: &c*** Can't do that until approved! Try &3/approve-me &cfirst.
trigger:
if arg 1 is not set:
player command "/me ¯\_(ツ)_/¯"
else:
player command "/me %arg 1% ¯\_(ツ)_/¯"
command /broadcast-irc <text>:
description: Broadcasts a message to both in-game and Discord
executable by: players and console
permission: gamealition.mod-high
trigger:
broadcast colored arg 1
console command "/discord bcast %colored arg 1%"
command /fixtoggle:
aliases: /fixtoggles, /fixsign, /fixsigns, /fixtogglesigns, /reloadsignshop
permission: gamealition.approved
permission message: &c*** Can't do that until approved! Try &3/approve-me &cfirst.
trigger:
{fixtoggle.lastused} was less than a minute ago:
message "&7*** This command has a minute cooldown. Try again later"
stop
set {fixtoggle.lastused} to now
message "&7*** &fSignShop has been reloaded"
execute console command "/signshop reload"
command //replacestair <text> <text>:
description: Assists with replacing stairs with the correct orientation
aliases: //replacestairs
executable by: players
permission: worldedit.region.replace
trigger:
execute player command "//replace %arg 1%:0 %arg 2%:0"
execute player command "//replace %arg 1%:1 %arg 2%:1"
execute player command "//replace %arg 1%:2 %arg 2%:2"
execute player command "//replace %arg 1%:3 %arg 2%:3"
execute player command "//replace %arg 1%:4 %arg 2%:4"
execute player command "//replace %arg 1%:5 %arg 2%:5"
execute player command "//replace %arg 1%:6 %arg 2%:6"
execute player command "//replace %arg 1%:7 %arg 2%:7"
command /dmap-enable <text> <boolean>:
description: Shortcut for /dmap worldset <worldname> enabled:<bool>
permission: dynmap.dmap.worldset
executable by: players and console
trigger:
execute player command "/dynmap pause all"
execute player command "/dmap worldset %arg 1% enabled:%arg 2%"
execute player command "/dynmap pause none"
command /dynmap-here [<player>]:
description: Broadcasts a link to Dynmap zoomed to your location
executable by: players
usage: /dynmap-here [<target>]
permission: gamealition.approved
permission message: &c*** Can't do that until approved! Try &3/approve-me &cfirst.
trigger:
set {_url} to "survival.gamealition.com/dynmap/%player's world%/%rounded player's x-coordinate%/%rounded player's y-coordinate%/%rounded player's z-coordinate%"
if arg 1 is set:
message "*** Your Dynmap location was sent to %arg 1%"
message "*** %player% sent you a Dynmap link:" to arg 1
message "&3%{_url}%" to arg 1
else:
console command "/broadcast-irc *** Dynmap URL for %player%'s location: &3http://%{_url}%"
command /gaybrush:
description: Fabulous!
executable by: players
trigger:
player command "//none"
player command "//br cyl 35:0,35:1,35:2,35:3,35:4,35:5,35:6,35:7,35:8,35:9,35:10,35:11,35:12,35:13,35:14,35:15 10"
command /item-destroy:
description: Destroy's currently held item
permission: gamealition.mod-high
executable by: players
trigger:
player is holding anything
message "*** Destroyed %player's held item%"
delete player's held item
command /item-damage <number>:
description: Sets damage value of held item
permission: gamealition.mod-high
executable by: players
trigger:
player is holding anything
set data value of player's held item to arg 1
message "*** Set damage of %player's held item% to %arg 1%"
command /item-rename <text>:
description: Renames held item to the given text
executable by: players
permission: gamealition.approved
permission message: &c*** Can't do that until approved! Try &3/approve-me &cfirst.
trigger:
if player is holding air:
message "&c*** You need to hold the item you want to rename!"
exit trigger
set {_held} to player's held item
set {_name} to colored arg 1
# Take 1 level away from non-moderator players
if player doesn't have permission "gamealition.mod-high":
if player's level < 1:
message "&c*** You need at least 1 level to rename items!"
exit trigger
remove 1 from player's level
message "*** Renamed %{_held}% to ""%{_name}%&r"" at cost of 1 level"
else:
message "*** Renamed %{_held}% to ""%{_name}%&r"""
set name of {_held} to {_name}
command /item-lore <text>:
description: Sets lore tagline of held item
permission: gamealition.mod-high
executable by: players
trigger:
player is holding anything
set 1st line of (player's held item)'s lore to colored arg 1
message "*** Set 1st lore line of %player's held item% to ""%colored arg 1%&r"""
# Courtesy of http://heads.freshcoal.com/maincollection.php
command /tea <player=%player%>:
permission: gamealition.mod-high
executable by: players
trigger:
message "*** Tea, earl grey, hot" to arg 1
execute console command "/give %arg 1% skull 1 3 {display:{Name:""Cup of Tea""},SkullOwner:{Name:""%arg 1%"",Id:""2a3545d4-3ea5-4d26-9033-c280476696e0"",Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvZDhlOTRkZGQ3NjlhNWJlYTc0ODM3NmI0ZWM3MzgzZmQzNmQyNjc4OTRkN2MzYmVlMDExZThlNGY1ZmNkNyJ9fX0=""}]}}}"
# Courtesy of http://heads.freshcoal.com/maincollection.php
command /coffee <player=%player%>:
permission: gamealition.mod-high
executable by: players
trigger:
message "*** Coffee, black" to arg 1
execute console command "/give %arg 1% skull 1 3 {display:{Name:""Cup of Coffee""},SkullOwner:{Name:""%arg 1%"",Id:""3c534489-c08b-4c4f-a5ec-9bd9934be7c4"",Properties:{textures:[{Value:""eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvNDExNTExYmRkNTViY2I4MjgwM2M4MDM5ZjFjMTU1ZmQ0MzA2MjYzNmUyM2Q0ZDQ2YzRkNzYxYzA0ZDIyYzIifX19""}]}}}"
command /isbanned <offline player>:
description: Checks if a player is banned
executable by: players and console
permission: gamealition.approved
permission message: &c*** Can't do that until approved! Try &3/approve-me &cfirst.
trigger:
if arg 1 is banned:
message "&7*** &f%arg 1%&7 is &cperma-banned"
message "&7*** For technical reasons, I cannot say when, why and by who"
else:
message "&7*** &f%arg 1%&7 is not banned"
command /age [<offline player = %player%>]:
description: Gets the server age of a player
executable by: players and console
permission: gamealition.approved
permission message: &c*** Can't do that until approved! Try &3/approve-me &cfirst.
trigger:
message "&7*** &2%arg 1%&f has been on the server..."
message "&7• UUID &f%{uuid.%arg 1%}%"
message "&7• Since &f%{age.%arg 1%}%"
message "&7• Since (UUID) &f%{age.%uuid of arg 1%}%"
message "&7• For &f%difference between {age.%arg 1%} and now%"
command /clearhistory <player>:
description: Clears internal Skript history for player
permission: gamealition.mod-high
executable by: players and console
trigger:
set {_name} to name of arg 1
set {_uuid} to uuid of arg 1
delete {age.%{_name}%}
delete {age.%{_uuid}%}
delete {uuid.%{_name}%}
delete {uuid.%{_uuid}%}
delete {lwctutorial.%{_name}%}
message "&7*** Cleared history for %{_name}%"
command /stoplag:
aliases: /halt-activity, /stopfire, /allowfire
executable by: players and console
trigger:
message "&8&o*** The command you have dialed is not in service, please try again later"
command /reload:
aliases: /spigot:restart, /bukkit:reload
executable by: players and console
trigger:
message "&8&o*** The command you have dialed is not in service, please try again later"
command /kill:
aliases: /spigot:kill, /bukkit:kill, /minecraft:kill
executable by: players and console
trigger:
message "&8&o*** The command you have dialed is not in service, please try again later"
command /kit:
aliases: /kits
executable by: players
trigger:
message "*** &cThere are no kits on this server! &fHowever, you can visit the Toolshed for free player-donated tools and armor. Just go south of spawn, or ask!"
command /rtp:
aliases: /random, /randomtp
executable by: players
trigger:
message "*** &cSorry, we don't do random teleports! &fJust go any direction from spawn, or ask for help finding land!"
command /wild:
executable by: players
trigger:
message "*** &2Looking for the wilderness? &fJust go any direction from spawn, or ask for help finding land!"
command /vote:
executable by: players
trigger:
message "*** &cThere is no voting on this server! &fJust playing here should be rewarding enough!"
command /tpa:
aliases: /tpahere, /tpaccept, /tpdeny, /tpask, /tpaall
executable by: players
trigger:
message "*** &cSorry, there are no player-to-player teleports! &fJust use our extensive road, rail, river and nether networks!"
command /nearby-entities [<number=120>]:
executable by: players
permission: gamealition.approved
permission message: &c*** Can't do that until approved! Try &3/approve-me &cfirst.
trigger:
set {_radius} to arg 1
message "*** Searching for entities in a %{_radius}% block radius:"
loop all entities in radius {_radius} around the player:
add 1 to {_nearresults::%loop-entity's type%}
loop {_nearresults::*}:
message "%loop-index%: %loop-value%"
command /entity-rundown [<number=120>]:
executable by: players and console
permission: gamealition.approved
permission message: &c*** Can't do that until approved! Try &3/approve-me &cfirst.
trigger:
set {_radius} to arg 1
message "*** Entities in %{_radius}% block radius around players:"
loop all players:
set {_runresults::%loop-player's name%} to amount of entities in radius {_radius} around loop-player
loop {_runresults::*}:
message "%loop-index%: %loop-value%"
delete {_runresults::*}
command /world-entities:
executable by: players
permission: gamealition.approved
permission message: &c*** Can't do that until approved! Try &3/approve-me &cfirst.
trigger:
message "*** Searching for entities in %player's world%:"
loop all entities in player's world:
add 1 to {_worldresults::%loop-entity's type%}
loop {_worldresults::*}:
message "%loop-index%: %loop-value%"
delete {_worldresults::*}
command /arm-armorstands:
description: Replaces all armor stands in inventory with ones that have arms
executable by: players
permission: gamealition.approved
permission message: &c*** Can't do that until approved! Try &3/approve-me &cfirst.
trigger:
set {_stands} to number of armor stand in the player's inventory
if {_stands} is 0:
message "&7*** You do not have any armor stands to arm"
exit trigger
remove all armor stand from the player
execute console command "/minecraft:give %player% minecraft:armor_stand %{_stands}% 0 {EntityTag:{ShowArms:1}}"
message "&7*** Your armor stands have been replaced with armed ones"
# Wurst ForceOp catch
command /login <text>:
description: Login to OP rights (forgot password? try gamealition1)
executable by: players
trigger:
set {_password} to arg 1
if {_password} is player's name or "password" or "passwort" or "password1" or "passwort1" or "password123" or "passwort123" or "pass" or "pw" or "pw1" or "pw123" or "hallo" or "Wurst" or "wurst" or "1234" or "12345" or "123456" or "1234567" or "12345678" or "123456789" or "login" or "register" or "test" or "sicher" or "me" or "penis" or "penis1" or "penis123" or "minecraft" or "minecraft1" or "minecraft123" or "mc" or "admin" or "server" or "yourmom" or "tester" or "account" or "creeper" or "gronkh" or "lol" or "auth" or "authme" or "qwerty" or "qwertz" or "ficken" or "ficken1" or "ficken123" or "fuck" or "fuckme" or "fuckyou":
execute console command "/ban %player% [AUTO] Your Wurst is showing. [email protected]"
else:
kick the player because "*taps with wand* you are now an OP, %player%"