This repository was archived by the owner on Jan 3, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEvent_Variable_CORE_v2.0.1.sk
More file actions
254 lines (253 loc) · 11.7 KB
/
Event_Variable_CORE_v2.0.1.sk
File metadata and controls
254 lines (253 loc) · 11.7 KB
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
command /e <text> <text>:
description: Enables/Disables Different Variables/Events on the server.
usage: &b/e <event/variable> [enable/disable] &eOR &b/e check all &eOR &b/e admin on/off
aliases: e
executable by: players, console
permission: skript.trigger
trigger:
if arg-1 is "bypass" or "admin":
if arg-2 is "on":
set {bypass.%player%} to true
message "&5Server Settings> &6&lADMIN BYPASS MODE: &a&lTRUE"
else if arg-2 is "off":
set {bypass.%player%} to false
message "&5Server Settings> &6&lADMIN BYPASS MODE: &c&lFALSE"
if arg-1 is "check" or "c":
if arg-2 is "all" or "a":
if {bypass.%player%} is true:
message "&6&lADMIN BYPASS: &a&lTRUE"
else if {bypass.%player%} is false:
message "&6&lADMIN BYPASS: &c&lFALSE"
wait 5 ticks
if {pda} is true:
message "&ePlayer Damage&7: &cFalse"
else if {pda} is false:
message "&ePlayer Damage&7: &aTrue"
wait 5 ticks
if {eda} is true:
message "&eEntity Damage&7: &cFalse"
else if {eda} is false:
message "&eEntity Damage&7: &aTrue"
wait 5 ticks
if PvP is disabled:
message "&ePlayer vs. Player&7: &cFalse"
else if PvP is enabled:
message "&ePlayer vs. Player&7: &aTrue"
if {evp} is true:
message "&eEntity vs. Player&7: &cFalse"
else if {evp} is false:
message "&eEntity vs. Player&7: &aTrue"
wait 5 ticks
if {pve} is true:
message "&ePlayer vs. Entity&7: &cFalse"
else if {pve} is false:
message "&ePlayer vs. Entity&7: &aTrue"
wait 5 ticks
if {eve} is true:
message "&eEntity vs. Entity&7: &cFalse"
else if {eve} is false:
message "&eEntity vs. Entity&7: &aTrue"
wait 5 ticks
if {fd} is true:
message "&eFall Damage&7: &cFalse"
else if {fd} is false:
message "&eFall Damage&7: &aTrue"
wait 5 ticks
if {ed} is true:
message "&eExplosion Damage&7: &cFalse"
else if {ed} is false:
message "&eExplosion Damage&7: &aTrue"
wait 5 ticks
if {bp} is true:
message "&eBlock Placement&7: &cFalse"
else if {bp} is false:
message "&eBlock Placement&7: &aTrue"
wait 5 ticks
if {bb} is true:
message "&eBlock Break&7: &cFalse"
else if {bb} is false:
message "&eBlock Break&7: &aTrue"
wait 5 ticks
if {id} is true:
message "&eItem Drop&7: &cFalse"
else if {id} is false:
message "&eItem Drop&7: &aTrue"
wait 5 ticks
if {ip} is true:
message "&eItem Pickup&7: &cFalse"
else if {ip} is false:
message "&eItem Pickup&7: &aTrue"
wait 5 ticks
if {h} is true:
message "&eHunger&7: &cFalse"
else if {h} is false:
message "&eHunger&7: &aTrue"
if arg-1 is "pvp":
if arg-2 is "enable" or "e":
enable PvP in all worlds
broadcast "&5Server Settings> &7Player vs. Player: &aTrue"
execute console command "/playsound minecraft:block.note.harp master @a ~ ~ ~ 10000000"
else if arg-2 is "disable" or "d":
disable PvP in all worlds
broadcast "&5Server Settings> &7Player vs. Player: &cFalse"
execute console command "/playsound minecraft:block.note.harp master @a ~ ~ ~ 10000000"
if arg-1 is "evp":
if arg-2 is "enable" or "e":
set {evp} to false
broadcast "&5Server Settings> &7Entity vs. Player: &aTrue"
execute console command "/playsound minecraft:block.note.harp master @a ~ ~ ~ 10000000"
else if arg-2 is "disable" or "d":
set {evp} to true
broadcast "&5Server Settings> &7Entity vs. Player: &cFalse"
execute console command "/playsound minecraft:block.note.harp master @a ~ ~ ~ 10000000"
if arg-1 is "pve":
if arg-2 is "enable" or "e":
set {pve} to false
broadcast "&5Server Settings> &7Player vs. Entity: &aTrue"
execute console command "/playsound minecraft:block.note.harp master @a ~ ~ ~ 10000000"
else if arg-2 is "disable" or "d":
set {pve} to true
broadcast "&5Server Settings> &7Player vs. Entity: &cFalse"
execute console command "/playsound minecraft:block.note.harp master @a ~ ~ ~ 10000000"
if arg-1 is "pda" or "player_damage_all":
if arg-2 is "enable" or "e":
set {pda} to false
broadcast "&5Server Settings> &7Player Damage: &aTrue"
execute console command "/playsound minecraft:block.note.harp master @a ~ ~ ~ 10000000"
else if arg-2 is "disable" or "d":
set {pda} to true
broadcast "&5Server Settings> &7Player Damage: &cFalse"
execute console command "/playsound minecraft:block.note.harp master @a ~ ~ ~ 10000000"
if arg-1 is "fd" or "fall_damage":
if arg-2 is "enable" or "e":
set {fd} to false
broadcast "&5Server Settings> &7Fall Damage: &aTrue"
execute console command "/playsound minecraft:block.note.harp master @a ~ ~ ~ 10000000"
else if arg-2 is "disable" or "d":
set {fd} to true
broadcast "&5Server Settings> &7Fall Damage: &cFalse"
execute console command "/playsound minecraft:block.note.harp master @a ~ ~ ~ 10000000"
if arg-1 is "bp" or "block_placement":
if arg-2 is "enable" or "e":
set {bp} to false
broadcast "&5Server Settings> &7Block Placement: &aTrue"
execute console command "/playsound minecraft:block.note.harp master @a ~ ~ ~ 10000000"
else if arg-2 is "disable" or "d":
set {bp} to true
broadcast "&5Server Settings> &7Block Placement: &cFalse"
execute console command "/playsound minecraft:block.note.harp master @a ~ ~ ~ 10000000"
if arg-1 is "bb" or "block_break":
if arg-2 is "enable" or "e":
set {bb} to false
broadcast "&5Server Settings> &7Block Break: &aTrue"
execute console command "/playsound minecraft:block.note.harp master @a ~ ~ ~ 10000000"
else if arg-2 is "disable" or "d":
set {bb} to true
broadcast "&5Server Settings> &7Block Break: &cFalse"
execute console command "/playsound minecraft:block.note.harp master @a ~ ~ ~ 10000000"
if arg-1 is "id" or "item_drop":
if arg-2 is "enable" or "e":
set {id} to false
broadcast "&5Server Settings> &7Item Drop: &aTrue"
execute console command "/playsound minecraft:block.note.harp master @a ~ ~ ~ 10000000"
else if arg-2 is "disable" or "d":
set {id} to true
broadcast "&5Server Settings> &7Item Drop: &cFalse"
execute console command "/playsound minecraft:block.note.harp master @a ~ ~ ~ 10000000"
if arg-1 is "ip" or "item_pickup":
if arg-2 is "enable" or "e":
set {ip} to false
broadcast "&5Server Settings> &7Item Pickup: &aTrue"
execute console command "/playsound minecraft:block.note.harp master @a ~ ~ ~ 10000000"
else if arg-2 is "disable" or "d":
set {ip} to true
broadcast "&5Server Settings> &7Item Pickup: &cFalse"
execute console command "/playsound minecraft:block.note.harp master @a ~ ~ ~ 10000000"
if arg-1 is "eda" or "entity_damage_all":
if arg-2 is "enable" or "e":
set {eda} to false
broadcast "&5Server Settings> &7Entity Damage: &aTrue"
execute console command "/playsound minecraft:block.note.harp master @a ~ ~ ~ 10000000"
else if arg-2 is "disable" or "d":
set {eda} to true
broadcast "&5Server Settings> &7Entity Damage: &cFalse"
execute console command "/playsound minecraft:block.note.harp master @a ~ ~ ~ 10000000"
if arg-1 is "ed" or "explosion_damage":
if arg-2 is "enable" or "e":
set {ed} to false
broadcast "&5Server Settings> &7Explosion Damage: &aTrue"
execute console command "/playsound minecraft:block.note.harp master @a ~ ~ ~ 10000000"
else if arg-2 is "disable" or "d":
set {ed} to true
broadcast "&5Server Settings> &7Explosion Damage: &cFalse"
execute console command "/playsound minecraft:block.note.harp master @a ~ ~ ~ 10000000"
if arg-1 is "h" or "Hunger":
if arg-2 is "enable" or "e":
set {h} to false
broadcast "&5Server Settings> &7Hunger: &aTrue"
execute console command "/playsound minecraft:block.note.harp master @a ~ ~ ~ 10000000"
else if arg-2 is "disable" or "d":
set {h} to true
broadcast "&5Server Settings> &7Hunger: &cFalse"
execute console command "/playsound minecraft:block.note.harp master @a ~ ~ ~ 10000000"
set hunger meter to 20
if arg-1 is "eve":
if arg-2 is "enable" or "e":
set {eve} to false
broadcast "&5Server Settings> &7Enity vs. Entity: &aTrue"
execute console command "/playsound minecraft:block.note.harp master @a ~ ~ ~ 10000000"
else if arg-2 is "disable" or "d":
set {eve} to true
broadcast "&5Server Settings> &7Enity vs. Entity: &cFalse"
execute console command "/playsound minecraft:block.note.harp master @a ~ ~ ~ 10000000"
on damage of a player:
{pda} is true
cancel event
on damage of player:
{evp} is true
attacker is not a player
cancel event
on damage of an entity:
{pve} is true
attacker is a player
cancel event
on damage of player:
{fd} is true
damage cause is fall
cancel event
on place:
{bp} is true
{bypass.%player%} is false
cancel event
on break:
{bb} is true
{bypass.%player%} is false
cancel event
on drop:
{id} is true
{bypass.%player%} is false
cancel event
on pick up:
{ip} is true
{bypass.%player%} is false
cancel event
on damage of an entity:
the entity is not a player
{eda} is true
cancel event
on damage:
{ed} is true
damage cause is entity explosion
cancel the event
damage cause is block explosion
cancel event
on hunger meter change:
{h} is true
set hunger meter to 20
on damage of an entity:
{eve} is true
attacker is not a player
cancel event
on join:
{bypass.%player%} is true
set {bypass.%player%} to false