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