· 10 years ago · Aug 30, 2016, 02:58 AM
1# #! ██ ██ ██ ██ ████████ ████████████
2# #! ██ ██ ██ ██ ██ ██ ██ ██
3# #! ██ ██ ██ ██ ██ █ ██ ██
4# #! ███████████ ██ ██ ██ █ ██ ██
5# #! ██ ██ ██ ██ ████████████ ████████████
6# #! ██ ██ ██ ██ ██ █ ██ ██ █████ █████ █████
7# #! ██ ██ ██ ██ ██ ██ ██ ██ █████ █████ █████
8# #! ██ ██ ████████████ █████████ ██ ██ █████ █████ █████
9
10
11
12
13# © Made by Cuidabrutos | HubAdvanced™
14# #! ___________________________________
15# #! ________________________
16
17
18# License information:
19# ✲ You're allowed to change this file for yourself
20# ✲ You aren't allowed to re-publish this file
21# ✲ You aren't allowed to sell this file
22# ✲ You aren't allowed to remove the copyright text
23# ✲ You aren't allowed to copy this license information-text
24
25
26 options:
27#|---------------------------------------------------------------------------------------------------------------|#
28#|---------------------------------------------------------------------------------------------------------------|#
29#|---------------------------------------------------PERMISSIONS-------------------------------------------------|#
30#|---------------------------------------------------By-Cuidabrutos----------------------------------------------|#
31#|---------------------------------------------------Version 1.0-------------------------------------------------|#
32#|---------------------------------------------------Hub Advanced------------------------------------------------|#
33#|---------------------------------------------------------------------------------------------------------------|#
34#|---------------------------------------------------------------------------------------------------------------|#
35#|---------------------------------------------------------------------------------------------------------------|#
36#|---------------------------------------------------------------------------------------------------------------|#
37 #Permissions: EDITABLE
38 VIP: hubadvanced.vip # VIP PLAYERS!
39 PLAYERPer: hubadvanced.player #Permission for players
40 ADMINPer: hubadvanced.admin #Permission for admins
41#|---------------------------------------------------------------------------------------------------------------|#
42#|---------------------------------------------------------------------------------------------------------------|#
43#|---------------------------------------------------COMMANDS----------------------------------------------------|#
44#|---------------------------------------------------By-Cuidabrutos----------------------------------------------|#
45#|---------------------------------------------------Version 1.0-------------------------------------------------|#
46#|---------------------------------------------------Hub Advanced------------------------------------------------|#
47# /sethub - SetHub-SpawnJoin To Location Of Player!
48# /hub - Teleport To Hub!
49# /ha - List Of All Commands!
50#
51#
52#|---------------------------------------------------------------------------------------------------------------|#
53#|---------------------------------------------------------------------------------------------------------------|#
54#|---------------------------------------------------------------------------------------------------------------|#
55#|---------------------------------------------------NO EDIT-----------------------------------------------------|#
56#|---------------------------------------------------------------------------------------------------------------|#
57#|---------------------------------------------------------------------------------------------------------------|#
58#|---------------------------------------------------------------------------------------------------------------|#
59#|---------------------------------------------------------------------------------------------------------------|#
60#|---------------------------------------------------------------------------------------------------------------|#
61#|---------------------------------------------------------------------------------------------------------------|#
62#|---------------------------------------------------------------------------------------------------------------|#
63#|---------------------------------------------------------------------------------------------------------------|#
64#|---------------------------------------------------------------------------------------------------------------|#
65#|---------------------------------------------------------------------------------------------------------------|#
66#|---------------------------------------------------------------------------------------------------------------|#
67#|---------------------------------------------------------------------------------------------------------------|#
68#|---------------------------------------------------------------------------------------------------------------|#
69#|---------------------------------------------------------------------------------------------------------------|#
70#|---------------------------------------------------------------------------------------------------------------|#
71#|---------------------------------------------------------------------------------------------------------------|#
72#|---------------------------------------------------------------------------------------------------------------|#
73#|---------------------------------------------------------------------------------------------------------------|#
74#|---------------------------------------------------------------------------------------------------------------|#
75#|---------------------------------------------------------------------------------------------------------------|#
76#|---------------------------------------------------------------------------------------------------------------|#
77#|---------------------------------------------------------------------------------------------------------------|#
78#|------------------------------------------------COMMANDS-------------------------------------------------------|#
79#|---------------------------------------------------------------------------------------------------------------|#
80#|---------------------------------------------------------------------------------------------------------------|#
81#|---------------------------------------------------------------------------------------------------------------|#
82#|-------------------------------------------NO EDIT-------------------------------------------------------------|#
83#|---------------------------------------------------------------------------------------------------------------|#
84#|---------------------------------------------------------------------------------------------------------------|#
85#|---------------------------------------------------------------------------------------------------------------|#
86#|---------------------------------------------------------------------------------------------------------------|#
87command /block <text>:
88 permission: hubadvanced.admin
89 permission message: Need Permission!
90 trigger:
91 if arg-1 is set:
92 if {blockedcommands::*} contains "%arg-1%":
93 send "&4Alredy Blocked!"
94 else:
95 add argument-1 to {blockedcommands::*}
96 send "&2Command Blocked!"
97 else:
98 send "&4Specify Command!"
99command /invsee [<player>]:
100 permission: hubadvanced.admin
101 permission message: &4Need Permission!
102 trigger:
103 if arg 1 is not set:
104 send "&4Select One Player!"
105 else:
106 open the arg-1's inventory for the player
107command /unblock <text>:
108 permission: hubadvanced.admin
109 permission message: &4Need Permission!
110 trigger:
111 if arg-1 is set:
112 remove "%arg-1%" from {blockedcommands::*}
113 send "&2Unblocked Sussesful!"
114 else:
115 send "Specify Command!"
116command /sethub:
117 permission: hubadvanced.admin
118 trigger:
119 set {hub} to location of player
120 message "&6HUB ADVANCED &7» &cHub Set!"
121command /hathub [<item>]:
122 permission: hubadvanced.VIP
123 trigger:
124 set helmet slot of player to arg 1
125 set {_hat} to arg 1
126 send "&f%{HubAdvanced.config::successful-msg}%"
127 play raw sound "random.pop" at player with pitch 1 volume 10
128command /setmotd <text>:
129 description: set your Server MOTD
130 permission: hubadvanced.admin
131 trigger:
132 set {motd} to arg 1
133command /invseeoffline [<offlineplayer>]:
134 permission: hubadvanced.admin
135 trigger:
136 set {EditingInventory::%player%} to arg-1
137 open chest with 4 rows named "Inventory Of - %arg-1%" to player
138 set serialized contents of player's current inventory to {Inventory::%arg-1%}
139command /hub:
140 permission: hubadvanced.player
141 trigger:
142 teleport player to {hub}
143 send "&6HUB ADVANCED &7» &cTeleported to Hub!"
144command /hakick:
145 trigger:
146 execute console command "/kick %Player% &5&l⇒You have been Kicked for &6&lSwearing/Advertisingâ‡"
147command /hubadvanced [<text>] [<text>]:
148 aliases: /ha
149 permission: hubadvanced.admin
150 trigger:
151 if arg 1 isn't set:
152 message ""
153 message " &6HUB ADVANCED &7» &bv.1.0 BETA"
154 message " &a/ha chat <on/off> &7» &bDisable/Enable chat"
155 message " &a/ha setlobby &7» &bSet server lobby/spawn"
156 message " &a/ha reload &7» &bReload HubAdvanced"
157 message " &a/ha cc &7» &bRemoved chat."
158 message " &a/hub &7» &bTp To Hub!"
159 message " &a/sethub &7» &bSet Hub!"
160 message " &a/hathub <item> &7» &bSet Slot Helmet On Block!"
161 message " &a/invsee <player> &7» &bView inventory Of PLayer!"
162 message " &a/invseeoffline <player> &7» &bView Inventory Of Player Offline!"
163 message " &a/setmotd &7» &bSet MOTS SIGNS!"
164 message " &a/block <command> &7» &bBlock CMDS!"
165 message " &a/unblock <command> &7» &bUnblock CMDS!"
166 message " &4CHANGE CONFIGS IN config.yml "
167 else if arg 1 is "chat":
168 if player has permission "{@ADMINPer}":
169 if arg 2 is "on":
170 broadcast " &6HUB ADVANCED &7» &aChat enabled. "
171 set {chat} to true
172 if arg 2 is "off":
173 broadcast " &6HUB ADVANCED &7» &cChat disabled. "
174 set {chat} to false
175 else:
176 message " &6HUB ADVANCED &7» &cYou dont have permission for this command!"
177 else if arg 1 is "Reload":
178 if player has permission "{@ADMINPer}":
179 execute console command "/sk reload HubAdvanced"
180 execute console command "/sk reload HubAdvancedADDONLOGIN"
181 message " &6HUB ADVANCED &7» &aHubAdvanced reloaded!"
182 else:
183 message " &6HUB ADVANCED &7» &cYou dont have permission for this command!"
184 else if arg 1 is "cc":
185 if player has permission "{@ADMINPer}":
186 loop 100 times:
187 message " "
188 message " &6HUB ADVANCED &7» &a&aChat removed!"
189 else:
190 message " &6HUB ADVANCED &7» &cYou dont have permission for this command!"
191 else if arg 1 is "clearchat":
192 if player has permission "{@ADMINPer}":
193 loop 100 times:
194 message " "
195 message " &6HUB ADVANCED &7» &aChat removed!"
196 else:
197 message " &6HUB ADVANCED &7» &cYou dont have permission for this command!"
198 else:
199 message " &6HUB ADVANCED &7» &cCommand not found!"
200
201#EVENTOS NO CAMBIAR!!
202on load:
203 if folder "plugins/HubAdvanced" doesn't exists:
204 create folder "plugins/HubAdvanced"
205
206
207
208# CONFIG,YML NO TOCAR
209on load:
210 if file "plugins/HubAdvanced/config.yml" doesn't exists:
211 create file "plugins/HubAdvanced/config.yml"
212 wf "## Hub Advanced By Cuidabrutos ##" to "plugins/HubAdvanced/config.yml"
213 wf "## PERMISSIONS: ##" to "plugins/HubAdvanced/config.yml"
214 wf "## HubAdvanced.player - Permission To Players No OP No Vip ##" to "plugins/HubAdvanced/config.yml"
215 wf "## HubAdvanced.admin - Permission Total!##" to "plugins/HubAdvanced/config.yml"
216 wf "## HubAdvanced.VIP - Permission For Vip Players!##" to "plugins/HubAdvanced/config.yml"
217 wf "## Hub Advanced By Cuidabrutos ##" to "plugins/HubAdvanced/config.yml"
218 wf "## JOIN ON HUB ##" to "plugins/HubAdvanced/config.yml"
219 wf "teleport-to-lobby-on-join: true" to "plugins/HubAdvanced/config.yml"
220 wf "## WELCOME MESSAGE TRUE/FALSE ##" to "plugins/HubAdvanced/config.yml"
221 wf "welcome-msg: true" to "plugins/HubAdvanced/config.yml"
222 wf "borderline1: '&7&l&m=============================='" to "plugins/HubAdvanced/config.yml"
223 wf "line1: '&f&lWelcome to server! HubAdvanced!'" to "plugins/HubAdvanced/config.yml"
224 wf "borderline2: '&7&l&m=============================='" to "plugins/HubAdvanced/config.yml"
225 wf "## GRIFING TRUE/FALSE ##" to "plugins/HubAdvanced/config.yml"
226 wf "cancel-place: true" to "plugins/HubAdvanced/config.yml"
227 wf "cancel-break: true" to "plugins/HubAdvanced/config.yml"
228 wf "cancel-drop: true" to "plugins/HubAdvanced/config.yml"
229 wf "cancel-damage: true" to "plugins/HubAdvanced/config.yml"
230 wf "## Motd ##" to "plugins/HubAdvanced/config.yml"
231 wf "motdenable: true" to "plugins/HubAdvanced/config.yml"
232 set {HubAdvanced.config::bline1} to coloured value "borderline1" get of "plugins/HubAdvanced/config.yml"
233 set {HubAdvanced.config::bline2} to coloured value "borderline2" get of "plugins/HubAdvanced/config.yml"
234 set {HubAdvanced.config::tp-onjoin} to value "teleport-to-lobby-on-join" get of "plugins/HubAdvanced/config.yml"
235 set {HubAdvanced.config::welcome-msg} to value "welcome-msg" get of "plugins/HubAdvanced/config.yml"
236 set {HubAdvanced.config::cancel-place} to value "cancel-place" get of "plugins/HubAdvanced/config.yml"
237 set {HubAdvanced.config::cancel-break} to value "cancel-break" get of "plugins/HubAdvanced/config.yml"
238 set {HubAdvanced.config::cancel-drop} to value "cancel-drop" get of "plugins/HubAdvanced/config.yml"
239 set {HubAdvanced.config::cancel-damage} to value "cancel-damage" get of "plugins/HubAdvanced/config.yml"
240 set {HubAdvanced.config::particle} to value "particle" get of "plugins/HubAdvanced/config.yml"
241 set {HubAdvanced.config::motd.enable} to value "motdenable" get of "plugins/HubAdvanced/config.yml"
242 loop 9 times:
243 set {HubAdvanced.config::line%loop-number%} to coloured value "line%loop-number%" get of "plugins/HubAdvanced/config.yml"
244on load:
245 if file "plugins/HubAdvanced/hats.yml" doesn't exists:
246 create file "plugins/HubAdvanced/hats.yml"
247 wf "## HUB ADVANCED!!! HATS ##" to "plugins/HubAdvanced/hats.yml"
248 wf " " to "plugins/HubAdvanced/hats.yml"
249 wf " " to "plugins/HubAdvanced/hats.yml"
250 wf "## ITEM LIST ## - NO USE CODING COLOR!" to "plugins/HubAdvanced/hats.yml"
251 wf "oak-wood: Oak Wood" to "plugins/HubAdvanced/hats.yml"
252 wf "chest: Chest" to "plugins/HubAdvanced/hats.yml"
253 wf "sponge: Sponge" to "plugins/HubAdvanced/hats.yml"
254 wf "noteblock: Note Block" to "plugins/HubAdvanced/hats.yml"
255 wf "piston: Piston" to "plugins/HubAdvanced/hats.yml"
256 wf "tnt: TNT" to "plugins/HubAdvanced/hats.yml"
257 wf "obsidian: Obsidian" to "plugins/HubAdvanced/hats.yml"
258 wf "mob-spawner: Monster Spawner" to "plugins/HubAdvanced/hats.yml"
259 wf "oak-leaves: Oak Leaves" to "plugins/HubAdvanced/hats.yml"
260 wf "jack-o-lantern: Jack" to "plugins/HubAdvanced/hats.yml"
261 wf "soul-sand: Soul Sand" to "plugins/HubAdvanced/hats.yml"
262 wf "cactus: Cactus" to "plugins/HubAdvanced/hats.yml"
263 wf "snow: Snow" to "plugins/HubAdvanced/hats.yml"
264 wf "bookshelf: Bookshelf" to "plugins/HubAdvanced/hats.yml"
265 wf "glowstone: Glowstone" to "plugins/HubAdvanced/hats.yml"
266 wf "bedrock: Bedrock" to "plugins/HubAdvanced/hats.yml"
267 wf "glass: Glass" to "plugins/HubAdvanced/hats.yml"
268 wf "jukebox: Jukebox" to "plugins/HubAdvanced/hats.yml"
269 wf "clay-bricks-block: Bricks" to "plugins/HubAdvanced/hats.yml"
270 wf "ice: Ice" to "plugins/HubAdvanced/hats.yml"
271 wf "mossy-cobblestone: Moss Stone" to "plugins/HubAdvanced/hats.yml"
272 wf "nether-brick-stairs: Nether Brick Stairs" to "plugins/HubAdvanced/hats.yml"
273 wf "fence-gate: Oak Fence Gate" to "plugins/HubAdvanced/hats.yml"
274 wf "end-portal: End Portal" to "plugins/HubAdvanced/hats.yml"
275 wf "mycelium: Mycelium" to "plugins/HubAdvanced/hats.yml"
276 wf "green-wool: Lime Wool" to "plugins/HubAdvanced/hats.yml"
277 wf "crafting-table: Crafting Table" to "plugins/HubAdvanced/hats.yml"
278 wf "melon-block: Melon" to "plugins/HubAdvanced/hats.yml"
279 wf "emerald-block: Block of Emerald" to "plugins/HubAdvanced/hats.yml"
280 wf "lamp: Redstone Lamp" to "plugins/HubAdvanced/hats.yml"
281 wf "beacon: Beacon" to "plugins/HubAdvanced/hats.yml"
282 wf "anvil: Anvil" to "plugins/HubAdvanced/hats.yml"
283 wf "quartz-ore: Nether Quartz Ore" to "plugins/HubAdvanced/hats.yml"
284 wf "hay-block: Hay Bale" to "plugins/HubAdvanced/hats.yml"
285 wf "enchantmenttable: Encantment Table" to "plugins/HubAdvanced/hats.yml"
286 wf "gold-block: Block of Gold" to "plugins/HubAdvanced/hats.yml"
287 wf "redstone-ore: Redstone Ore" to "plugins/HubAdvanced/hats.yml"
288 wf "end-stone: End Stone" to "plugins/HubAdvanced/hats.yml"
289 wf "ender-chest: Ender Chest" to "plugins/HubAdvanced/hats.yml"
290 wf "dispenser: Dispenser" to "plugins/HubAdvanced/hats.yml"
291 wf "diamond-block: Block of Diamond" to "plugins/HubAdvanced/hats.yml"
292 wf "oak-wood-stairs: Oak Wood Stairs" to "plugins/HubAdvanced/hats.yml"
293 wf "close: '&4Close Menu'" to "plugins/HubAdvanced/hats.yml"
294 wf "next-pag: '&fPag. 2'" to "plugins/HubAdvanced/hats.yml"
295 wf "past-pag: '&fPag. 1'" to "plugins/HubAdvanced/hats.yml"
296 wf " " to "plugins/HubAdvanced/hats.yml"
297 wf "## Hats Messages ##" to "plugins/HubAdvanced/hats.yml"
298 wf "successful-msg: '&aYou have placed a hat!'" to "plugins/HubAdvanced/hats.yml"
299 wf "nopermission-msg: '&cNo permission!'" to "plugins/HubAdvanced/hats.yml"
300 set {HubAdvanced.config::itemname::oak-wood} to value "oak-wood" get of "plugins/HubAdvanced/hats.yml"
301 set {HubAdvanced.config::itemname::chest} to value "chest" get of "plugins/HubAdvanced/hats.yml"
302 set {HubAdvanced.config::itemname::sponge} to value "sponge" get of "plugins/HubAdvanced/hats.yml"
303 set {HubAdvanced.config::itemname::noteblock} to value "noteblock" get of "plugins/HubAdvanced/hats.yml"
304 set {HubAdvanced.config::itemname::piston} to value "piston" get of "plugins/HubAdvanced/hats.yml"
305 set {HubAdvanced.config::itemname::tnt} to value "tnt" get of "plugins/HubAdvanced/hats.yml"
306 set {HubAdvanced.config::itemname::obsidian} to value "obsidian" get of "plugins/HubAdvanced/hats.yml"
307 set {HubAdvanced.config::itemname::mob-spawner} to value "mob-spawner" get of "plugins/HubAdvanced/hats.yml"
308 set {HubAdvanced.config::itemname::oak-leaves} to value "oak-leaves" get of "plugins/HubAdvanced/hats.yml"
309 set {HubAdvanced.config::itemname::jack-o-lantern} to value "jack-o-lantern" get of "plugins/HubAdvanced/hats.yml"
310 set {HubAdvanced.config::itemname::soul-sand} to value "soul-sand" get of "plugins/HubAdvanced/hats.yml"
311 set {HubAdvanced.config::itemname::cactus} to value "cactus" get of "plugins/HubAdvanced/hats.yml"
312 set {HubAdvanced.config::itemname::snow} to value "snow" get of "plugins/HubAdvanced/hats.yml"
313 set {HubAdvanced.config::itemname::bookshelf} to value "bookshelf" get of "plugins/HubAdvanced/hats.yml"
314 set {HubAdvanced.config::itemname::glowstone} to value "glowstone" get of "plugins/HubAdvanced/hats.yml"
315 set {HubAdvanced.config::itemname::bedrock} to value "bedrock" get of "plugins/HubAdvanced/hats.yml"
316 set {HubAdvanced.config::itemname::glass} to value "glass" get of "plugins/HubAdvanced/hats.yml"
317 set {HubAdvanced.config::itemname::jukebox} to value "jukebox" get of "plugins/HubAdvanced/hats.yml"
318 set {HubAdvanced.config::itemname::clay-bricks-block} to value "clay-bricks-block" get of "plugins/HubAdvanced/hats.yml"
319 set {HubAdvanced.config::itemname::ice} to value "ice" get of "plugins/HubAdvanced/hats.yml"
320 set {HubAdvanced.config::itemname::mossy-cobblestone} to value "mossy-cobblestone" get of "plugins/HubAdvanced/hats.yml"
321 set {HubAdvanced.config::itemname::nether-brick-stairs} to value "nether-brick-stairs" get of "plugins/HubAdvanced/hats.yml"
322 set {HubAdvanced.config::itemname::fence} to value "fence-gate" get of "plugins/HubAdvanced/hats.yml"
323 set {HubAdvanced.config::itemname::end-portal} to value "end-portal" get of "plugins/HubAdvanced/hats.yml"
324 set {HubAdvanced.config::itemname::mycelium} to value "mycelium" get of "plugins/HubAdvanced/hats.yml"
325 set {HubAdvanced.config::itemname::green-wool} to value "green-wool" get of "plugins/HubAdvanced/hats.yml"
326 set {HubAdvanced.config::itemname::crafting-table} to value "crafting-table" get of "plugins/HubAdvanced/hats.yml"
327 set {HubAdvanced.config::itemname::melon-block} to value "melon-block" get of "plugins/HubAdvanced/hats.yml"
328 set {HubAdvanced.config::itemname::emerald-block} to value "emerald-block" get of "plugins/HubAdvanced/hats.yml"
329 set {HubAdvanced.config::itemname::lamp} to value "lamp" get of "plugins/HubAdvanced/hats.yml"
330 set {HubAdvanced.config::itemname::beacon} to value "beacon" get of "plugins/HubAdvanced/hats.yml"
331 set {HubAdvanced.config::itemname::anvil} to value "anvil" get of "plugins/HubAdvanced/hats.yml"
332 set {HubAdvanced.config::itemname::quartz-ore} to value "quartz-ore" get of "plugins/HubAdvanced/hats.yml"
333 set {HubAdvanced.config::itemname::hay-block} to value "hay-block" get of "plugins/HubAdvanced/hats.yml"
334 set {HubAdvanced.config::itemname::enchantmenttable} to value "enchantmenttable" get of "plugins/HubAdvanced/hats.yml"
335 set {HubAdvanced.config::itemname::gold-block} to value "gold-block" get of "plugins/HubAdvanced/hats.yml"
336 set {HubAdvanced.config::itemname::redstone-ore} to value "redstone-ore" get of "plugins/HubAdvanced/hats.yml"
337 set {HubAdvanced.config::itemname::end-stone} to value "end-stone" get of "plugins/HubAdvanced/hats.yml"
338 set {HubAdvanced.config::itemname::ender-chest} to value "ender-chest" get of "plugins/HubAdvanced/hats.yml"
339 set {HubAdvanced.config::itemname::dispenser} to value "dispenser" get of "plugins/HubAdvanced/hats.yml"
340 set {HubAdvanced.config::itemname::diamond-block} to value "diamond-block" get of "plugins/HubAdvanced/hats.yml"
341 set {HubAdvanced.config::itemname::oak-wood-stairs} to value "oak-wood-stairs" get of "plugins/HubAdvanced/hats.yml"
342 set {HubAdvanced.config::closegui} to colored value "close" get of "plugins/HubAdvanced/hats.yml"
343 set {HubAdvanced.config::nextpag-gui} to colored value "next-pag" get of "plugins/HubAdvanced/hats.yml"
344 set {HubAdvanced.config::pastpag-gui} to colored value "past-pag" get of "plugins/HubAdvanced/hats.yml"
345 set {HubAdvanced.config::name-gui1} to colored value "gui1" get of "plugins/HubAdvanced/hats.yml"
346 set {HubAdvanced.config::name-gui2} to colored value "gui2" get of "plugins/HubAdvanced/hats.yml"
347 set {HubAdvanced.config::successful-msg} to colored value "successful-msg" get of "plugins/HubAdvanced/hats.yml"
348 set {HubAdvanced.config::nopermission-msg} to colored value "nopermission-msg" get of "plugins/HubAdvanced/hats.yml"
349
350
351
352
353on load:
354 set {chat} to true
355 broadcast " &6HUB ADVANCED &7» &aHub Advanced enabled!"
356
357on drop:
358 if player has permission "{@ADMINPer}":
359 stop
360 else:
361 cancel event
362 message " &6HUB ADVANCED &7» &cYou dont have permission for drop items!" to player
363on load:
364 if "%World of player%" is not "{worldhub}":
365 set {worldhub} to false in world
366on damage of player:
367 if {HubAdvanced.config::cancel-damage} is "true":
368 victim is in world {HubAdvanced.world}:
369 cancel event
370 if damage was caused by void:
371 make victim execute command "/hub"
372on drop:
373 if {HubAdvanced.config::cancel-drop} is "true":
374 player is in world {HubAdvanced.world}:
375 if player does not have permission "HubAdvanced.admin":
376 cancel event
377on break:
378 if {HubAdvanced.config::cancel-break} is "true":
379 player is in world {HubAdvanced.world}:
380 if player does not have permission "HubAdvanced.admin":
381 cancel event
382on place:
383 if {HubAdvanced.config::cancel-place} is "true":
384 player is in world {HubAdvanced.world}:
385 if player does not have permission "HubAdvanced.admin":
386 cancel event
387on respawn:
388 make player execute command "/hub"
389on quit:
390 set {Inventory::%player%} to serialized contents of player's inventory
391
392on join:
393 set serialized contents of player's inventory to {Inventory::%player%}
394
395on inventory close:
396 {EditingInventory::%player%} is set
397 set {Inventory::%{EditingInventory::%player%}%} to serialized contents of player's current inventory
398 delete {EditingInventory::%player%}
399
400on join:
401 if {HubAdvanced.config::tp-onjoin} is "true":
402 make player execute command "/hub"
403 heal the player
404 add 10 to hunger level
405
406on join:
407 if {HubAdvanced.config::welcome-msg} is "true":
408 wait 1 seconds
409 loop 200 times:
410 send " "
411 send "&f%{HubAdvanced.config::bline1}%"
412 loop 9 times:
413 if {HubAdvanced.config::line%loop-number%} is set:
414 send "&f%{HubAdvanced.config::line%loop-number%}%"
415 send "&f%{HubAdvanced.config::bline2}%"
416
417on load:
418 loop 9 times:
419 if {HubAdvanced.config::line%loop-number%} is "":
420 delete {HubAdvanced.config::line%loop-number%}
421
422on server ping:
423 if {HubAdvanced.config::motd.enable} is "true":
424 set motd to "%{motd}%"
425on break:
426 if player has permission "{@ADMINPer}":
427 stop
428 else:
429 cancel event
430 message " &6HUB ADVANCED &7» &cYou dont have permission for break!" to player
431
432on place:
433 if player has permission "{@ADMINPer}":
434 stop
435 else:
436 cancel event
437 message " &6HUB ADVANCED &7» &cYou dont have permission for break!" to player
438
439on weather change to rain or thunder:
440 set weather to sunny
441 set time to 12:00
442 execute console command "/gamerule doDaylightCycle true"
443 execute console command "/gamerule commandBlockOutput false"
444on chat:
445 replace all "<3" in the message with "&c&lâ¤&f"
446 replace all "{music}" in the message with "&a&l♫&f"
447 replace all "{nuclear}" in the message with "&6☢&f"
448 replace all ":D" in the message with "&aツ&f"
449 replace all "{x}" in the message with "&r✘&f"
450 replace all "{tm}" in the message with "&fâ„¢&f"
451 replace all "{sol}" in the message with "&e☀&f"
452 replace all "{human}" in the message with "&r웃&f"
453 replace all "{nazi}" in the message with "&c&lå&f"
454on command:
455 loop {blockedcommands::*}:
456 if command is loop-value:
457 cancel event
458 send "&4Command Blocked!"
459 stop loop
460every 1 second:
461 loop all players:
462 set loop-player's food level to 20
463 set
464on place fire:
465 cancel event
466
467on place tnt:
468 cancel event
469
470On Pick Up:
471 cancel event
472
473on death of Witch:
474 clear drops
475
476on damage:
477 cancel event
478on chat:
479 replace all "IP:" in message with "!Blocked!"
480 replace all "Join Now!" in message with "!Blocked!"
481 replace all "Join Now" in message with "!Blocked!"
482 replace all "Everyone Leave!" in message with "!Blocked!"
483 replace all "Join that server" in message with "!Blocked!"
484 replace all "Play." in message with "!Blocked!"
485 replace all ".com" in message with "!Blocked!"
486 replace all ".net" in message with "!Blocked!"
487 replace all ".org" in message with "!Blocked!"
488 replace all ".tk" in message with "!Blocked!"
489 replace all "Mc." in message with "!Blocked!"
490 replace all "23." in message with "!Blocked!"
491 replace all "192." in message with "!Blocked!"
492 replace all ":25565" in message with "!Blocked!"
493 replace all "cosmic" in message with "!Blocked!"
494 replace all "Fuck" in message with "!Blocked!"
495 replace all "Shit" in message with "!Blocked!"
496 replace all "F U C K" in message with "!Blocked!"
497 replace all "Fuk" in message with "!Blocked!"
498 replace all "Fuc" in message with "!Blocked!"
499 replace all "Fukc" in message with "!Blocked!"
500 replace all "Fucker" in message with "!Blocked!"
501 replace all "Fuker" in message with "!Blocked!"
502 replace all "Fucer" in message with "!Blocked!"
503 replace all "Nigger" in message with "!Blocked!"
504 replace all "Nigga" in message with "!Blocked!"
505 replace all "Niggar" in message with "!Blocked!"
506 replace all "Niger" in message with "!Blocked!"
507 replace all "Negro " in message with "!Blocked!"
508 replace all "DOT " in message with "!Blocked!"
509 replace all "(Dot)" in message with "!Blocked!"
510 replace all "Snow" in message with "☃ Snow ☃"
511 replace all "Cunt" in message with "!Blocked!"
512 replace all "Ass" in message with "!Blocked!"
513 replace all "bitch" in message with "!Blocked!"
514 replace all "bish" in message with "!Blocked!"
515 replace all "hell" in message with "!Blocked!"
516 replace all "WTF" in message with "!Blocked!"
517 replace all "Bich" in message with "!Blocked!"
518 replace all "bitches" in message with "!Blocked!"
519 replace all "Jew" in message with "!Blocked!"
520 replace all "Dick" in message with "!Blocked!"
521 replace all "Pussy" in message with "!Blocked!"
522 replace all "D1k" in message with "!Blocked!"
523 replace all "Dik" in message with "!Blocked!"
524 replace all "Dic" in message with "!Blocked!"
525 replace all "Fulk" in message with "!Blocked!"
526 replace all "Whore" in message with "!Blocked!"
527 replace all "Suck it" in message with "!Blocked!"
528 replace all "Ddos" in message with "!Blocked!"
529 replace all "Dos" in message with "!Blocked!"
530 replace all "boot" in message with "!Blocked!"
531 replace all "I am going to hack you" in message with "!Blocked!"
532 replace all "porn" in message with "!Blocked!"
533 replace all "pornhub" in message with "!Blocked!"
534 replace all "redtube" in message with "!Blocked!"
535 replace all "xvideos" in message with "!Blocked!"
536 replace all "Kill your self" in message with "!Blocked!"
537 replace all "aids" in message with "!Blocked!"
538 replace all "herpes" in message with "!Blocked!"
539
540
541
542
543
544
545
546on chat:
547 if message contains "!Blocked!":
548 wait 1 second
549 make player execute command "/me I just tried to Advertise/Swear!"
550 message "&6&lI have been kicked for swearing/Advertising"
551 message "&3&lStaff have been Notified!"
552 make player execute command "/hakick"