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