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