View difference between Paste ID: jTienaLy and eSuRs42E
SHOW: | | - or go back to the newest paste.
1
# # # # # # # # # # # # # # # #
2
#                             #
3
#       Name: Options         #
4
#       Author: FrostedWeFall #
5
#       Version: 1.1          #
6
#                             #
7
# # # # # # # # # # # # # # # #
8
 
9
options:
10
    NoPerm: &8» &7You require the rank &4[ADMINISTRATOR]&7 to execute that command!"
11
   
12
on join:
13
    clear player's inventory
14
    wait 3 ticks
15
    set slot 1 of player to ender_chest named "&eGadgets &7(Right Click)"
16
    set slot 7 of player to redstone_repeater named "&eOptions &7(Right Click)"  with lore "&7Right click to open the Options menu"
17
    set slot 4 of player to player's skull named "&bFriends &7(Right Click)"  with lore "&7Right click to see Friends list"
18
    set slot 8 of player to clock named "&aServer Selector &7(Right Click)"  with lore "&7Right click to change lobbys"
19
    set slot 17 of player to arrow
20
on drop:
21
    world is "hub"
22
    cancel event
23
on respawn:
24
    clear player's inventory
25
    wait 3 ticks
26
    set slot 7 of player to redstone_repeater named "&eOptions &7(Right Click)"  with lore "&7Right click to open the Options menu"
27
    set slot 8 of player to clock named "&aServer Selector &7(Right Click)"  with lore "&7Right click to change lobbys"
28
    set slot 4 of player to player's skull named "&bFriends &7(Right Click)"  with lore "&7Right click to see Friends list"
29
    set slot 0 of player to ender_chest named "&eGadgets &7(Right Click)"
30
    set slot 17 of player to arrow
31
 
32
command /optionshelp:
33
    permission: "admin.options"
34
    permission message: {@NoPerm}
35
    trigger:
36
        message "&8------------------------"
37
        message "            &e&nOptions:"
38
        message ""
39
        message "&7Commands:"
40
        message "&b/options &8(open options menu)"
41
        message "&b/help &8(opens help menu)"
42
        message "&b/optionshelp &8(help for the skript)"
43
        message ""
44
        message "             &e&nGadgets"
45
        message ""
46
        message "&b/gadgets &8(open menu gadgets)"
47
        message "&8------------------------"
48
        play raw sound "random.orb" at player with pitch 1 volume 1
49
command /buyarank:
50
    trigger:
51
        message "&4TNTSpleef: &7Buy your rank to get the best benefits, Link: &9https://tntspleefminehut.buycraft.net/"
52
        play raw sound "random.orb" at player with pitch 1 volume 1
53
command /msgfly:
54
    trigger:
55
        message "&4TNTSpleef: &7Use the dye below to access your options!"
56
command /msgspeed:
57
    trigger:
58
        message "&4TNTSpleef: &7Use the dye below to access your options!"
59
command /options:
60
    trigger:
61
        if player has permission "vip.options":
62
            open chest with 6 rows named "&7Player options" to player
63
            wait 0.1 seconds
64
            format slot 0 of player with arrow named "&cBack" with lore "&7Close options menu." to close
65
            format slot 11 of player with experience bottle named "&cFly" with lore "&7Use fly Right Click" to run [make player execute command "/msgfly"]
66
            format slot 19 of player with 351:8 named "&cFly" with lore "&4¡Click to deactivate!" to close then run [make player execute command "/f off"]
67
            format slot 21 of player with 351:10 named "&aFly" with lore "&2¡Click to activate!" to close then run [make player execute command "/f on"]
68
            format slot 15 of player with diamond_boots named "&aSpeed II" with lore "&7Use Speed II Right Click" to run [make player execute command "/msgspeed"]
69
            format slot 23 of player with 351:8 named "&cSpeed II" with lore "&4¡Click to deactivate!" to close then run [make player execute command "/speed no"]
70
            format slot 25 of player with 351:10 named "&aSpeed II" with lore "&2¡Click to activate!" to close then run [make player execute command "/speed yes"]
71
            format slot 37 of player with 368 named "&c¡Off!" with lore "&7View players" to close then run [make player execute command "/p off"]
72
            format slot 38 of player with 381 named "&a¡On!" with lore "&7View players" to close then run [make player execute command "/p on"]
73
            format slot 42 of player with 35:5 named "&7Tag example: &a%player%" with lore "&7Click to have this tag||&7You need: &a[VIP]" to close then run [make player execute command "/nick &a%player%"]
74
            format slot 43 of player with 35:10 named "&7Tag example: &5%player%" with lore "&7Click to have this tag||&7You need: &a[VIP]" to close then run [make player execute command "/nick &5%player%"]
75
            format slot 31 of player with player's skull named "&2¡Buy a Rank!" with lore "&7Buy your rank||&7and gain advantages" to close then run [make player execute command "/buyarank"]
76
 
77
on rightclick with redstone_repeater:
78
    if name of player's tool contains "&eOptions &7(Right Click)":
79
        wait 3 ticks
80
        make player execute command "options"
81-
command /f [<text>]:
81+
82
    permission: "vip.options"
83
    permission message: {@NoPerm}
84
    trigger:
85
        if arg 1 is "on":
86-
            Send "&aFly Activated correctly" to player
86+
87-
            set player's fly mode to on
87+
88
        if arg 1 is "off":
89-
            Send "&4Fly Disabled correctly" to player
89+
90-
            set player's fly mode to off
90+
91
       
92
command /speed [<text>]:
93
    permission: "vip.options"
94
    permission message: {@NoPerm}
95
    trigger:
96
        if arg 1 is "yes":
97
            Send "&aSpeed II Activated correctly" to player
98
            apply speed to player for 100 days
99
        if arg 1 is "no":
100
            Send "&4Speed II Disabled correctly" to player
101
            remove speed from player
102
           
103
command /nick <text> [<player>]:
104
    aliases:nickname
105
    permission message: {@NoPerm}
106
    permission: "vip.options"
107
    usage: /nick <NickName> [<Player (If it is not you!) >]
108
    trigger:
109
        if argument 2 is not set:
110
            set display name of player to "%colored argument 1%"
111
            set {essentials.%player%.nick} to "%colored argument 1%"
112
            message "&aYour name was set to %argument 1%"
113
            send player title "&eNick changed" wim, h subtitle "&7¡Congratulations!" for 5 seconds
114
        else:
115
            player has permission "vip.options":
116
                set display name of argument 2 to "%colored argument 1%"
117
                set {essentials.%arg 2%.nick} to "%argument 1%"
118
                message "&2You set the Name of &4%argument 2% &4to %colored argument 1%"
119
                send player title "&eNick changed" with subtitle "&7¡Congratulations!" for 5 seconds
120
                stop
121
command /rhat [<text>]:
122
    aliases: rh
123
    trigger:
124
        if argument is "hat":
125
            if player have the permission "vip.options":
126
                equip player with leather helmet named "&bc&ao&el&co&dr"
127
                wait 1 seconds
128
                dye player's helmet blue
129
                wait 1 seconds
130
                dye player's helmet red
131
                wait 1 seconds
132
                dye player's helmet green
133
                wait 1 seconds
134
                dye player's helmet purple
135
                wait 1 seconds
136
                dye player's helmet pink
137
                wait 1 seconds
138
                dye player's helmet blue
139
                wait 1 seconds
140
                dye player's helmet red
141
                wait 1 seconds
142
                dye player's helmet green
143
                wait 1 seconds
144
                dye player's helmet purple
145
                wait 1 seconds
146
                dye player's helmet pink
147
                remove all leather helmet from player
148
 
149
 
150
               
151
#                     #
152
#       Gadgets       #
153
#                     #
154
           
155
on rightclick with Ender_chest:
156
            make player execute command "/gadgets"
157
on rightclick with redstone_repeater:
158
            make player execute command "/options"
159
on rightclick with clock:
160
            make player execute command "/lob list"
161
on rightclick with player's skull:
162
            make player execute command "/f list"
163
 
164
 
165
command /gadgets:
166
        trigger:
167
                if player has permission "vip.gadgets":
168
                open chest with 3 rows named "&8Gadgets" to player
169
                wait 0.1 seconds
170
                set {_p} to "%player%" parsed as player
171
               
172
                format slot 11 of player with Firework Rocket named "&2C&4h&2r&4i&2s&4t&2m&4a&2s" with lore "&7Click to activate||&7You need: &a[VIP]"  to close then run [make player execute command "/bom"]
173
                format slot 12 of player with Egg named "&eEgg &4G&bU&2N" with lore "&7Click to activate||&7You need: &a[VIP]"  to close then run [make player execute command "/egg"]
174
                format slot 14 of player with Golden Axe named "&eThor's hammer" with lore "&7Click to activate||&7You need: &a[VIP]" to close then run [execute player command "/fire"]
175
                format slot 15 of player with leather helmet named "&6Rainbow Hat" with lore "&7Click to activate||&7You need: &9[SKY]" to close then run [make player execute command "/rhat hat"]
176
 
177
Command /fire:
178
        permission: vip.axe
179
        permission message: {@NoPerm}
180
        trigger:
181
                set slot 8 of player to Golden Axe named "&eThor's hammer"
182
                send player title "&eThor's hammer" with subtitle "&7¡Activate!" for 5 seconds
183
                play raw sound "note.hat" at player with pitch 1 volume 1
184
 
185
Command /egg:
186
        permission: vip.egg
187
        permission message: {@NoPerm}
188
        trigger:
189
                set slot 8 of player to Egg named "&eEgg &4G&bU&2N"
190
                play raw sound "note.hat" at player with pitch 1 volume 1
191
 
192
Command /bom:
193
        permission: vip.firework
194
        permission message: {@NoPerm}
195
        trigger:
196
                set slot 8 of player to Firework Rocket named "&2C&4h&2r&4i&2s&4t&2m&4a&2s"
197
                play raw sound "note.hat" at player with pitch 1 volume 1
198
 
199
on click with a egg:
200
    player has the permission "vip.egg"
201
    shoot a chicken from the player
202
    wait 5 seconds
203
    kill all chickens in hub
204
 
205
on click with a golden axe:
206
    strike lightning at the targeted block