SHOW:
|
|
- or go back to the newest paste.
1 | # - This skript is made by RemixNsG - # | |
2 | # - If you have any errors please contact me on the reddit via /u/RemixNsG - # | |
3 | # - Send me a PRIVATE message - # | |
4 | # - Please make title <Skript: Skyhigh - Errors> - # | |
5 | # - Put your errors in the text box and i will get back to you on the error - # | |
6 | # - Gamemode Made by /u/MrTeamRaven - # | |
7 | # - Plugin by Ellzman - # | |
8 | # - Plugin Link: https://www.dropbox.com/s/5alpe67m6m709b8/Skyhigh.jar - # | |
9 | # - Also if this skript doesnt work revert to the Well made Plugin. - # | |
10 | ||
11 | ||
12 | ||
13 | options: | |
14 | # All broadcast Prefixs | |
15 | Pre:&8[&bSkyhigh&8] | |
16 | ||
17 | # Chat Color | |
18 | CC: &c | |
19 | ||
20 | # Sounds | |
21 | WrongUsage: random.break | |
22 | DefaultSound: note.pling | |
23 | ||
24 | - | # Command |
24 | + | |
25 | - | EnableCommand: /skyhigh-enable |
25 | + | command /skyhigh-enable: |
26 | - | DisableCommand: /skyhigh-disable |
26 | + | |
27 | trigger: | |
28 | - | # Variable |
28 | + | |
29 | - | Started: Skyhigh.Started |
29 | + | if {Skyhigh.Started} is not set: |
30 | - | command {@EnableCommand}: |
30 | + | set {Skyhigh.Started} to true |
31 | broadcast "{@Pre}{@CC} Skyhigh Enabled by: &l&f[%command sender%]... &l&bThe ground is not safe anymore." | |
32 | loop all players: | |
33 | execute console command "/playsound {@DefaultSound} %loop-player% ~ ~ ~ 1 1 1" | |
34 | - | if {@Started} is not set: |
34 | + | |
35 | - | set {@Started} to true: |
35 | + | |
36 | execute console command "/playsound {@WrongUsage} %command sender% ~ ~ ~ 1 1 1" | |
37 | else: | |
38 | message "{@CC}No Permission. Contact server administrators if you think this is a error." | |
39 | execute console command "/playsound {@WrongUsage} %command sender% ~ ~ ~ 1 1 1" | |
40 | ||
41 | command /skyhigh-disable: | |
42 | usage: /skyhigh-disable | |
43 | trigger: | |
44 | if player has permission "skyhigh.disable": | |
45 | if {Skyhigh.Started} is true: | |
46 | - | command {@DisableCommand}: |
46 | + | delete {Skyhigh.Started} |
47 | - | usage /skyhigh-disable |
47 | + | |
48 | loop all players: | |
49 | execute console command "/playsound {@DefaultSound} %loop-player% ~ ~ ~ 1 1 1" | |
50 | - | if {@Started} is true: |
50 | + | |
51 | - | delete {@Started} |
51 | + | |
52 | execute console command "/playsound {@WrongUsage} %command sender% ~ ~ ~ 1 1 1" | |
53 | else: | |
54 | message "{@CC}No Permission. Contact server administrators if you think this is a error." | |
55 | execute console command "/playsound {@WrongUsage} %command sender% ~ ~ ~ 1 1 1" | |
56 | ||
57 | - | execute console command "/playsound {@WrongUsage} %command-sender% ~ ~ ~ 1 1 1" |
57 | + | |
58 | if {Skyhigh.Started} is true: | |
59 | loop all players: | |
60 | if loop-player's y-coordinate is between 0 and 101: | |
61 | damage the loop-player by 0.5 hearts |