Advertisement
Guest User

Untitled

a guest
Jan 18th, 2018
478
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 71.73 KB | None | 0 0
  1. on join:
  2. send player title "&6&lRide Factions" with subtitle "&f&lUtilize /login <senha>" for 1000 seconds
  3. on authme login:
  4. send player title "&a&lAutenticado!" with subtitle "&fSeja bem-vindo!" for 3 seconds
  5. on command "/kits":
  6. make player execute command "/kit"
  7. on server list ping:
  8. set motd to "&6&lRide Factions &7(1.8.*)%nl%&eServidor está &e&lonline &enovamente!"
  9. on command "/bau 1":
  10. cancel event
  11. stop
  12. command /ping [<text>]:
  13. trigger:
  14. send "&ePing: %ping of player%"
  15. command /yt:
  16. trigger:
  17. send ""
  18. send "&eRequisitos para o grupo Youtuber:"
  19. send " &fTem que ter 150 inscritos ou mais;"
  20. send " &fUm vídeo gravado em nosso servidor;"
  21. send ""
  22. send "&ePrevilégios gerais do grupo Youtuber:"
  23. send " &fTag &c[YouTuber] &fdentro do servidor;"
  24. send " &fAcessar o comando /youtubers;"
  25. send " &fPoder solicitar qualquer VIP;"
  26. send " &fReceber uma quantia em Cash periodicamente;"
  27. send ""
  28. on command "/skin atualizar":
  29. send "&aBaixando skin utilizada em sua conta da Mojang..." to player
  30. make player execute command "/skin %player%"
  31. cancel event
  32. stop
  33. command /echest [<offlineplayer>]:
  34. trigger:
  35. if sender have permission "campeao.group" or "heroi.group" or "lendario.group" or "supremo.group" or "imperador.group" or "ajudante.group" or "moderador.group" or "youtuber.group" or "admin.group" or "gerente.group" or "master.group":
  36. if arg 1 isn't set:
  37. open the player's ender chest to the player
  38. else:
  39. if player have permission "admin.group" or "gerente.group" or "master.group":
  40. open the arg 1's ender chest to the player
  41. else:
  42. open the player's ender chest to the player
  43. else:
  44. send "&cVocê precisa do grupo Campeão ou superior para executar este comando."
  45. command /status [<text>]:
  46. trigger:
  47. if player have permission "master.group":
  48. set {_freememory} to free memory
  49. set {_maxmemory} to max memory
  50. set {_tps} to tps
  51. send ""
  52. send "&fInformações sobre o servidor:"
  53. send " &eMultiCraft Account:"
  54. send " &fLogin: &7davixc555@hotmail.com"
  55. send " &fPassword: &7y5oC9q18bW"
  56. send " &eFTP Account:"
  57. send " &fLogin: &7davixc555@hotmail.com.953"
  58. send " &fPassword: &7y5oC9q18bW"
  59. send " &fHost: &7144.217.49.253"
  60. send " &fPort: &721"
  61. send ""
  62. else:
  63. send "&cVocê precisa do grupo Master ou superior para executar este comando."
  64. command /group [<offlineplayer>] [<text>]:
  65. aliases: group:group
  66. trigger:
  67. if sender have permission "group.set":
  68. if arg 1 isn't set:
  69. send "&cUtilize /group <jogador> para selecionar um tipo de grupo."
  70. if arg 1 is set:
  71. if arg 2 isn't set:
  72. send "&cUtilize /group <jogador> para selecionar um tipo de grupo."
  73. else:
  74. if arg 2 isn't "Default" or "Master" or "Gerente" or "Admin" or "Moderador" or "Ajudante" or "Youtuber" or "Imperador" or "Supremo" or "Lendario" or "Heroi" or "Campeao":
  75. send "&cVocê inseriu um nome de um grupo inválido."
  76. stop
  77. if arg 2 is "Master":
  78. if player have permission "gerente.group":
  79. send "&cVocê não tem permissão para executar este comando."
  80. stop
  81. if arg 2 is "Master" or "Gerente" or "Admin" or "Moderador" or "Ajudante" or "Youtuber" or "Default":
  82. if arg 2 is "Master":
  83. send "&eGrupo de '%arg 1%' definido para 'MASTER'."
  84. if arg 2 is "Gerente":
  85. send "&eGrupo de '%arg 1%' definido para 'MANAGER'."
  86. if arg 2 is "Admin":
  87. send "&eGrupo de '%arg 1%' definido para 'ADMINISTRATOR'."
  88. if arg 2 is "Moderador":
  89. send "&eGrupo de '%arg 1%' definido para 'MODERATOR'."
  90. if arg 2 is "Ajudante":
  91. send "&eGrupo de '%arg 1%' definido para 'HELPER'."
  92. if arg 2 is "Youtuber":
  93. send "&eGrupo de '%arg 1%' definido para 'YOUTUBER'."
  94. if arg 2 is "Default":
  95. send "&eGrupo de '%arg 1%' definido para 'DEFAULT'."
  96. set "%arg 1%.Group" to "%arg 2%" in yml file "plugins/Factions/data.yml"
  97. execute console command "/pex user %arg 1% group set %arg 2%"
  98. execute console command "/pex user %arg 1% group set %arg 2% WORLD"
  99. execute console command "/pex user %arg 1% group set %arg 2% MINE-1"
  100. execute console command "/pex user %arg 1% group set %arg 2% VIP-1"
  101. execute console command "/pex user %arg 1% group set %arg 2% ARENA-1"
  102. if arg 2 is "Imperador" or "Supremo" or "Lendario" or "Heroi" or "Campeao":
  103. if arg 2 is "Imperador":
  104. set {_Color} to "&b"
  105. set {_Vip} to "&b[Imperador]"
  106. send "&eGrupo de '%arg 1%' definido para 'EMPEROR'."
  107. if arg 2 is "Supremo":
  108. set {_Color} to "&4"
  109. set {_Vip} to "&4[Supremo]"
  110. send "&eGrupo de '%arg 1%' definido para 'SUPREME'."
  111. if arg 2 is "Lendario":
  112. set {_Color} to "&2"
  113. set {_Vip} to "&2[Lendário]"
  114. send "&eGrupo de '%arg 1%' definido para 'LEGENDARY'."
  115. if arg 2 is "Heroi":
  116. set {_Color} to "&5"
  117. set {_Vip} to "&5[Herói]"
  118. send "&eGrupo de '%arg 1%' definido para 'HERO'."
  119. if arg 2 is "Campeao":
  120. set {_Color} to "&3"
  121. set {_Vip} to "&3[Campeão]"
  122. send "&eGrupo de '%arg 1%' definido para 'CHAMPION'."
  123. set "%arg 1%.Group" to "%arg 2%" in yml file "plugins/Factions/data.yml"
  124. execute console command "/pex user %arg 1% group set %arg 2%"
  125. execute console command "/pex user %arg 1% group set %arg 2% WORLD"
  126. execute console command "/pex user %arg 1% group set %arg 2% MINE-1"
  127. execute console command "/pex user %arg 1% group set %arg 2% VIP-1"
  128. execute console command "/pex user %arg 1% group set %arg 2% ARENA-1"
  129. send all players title "%{_Color}%%arg 1%" with subtitle "&ftornou-se %{_Vip}%" for 3 seconds
  130. stop
  131. else:
  132. send "&cVocê precisa do grupo Gerente ou superior para executar este comando."
  133. stop
  134. on teleport:
  135. if world of player is "vip-1":
  136. set player's fly mode to true
  137. else:
  138. if player have permission "moderador.group" or "admin.group" or "gerente.group" or "master.group":
  139. stop
  140. else:
  141. set player's fly mode to false
  142. on teleport:
  143. set {_WarStatus} to value "Guerra.Status" get of "plugins/Factions/warsystem.yml"
  144. if {_WarStatus} is "true":
  145. if world of player is "arena-1":
  146. send "&cEste comando esta bloqueado neste periodo de Guerra."
  147. cancel event
  148. command /skyshop [<text>]:
  149. trigger:
  150. set {_cash} to value "%player%.Cash" get of "plugins/SkyCash/data.yml"
  151. set {_cash} to {_cash} parsed as integer
  152. if arg 1 is "Purificador":
  153. if {_cash} >= 250:
  154. remove 250 from {_cash}
  155. set "%player%.Cash" to "%{_cash}%" in yaml file "plugins/SkyCash/data.yml"
  156. make console execute command "darpurificador %player%"
  157. if arg 1 is "Poder":
  158. if {_cash} >= 100:
  159. remove 100 from {_cash}
  160. set "%player%.Cash" to "%{_cash}%" in yaml file "plugins/SkyCash/data.yml"
  161. make console execute command "api PODER_INSTANTANEO %player%"
  162. if arg 1 is "Caixa1":
  163. if {_cash} >= 5:
  164. remove 50 from {_cash}
  165. set "%player%.Cash" to "%{_cash}%" in yaml file "plugins/SkyCash/data.yml"
  166. make console execute command "givecaixa %player% basica 1"
  167. if arg 1 is "Caixa2":
  168. if {_cash} >= 200:
  169. remove 200 from {_cash}
  170. set "%player%.Cash" to "%{_cash}%" in yaml file "plugins/SkyCash/data.yml"
  171. make console execute command "givecaixa %player% avancada 1"
  172. if arg 1 is "Caixa3":
  173. if {_cash} >= 500:
  174. remove 500 from {_cash}
  175. set "%player%.Cash" to "%{_cash}%" in yaml file "plugins/SkyCash/data.yml"
  176. make console execute command "givecaixa %player% beacon 1"
  177. if arg 1 is "Lancador":
  178. if {_cash} >= 500:
  179. remove 500 from {_cash}
  180. set "%player%.Cash" to "%{_cash}%" in yaml file "plugins/SkyCash/data.yml"
  181. make console execute command "api LANCADOR %player%"
  182. if arg 1 is "ResetKDR":
  183. if {_cash} >= 500:
  184. remove 500 from {_cash}
  185. set "%player%.Cash" to "%{_cash}%" in yaml file "plugins/SkyCash/data.yml"
  186. make console execute command "api RESET_KDR %player%"
  187. command /vip [<text>]:
  188. aliases: vip:vip
  189. trigger:
  190. if arg 1 isn't set:
  191. if sender have permission "vip.teleport":
  192. if {Vip} is set:
  193. send ""
  194. send "&aSeja bem-vindo ao Mundo VIP."
  195. send ""
  196. play "LEVEL_UP" to player at volume 0.2
  197. teleport player to {Vip}
  198. else:
  199. send "&eOps, estamos preparando algo bem especial. A área VIP estará disponível em breve!"
  200. stop
  201. else:
  202. send "&cVocê precisa do grupo Campeão ou superior para executar este comando."
  203. stop
  204. if arg 1 is set:
  205. if sender have permission "master.group" or "gerente.group":
  206. set {Vip} to player's location
  207. send "&aDefinido o local da VIP."
  208. stop
  209. else:
  210. if sender have permission "vip.ir":
  211. if {Vip} isn't set:
  212. send ""
  213. send "&aSeja bem-vindo ao Mundo VIP."
  214. send ""
  215. play "LEVEL_UP" to player at volume 0.2
  216. teleport player to {Vip}
  217. else:
  218. send "&eOps, estamos preparando algo bem especial. A área VIP estará disponível em breve!"
  219. stop
  220. else:
  221. send "&cVocê precisa do grupo Campeão ou superior para executar este comando."
  222. stop
  223. command /tell [<offlineplayer>] [<text>]:
  224. trigger:
  225. set {_TellToggle} to value "%arg 1%.TellToggle" get of "plugins/Factions/data.yml"
  226. set {_TellToggleP} to value "%player%.TellToggle" get of "plugins/Factions/data.yml"
  227. if arg 1 is "toggle":
  228. if {_TellToggleP} isn't set:
  229. send "&cOcorreu um erro ao executar este comando, se o erro persistir contate um administrador."
  230. stop
  231. if {_TellToggleP} is "false":
  232. set "%player%.TellToggle" to "true" in yml file "plugins/Factions/data.yml"
  233. send "&aTell desativado."
  234. stop
  235. if {_TellToggleP} is "true":
  236. set "%player%.TellToggle" to "false" in yml file "plugins/Factions/data.yml"
  237. send "&aTell ativado."
  238. stop
  239. if arg 1 isn't set:
  240. send "&cUtilice /tell <jogador> <mensagem>."
  241. if arg 2 isn't set:
  242. send "&cUtilice /tell <jogador> <mensagem>."
  243. else:
  244. if arg 1 is player:
  245. send "&cConversar consigo mesmo costuma ser sinal de loucura, procure um especialista para tratar do caso."
  246. stop
  247. if {_TellToggle} is "true":
  248. send "&cEste jogador está com o recebimento de mensagens privadas desligado."
  249. stop
  250. set {_FactionTagA} to value "%arg 1%.FactionTag" get of "plugins/Factions/data.yml"
  251. set {_FactionRoleA} to value "%arg 1%.FactionRole" get of "plugins/Factions/data.yml"
  252. if {_FactionRoleA} is "LEADER":
  253. set {_RoleA} to "##"
  254. if {_FactionRoleA} is "OFFICER":
  255. set {_RoleA} to "*"
  256. if {_FactionRoleA} is "MEMBER":
  257. set {_RoleA} to "+"
  258. if {_FactionRoleA} is "RECRUIT":
  259. set {_RoleA} to "-"
  260. set {_FactionTag} to value "%player%.FactionTag" get of "plugins/Factions/data.yml"
  261. set {_FactionRole} to value "%player%.FactionRole" get of "plugins/Factions/data.yml"
  262. if {_FactionRole} is "LEADER":
  263. set {_Role} to "##"
  264. if {_FactionRole} is "OFFICER":
  265. set {_Role} to "*"
  266. if {_FactionRole} is "MEMBER":
  267. set {_Role} to "+"
  268. if {_FactionRole} is "RECRUIT":
  269. set {_Role} to "-"
  270. set {_IsOnline} to value "%arg 1%.isOnline" get of "plugins/Factions/data.yml"
  271. set {_Group} to value "%player%.Group" get of "plugins/Factions/data.yml"
  272. set {_GroupA} to value "%arg 1%.Group" get of "plugins/Factions/data.yml"
  273. if {_IsOnline} is "Online" or "Offline":
  274. if {_IsOnline} is "Online":
  275. if {_GroupA} is "Master":
  276. set {_TagA} to "&6[Master] "
  277. if {_GroupA} is "Gerente":
  278. set {_TagA} to "&4[Gerente] "
  279. if {_GroupA} is "Admin":
  280. set {_TagA} to "&c[Admin] "
  281. if {_GroupA} is "Moderador":
  282. set {_TagA} to "&2[Moderador] "
  283. if {_GroupA} is "Ajudante":
  284. set {_TagA} to "&e[Ajudante] "
  285. if {_GroupA} is "Youtuber":
  286. set {_TagA} to "&c[YouTuber] "
  287. if {_GroupA} is "Imperador":
  288. set {_TagA} to "&b[Imperador] "
  289. if {_GroupA} is "Supremo":
  290. set {_TagA} to "&4[Supremo] "
  291. if {_GroupA} is "Lendario":
  292. set {_TagA} to "&2[Lendário] "
  293. if {_GroupA} is "Heroi":
  294. set {_TagA} to "&5[Herói] "
  295. if {_GroupA} is "Campeao":
  296. set {_TagA} to "&3[Campeão] "
  297. if {_GroupA} is "Default":
  298. set {_TagA} to "&7"
  299. if {_Group} is "Default":
  300. set {_Tag} to "&7"
  301. if {_Group} is "Master":
  302. set {_Tag} to "&6[Master] "
  303. if {_Group} is "Gerente":
  304. set {_Tag} to "&4[Gerente] "
  305. if {_Group} is "Admin":
  306. set {_Tag} to "&c[Admin] "
  307. if {_Group} is "Moderador":
  308. set {_Tag} to "&2[Moderador] "
  309. if {_Group} is "Ajudante":
  310. set {_Tag} to "&e[Ajudante] "
  311. if {_Group} is "Youtuber":
  312. set {_Tag} to "&c[YouTuber] "
  313. if {_Group} is "Imperador":
  314. set {_Tag} to "&b[Imperador] "
  315. if {_Group} is "Supremo":
  316. set {_Tag} to "&4[Supremo] "
  317. if {_Group} is "Lendario":
  318. set {_Tag} to "&2[Lendário] "
  319. if {_Group} is "Heroi":
  320. set {_Tag} to "&5[Herói] "
  321. if {_Group} is "Campeao":
  322. set {_Tag} to "&3[Campeão] "
  323. set "Messages.LastPlayer" to "%arg 1%" in yml file "plugins/SkyAPI/%player%.yml"
  324. set "Messages.LastPlayer" to "%player%" in yml file "plugins/SkyAPI/%arg 1%.yml"
  325. if {_RoleA} isn't set:
  326. send "&8Mensagem para %{_TagA}%%arg 1%&8: &6%arg 2%"
  327. else:
  328. send "&8Mensagem para %{_TagA}%%arg 1%&8: &6%arg 2%"
  329. if {_Role} isn't set:
  330. send "&8Mensagem de %{_Tag}%%player%&8: &6%arg 2%" to arg 1
  331. else:
  332. send "&8Mensagem de %{_Tag}%%player%&8: &6%arg 2%" to arg 1
  333. stop
  334. else:
  335. send "&cEste usuário não está online."
  336. stop
  337. else:
  338. send "&cEste usuário não existe."
  339. stop
  340. command /r [<text>]:
  341. trigger:
  342. set {_LastPlayer} to value "Messages.LastPlayer" get of "plugins/SkyAPI/%player%.yml"
  343. set {_TellToggle} to value "%{_LastPlayer}%.TellToggle" get of "plugins/Factions/data.yml"
  344. if {_LastPlayer} is set:
  345. if {_TellToggle} is "true":
  346. send "&cEste jogador está com o recebimento de mensagens privadas desligado."
  347. stop
  348. set {_FactionTagA} to value "%{_LastPlayer}%.FactionTag" get of "plugins/Factions/data.yml"
  349. set {_FactionRoleA} to value "%{_LastPlayer}%.FactionRole" get of "plugins/Factions/data.yml"
  350. if {_FactionRoleA} is "LEADER":
  351. set {_RoleA} to "##"
  352. if {_FactionRoleA} is "OFFICER":
  353. set {_RoleA} to "*"
  354. if {_FactionRoleA} is "MEMBER":
  355. set {_RoleA} to "+"
  356. if {_FactionRoleA} is "RECRUIT":
  357. set {_RoleA} to "-"
  358. set {_FactionTag} to value "%player%.FactionTag" get of "plugins/Factions/data.yml"
  359. set {_FactionRole} to value "%player%.FactionRole" get of "plugins/Factions/data.yml"
  360. if {_FactionRole} is "LEADER":
  361. set {_Role} to "##"
  362. if {_FactionRole} is "OFFICER":
  363. set {_Role} to "*"
  364. if {_FactionRole} is "MEMBER":
  365. set {_Role} to "+"
  366. if {_FactionRole} is "RECRUIT":
  367. set {_Role} to "-"
  368. set {_IsOnline} to value "%{_LastPlayer}%.isOnline" get of "plugins/Factions/data.yml"
  369. set {_Group} to value "%player%.Group" get of "plugins/Factions/data.yml"
  370. if {_IsOnline} is "Online":
  371. if arg 1 is set:
  372. loop all players:
  373. if loop-player is {_LastPlayer}:
  374. set {_Player} to loop-player
  375. set {_GroupA} to value "%{_Player}%.Group" get of "plugins/Factions/data.yml"
  376. if {_GroupA} is "Master":
  377. set {_TagA} to "&6[Master] "
  378. if {_GroupA} is "Gerente":
  379. set {_TagA} to "&4[Gerente] "
  380. if {_GroupA} is "Admin":
  381. set {_TagA} to "&c[Admin] "
  382. if {_GroupA} is "Moderador":
  383. set {_TagA} to "&2[Moderador] "
  384. if {_GroupA} is "Ajudante":
  385. set {_TagA} to "&e[Ajudante] "
  386. if {_GroupA} is "Youtuber":
  387. set {_TagA} to "&c[YouTuber] "
  388. if {_GroupA} is "Imperador":
  389. set {_TagA} to "&b[Imperador] "
  390. if {_GroupA} is "Supremo":
  391. set {_TagA} to "&4[Supremo] "
  392. if {_GroupA} is "Lendario":
  393. set {_TagA} to "&2[Lendário] "
  394. if {_GroupA} is "Heroi":
  395. set {_TagA} to "&5[Herói] "
  396. if {_GroupA} is "Campeao":
  397. set {_TagA} to "&3[Campeão] "
  398. if {_GroupA} is "Default":
  399. set {_TagA} to "&7"
  400. if {_Group} is "Default":
  401. set {_Tag} to "&7"
  402. if {_Group} is "Master":
  403. set {_Tag} to "&6[Master] "
  404. if {_Group} is "Gerente":
  405. set {_Tag} to "&4[Gerente] "
  406. if {_Group} is "Admin":
  407. set {_Tag} to "&c[Admin] "
  408. if {_Group} is "Moderador":
  409. set {_Tag} to "&2[Moderador] "
  410. if {_Group} is "Ajudante":
  411. set {_Tag} to "&e[Ajudante] "
  412. if {_Group} is "Youtuber":
  413. set {_Tag} to "&c[YouTuber] "
  414. if {_Group} is "Imperador":
  415. set {_Tag} to "&b[Imperador] "
  416. if {_Group} is "Supremo":
  417. set {_Tag} to "&4[Supremo] "
  418. if {_Group} is "Lendario":
  419. set {_Tag} to "&2[Lendário] "
  420. if {_Group} is "Heroi":
  421. set {_Tag} to "&5[Herói] "
  422. if {_Group} is "Campeao":
  423. set {_Tag} to "&3[Campeão] "
  424. if {_FactionTagA} is "null":
  425. send "&8Mensagem para %{_TagA}%%{_Player}%&8: &6%arg 1%"
  426. else:
  427. send "&8Mensagem para %{_TagA}%%{_Player}%&8: &6%arg 1%"
  428. if {_FactionTag} is "null":
  429. send "&8Mensagem de %{_Tag}%%player%&8: &6%arg 1%" to {_Player}
  430. else:
  431. send "&8Mensagem de %{_Tag}%%player%&8: &6%arg 1%" to {_Player}
  432. else:
  433. send "&cUtilize /r <mensagem>."
  434. stop
  435. else:
  436. send "&cVocê não tem ninguém para responder."
  437. else:
  438. send "&cVocê não tem ninguém para responder."
  439. command /autoreiniciar [<text>]:
  440. aliases: autoreiniciar:reiniciar
  441. trigger:
  442. if sender have permission "restart.server":
  443. broadcast ""
  444. broadcast "&e&l[&eREINÍCIO&e&l] &eReiniciando servidor em instantes, voltamos já."
  445. broadcast "&e&l[&eREINÍCIO&e&l] &eAlgumas funções podem ter sido desativadas neste período."
  446. broadcast ""
  447. wait 10 seconds
  448. broadcast ""
  449. broadcast "&cVocê foi desconectado do servidor onde você estava. Motivo: &fServer is restarting"
  450. broadcast ""
  451. kick all players due to "Server is restarting"
  452. make console execute command "/save-all"
  453. make console execute command "/reload"
  454. else:
  455. send "&cVocê precisa do grupo Gerente ou superior para executar este comando."
  456. stop
  457. command /reiniciar [<text>]:
  458. aliases: /reiniciar:reiniciar
  459. trigger:
  460. if sender have permission "restart.server":
  461. broadcast ""
  462. broadcast "&e&l[&eREINÍCIO&e&l] &eReiniciando servidor em 3 minutos."
  463. broadcast ""
  464. wait 1 minute
  465. broadcast ""
  466. broadcast "&e&l[&eREINÍCIO&e&l] &eReiniciando servidor em 2 minutos."
  467. broadcast ""
  468. wait 1 minute
  469. broadcast ""
  470. broadcast "&e&l[&eREINÍCIO&e&l] &eReiniciando servidor em 1 minuto."
  471. broadcast ""
  472. wait 1 minute
  473. broadcast ""
  474. broadcast "&e&l[&eREINÍCIO&e&l] &eReiniciando servidor em instantes, voltamos já."
  475. broadcast "&e&l[&eREINÍCIO&e&l] &eAlgumas funções podem ter sido desativadas neste período."
  476. broadcast ""
  477. wait 10 seconds
  478. broadcast ""
  479. broadcast "&cVocê foi desconectado do servidor onde você estava. Motivo: &fServer is restarting"
  480. broadcast ""
  481. kick all players due to "Server is restarting"
  482. make console execute command "/save-all"
  483. make console execute command "/reload"
  484. else:
  485. send "&cVocê precisa do grupo Gerente ou superior para executar este comando."
  486. stop
  487. on join:
  488. set join message to ""
  489. on join:
  490. set tab header to "%nl%&6&lRide Factions&r%nl%&fpagcraft.com.br/ridefactions%nl%" and footer to "%nl%&6Adquira VIP e Cash em nossa loja: &fpagcraft.com.br/ridefactions%nl%" for player
  491. on quit:
  492. set quit message to ""
  493. on death:
  494. set death message to ""
  495. on chat:
  496. set {_Abates} to value "%player%.Abates" get of "plugins/Factions/data.yml"
  497. set {_Mortes} to value "%player%.Mortes" get of "plugins/Factions/data.yml"
  498. if "%{FactionGuerreiro::*}%" contains "%player%":
  499. set {_Guerreiro} to " &c[Guerreiro]"
  500. else:
  501. set {_Guerreiro} to ""
  502. if sender have permission "master.group":
  503. set {_Tag} to "&6[Master] "
  504. if sender have permission "gerente.group":
  505. set {_Tag} to "&4[Gerente] "
  506. if sender have permission "admin.group":
  507. set {_Tag} to "&c[Admin] "
  508. if sender have permission "moderador.group":
  509. set {_Tag} to "&2[Moderador] "
  510. if sender have permission "ajudante.group":
  511. set {_Tag} to "&e[Ajudante] "
  512. if sender have permission "youtuber.group":
  513. set {_Tag} to "&c[YouTuber] "
  514. if sender have permission "imperador.group":
  515. set {_Tag} to "&b[Imperador] "
  516. if sender have permission "supremo.group":
  517. set {_Tag} to "&4[Supremo] "
  518. if sender have permission "lendario.group":
  519. set {_Tag} to "&2[Lendário] "
  520. if sender have permission "heroi.group":
  521. set {_Tag} to "&5[Herói] "
  522. if sender have permission "campeao.group":
  523. set {_Tag} to "&3[Campeão] "
  524. if sender have permission "default.group":
  525. set {_Tag} to ""
  526. set {_FactionPower} to value "%player%.FactionPower" get of "plugins/Factions/data.yml"
  527. set {_Faction} to value "%player%.Faction" get of "plugins/Factions/data.yml"
  528. set {_FactionRole} to value "%player%.FactionRole" get of "plugins/Factions/data.yml"
  529. if {_FactionRole} is "LEADER":
  530. set {_FactionRoleY} to "##"
  531. if {_FactionRole} is "OFFICER":
  532. set {_FactionRoleY} to "*"
  533. if {_FactionRole} is "MEMBER":
  534. set {_FactionRoleY} to "+"
  535. if {_FactionRole} is "RECRUIT":
  536. set {_FactionRoleY} to "-"
  537. set {_FactionTag} to value "%player%.FactionTag" get of "plugins/Factions/data.yml"
  538. set {_FactionMaxPower} to value "%player%.FactionMaxPower" get of "plugins/Factions/data.yml"
  539. loop all players in radius 16 of player:
  540. add 1 to {_n}
  541. set {_players::%{_n}%} to loop-player
  542. if {_n} is greater than 0:
  543. if {_FactionTag} is "null":
  544. send json of "&e[l]" then "%{_Guerreiro}%" tooltip "&6Nick: &7%player%%nl%&6KDR: &70.0%nl%&6Poder: &7%{_FactionPower}%/%{_FactionMaxPower}%%nl%&6Coins: &7%player's money%" then " %{_Tag}%" then "&f%player%:" tooltip "&6Nick: &7%player%%nl%&6KDR: &70.0%nl%&6Poder: &7%{_FactionPower}%/%{_FactionMaxPower}%%nl%&6Coins: &7%player's money%" then " &e%message%" to {_players::%{_n}%}
  545. send json of "&e[l]" then "%{_Guerreiro}%" tooltip "&6Nick: &7%player%%nl%&6KDR: &70.0%nl%&6Poder: &7%{_FactionPower}%/%{_FactionMaxPower}%%nl%&6Coins: &7%player's money%" then " %{_Tag}%" then "&f%player%:" tooltip "&6Nick: &7%player%%nl%&6KDR: &70.0%nl%&6Poder: &7%{_FactionPower}%/%{_FactionMaxPower}%%nl%&6Coins: &7%player's money%" then " &e%message%" to player
  546. else:
  547. send json of "&e[l]" then "%{_Guerreiro}%" tooltip "&6Nick: &7%player%%nl%&6KDR: &70.0%nl%&6Facção: &7%{_FactionTag}% - %{_Faction}%%nl%&6Poder: &7%{_FactionPower}%/%{_FactionMaxPower}%%nl%&6Coins: &7%player's money%" then " %{_Tag}%" then "&7[%{_FactionRoleY}%%{_FactionTag}%]" then " &f%player%:" tooltip "&6Nick: &7%player%%nl%&6KDR: &70.0%nl%&6Facção: &7%{_FactionTag}% - %{_Faction}%%nl%&6Poder: &7%{_FactionPower}%/%{_FactionMaxPower}%%nl%&6Coins: &7%player's money%" then " &e%message%" to {_players::%{_n}%}
  548. send json of "&e[l]" then "%{_Guerreiro}%" tooltip "&6Nick: &7%player%%nl%&6KDR: &70.0%nl%&6Facção: &7%{_FactionTag}% - %{_Faction}%%nl%&6Poder: &7%{_FactionPower}%/%{_FactionMaxPower}%%nl%&6Coins: &7%player's money%" then " %{_Tag}%" then "&7[%{_FactionRoleY}%%{_FactionTag}%]" then " &f%player%:" tooltip "&6Nick: &7%player%%nl%&6KDR: &70.0%nl%&6Facção: &7%{_FactionTag}% - %{_Faction}%%nl%&6Poder: &7%{_FactionPower}%/%{_FactionMaxPower}%%nl%&6Coins: &7%player's money%" then " &e%message%" to player
  549. else:
  550. if {_FactionTag} is "null":
  551. send json of "&e[l]" then "%{_Guerreiro}%" tooltip "&6Nick: &7%player%%nl%&6KDR: &70.0%nl%&6Poder: &7%{_FactionPower}%/%{_FactionMaxPower}%%nl%&6Coins: &7%player's money%" then " %{_Tag}%" then "&f%player%:" tooltip "&6Nick: &7%player%%nl%&6KDR: &70.0%nl%&6Poder: &7%{_FactionPower}%/%{_FactionMaxPower}%%nl%&6Coins: &7%player's money%" then " &e%message%" to player
  552. send "&eNão há ninguém perto para te escutar :(" to player
  553. else:
  554. send json of "&e[l]" then "%{_Guerreiro}%" tooltip "&6Nick: &7%player%%nl%&6KDR: &70.0%nl%&6Facção: &7%{_FactionTag}% - %{_Faction}%%nl%&6Poder: &7%{_FactionPower}%/%{_FactionMaxPower}%%nl%&6Coins: &7%player's money%" then " %{_Tag}%" then "&7[%{_FactionRoleY}%%{_FactionTag}%]" then " &f%player%:" tooltip "&6Nick: &7%player%%nl%&6KDR: &70.0%nl%&6Facção: &7%{_FactionTag}% - %{_Faction}%%nl%&6Poder: &7%{_FactionPower}%/%{_FactionMaxPower}%%nl%&6Coins: &7%player's money%" then " &e%message%" to player
  555. send "&eNão há ninguém perto para te escutar :(" to player
  556. cancel event
  557. command /g [<text>]:
  558. aliases: g:g
  559. trigger:
  560. set {_Abates} to value "%player%.Abates" get of "plugins/Factions/data.yml"
  561. set {_Mortes} to value "%player%.Mortes" get of "plugins/Factions/data.yml"
  562. if "%{FactionGuerreiro::*}%" contains "%player%":
  563. set {_Guerreiro} to " &c[Guerreiro]"
  564. else:
  565. set {_Guerreiro} to ""
  566. set {_FactionPower} to value "%player%.FactionPower" get of "plugins/Factions/data.yml"
  567. set {_Faction} to value "%player%.Faction" get of "plugins/Factions/data.yml"
  568. set {_FactionRole} to value "%player%.FactionRole" get of "plugins/Factions/data.yml"
  569. if {_FactionRole} is "LEADER":
  570. set {_FactionRoleY} to "##"
  571. if {_FactionRole} is "OFFICER":
  572. set {_FactionRoleY} to "*"
  573. if {_FactionRole} is "MEMBER":
  574. set {_FactionRoleY} to "+"
  575. if {_FactionRole} is "RECRUIT":
  576. set {_FactionRoleY} to "-"
  577. set {_FactionTag} to value "%player%.FactionTag" get of "plugins/Factions/data.yml"
  578. set {_FactionMaxPower} to value "%player%.FactionMaxPower" get of "plugins/Factions/data.yml"
  579. if arg 1 isn't set:
  580. send "&cUtilize /g <mensagem>."
  581. stop
  582. if arg 1 is set:
  583. if arg 1 contains " lag " or " lag" or "lag ":
  584. play "VILLAGER_NO" to player at volume 0.2
  585. send "&cNão utilize palavras que possam incentivar o flood no chat."
  586. stop
  587. if {ChatGlobal} is "off":
  588. if player don't have permission "master.group" or "gerente.group" or "admin.group":
  589. send "&cO chat está desabilitado no momento."
  590. stop
  591. if sender have permission "master.group":
  592. set {_Tag} to "&6[Master] "
  593. if sender have permission "gerente.group":
  594. set {_Tag} to "&4[Gerente] "
  595. if sender have permission "admin.group":
  596. set {_Tag} to "&c[Admin] "
  597. if sender have permission "moderador.group":
  598. set {_Tag} to "&2[Moderador] "
  599. if sender have permission "ajudante.group":
  600. set {_Tag} to "&e[Ajudante] "
  601. if sender have permission "youtuber.group":
  602. set {_Tag} to "&c[YouTuber] "
  603. if sender have permission "imperador.group":
  604. set {_Tag} to "&b[Imperador] "
  605. if sender have permission "supremo.group":
  606. set {_Tag} to "&4[Supremo] "
  607. if sender have permission "lendario.group":
  608. set {_Tag} to "&2[Lendário] "
  609. if sender have permission "heroi.group":
  610. set {_Tag} to "&5[Herói] "
  611. if sender have permission "campeao.group":
  612. set {_Tag} to "&3[Campeão] "
  613. if sender have permission "default.group":
  614. set {_Tag} to ""
  615. if {_Faction} is "null":
  616. if sender have permission "gerente.group" or "master.group":
  617. broadcast ""
  618. if sender have permission "global.color":
  619. send json of "&7[g]" then "%{_Guerreiro}% " tooltip "&6Nick: &7%player%%nl%&6KDR: &70.0%nl%&6Poder: &7%{_FactionPower}%/%{_FactionMaxPower}%%nl%&6Coins: &7%player's money%" then "%{_Tag}%" then "&f%player%:" tooltip "&6Nick: &7%player%%nl%&6KDR: &70.0%nl%&6Poder: &7%{_FactionPower}%/%{_FactionMaxPower}%%nl%&6Coins: &7%player's money%" then " §7%colored arg 1%&7" suggest "/tell %player% " to all players
  620. else:
  621. send json of "&7[g]" then "%{_Guerreiro}% " tooltip "&6Nick: &7%player%%nl%&6KDR: &70.0%nl%&6Poder: &7%{_FactionPower}%/%{_FactionMaxPower}%%nl%&6Coins: &7%player's money%" then "%{_Tag}%" then "&f%player%:" tooltip "&6Nick: &7%player%%nl%&6KDR: &70.0%nl%&6Poder: &7%{_FactionPower}%/%{_FactionMaxPower}%%nl%&6Coins: &7%player's money%" then " §7%arg 1%&7" suggest "/tell %player% " to all players
  622. if sender have permission "gerente.group" or "master.group":
  623. broadcast ""
  624. else:
  625. if sender have permission "gerente.group" or "master.group":
  626. broadcast ""
  627. if sender have permission "global.color":
  628. send json of "&7[g]" then "%{_Guerreiro}% " tooltip "&6Nick: &7%player%%nl%&6KDR: &70.0%nl%&6Facção: &7%{_FactionTag}% - %{_Faction}%%nl%&6Poder: &7%{_FactionPower}%/%{_FactionMaxPower}%%nl%&6Coins: &7%player's money%" then "%{_Tag}%" then "&7[%{_FactionRoleY}%%{_FactionTag}%] " then "&f%player%:" tooltip "&6Nick: &7%player%%nl%&6KDR: &70.0%nl%&6Facção: &7%{_FactionTag}% - %{_Faction}%%nl%&6Poder: &7%{_FactionPower}%/%{_FactionMaxPower}%%nl%&6Coins: &7%player's money%" then " §7%colored arg 1%" suggest "/tell %player% " to all players
  629. else:
  630. send json of "&7[g]" then "%{_Guerreiro}% " tooltip "&6Nick: &7%player%%nl%&6KDR: &70.0%nl%&6Facção: &7%{_FactionTag}% - %{_Faction}%%nl%&6Poder: &7%{_FactionPower}%/%{_FactionMaxPower}%%nl%&6Coins: &7%player's money%" then "%{_Tag}%" then "&7[%{_FactionRoleY}%%{_FactionTag}%] " then "&f%player%:" tooltip "&6Nick: &7%player%%nl%&6KDR: &70.0%nl%&6Facção: &7%{_FactionTag}% - %{_Faction}%%nl%&6Poder: &7%{_FactionPower}%/%{_FactionMaxPower}%%nl%&6Coins: &7%player's money%" then " §7%arg 1%" suggest "/tell %player% " to all players
  631. if sender have permission "gerente.group" or "master.group":
  632. broadcast ""
  633. command /clear [<offlineplayer>] [<text>]:
  634. aliases: /clear:clear
  635. trigger:
  636. if player have permission "clear.inventory":
  637. set {_NickName} to value "%arg 1%.NickName" get of "plugins/Factions/data.yml"
  638. if arg 1 isn't set:
  639. send "&aO inventário de %player% foi limpo."
  640. clear player's inventory
  641. else:
  642. if arg 1 is online:
  643. send "&aO inventário de %arg 1% foi limpo."
  644. clear arg 1's inventory
  645. else:
  646. send "&cEste usuário não está online."
  647. stop
  648. else:
  649. send "&cVocê precisa do grupo Gerente ou superior para executar este comando."
  650. stop
  651. at 16:00:
  652. set time to 12:00
  653. on weather change to rainy:
  654. set weather to sunny
  655. on weather change to thundering:
  656. set weather to sunny
  657. on command "/sethome ":
  658. set {_args::*} to arguments split at " "
  659. if {_arg::*} is set:
  660. if world of player is "mine-1":
  661. send "&cVocê não tem permissão para criar home neste local."
  662. stop
  663. command /craft [<text>]:
  664. trigger:
  665. if player have permission "craft.craft":
  666. open crafting table for the player
  667. else:
  668. send "&cVocê precisa do grupo Campeão ou superior para executar este comando."
  669. stop
  670. on teleport:
  671. if world of player is "vip-1":
  672. set player's fly mode to true
  673. else:
  674. if player have permission "moderador.group" or "admin.group" or "gerente.group" or "master.group":
  675. stop
  676. else:
  677. set player's fly mode to false
  678. command /online [<text>]:
  679. aliases: /online:online
  680. trigger:
  681. if arg 1 is "world" or "mine-1" or "vip":
  682. if player have permission "moderador.group" or "admin.group" or "gerente.group" or "master.group":
  683. loop all players:
  684. if "%world of loop-player%" is "%arg 1%":
  685. add 1 to {_n}
  686. send "&7Jogadores online no mundo %world of player%: &f%{_n}%"
  687. send ""
  688. loop all players:
  689. if loop-player have permission "master.group":
  690. If "%world of loop-player%" is "%world of player%":
  691. add loop-player to {_Masters::*}
  692. send "&6[Master]: &f%{_Masters::*}%"
  693. send ""
  694. loop all players:
  695. if loop-player have permission "gerente.group":
  696. If "%world of loop-player%" is "%world of player%":
  697. add loop-player to {_Gerentes::*}
  698. send "&4[Gerente]: &f%{_Gerentes::*}%"
  699. send ""
  700. loop all players:
  701. if loop-player have permission "admin.group":
  702. If "%world of loop-player%" is "%world of player%":
  703. add loop-player to {_Admin::*}
  704. send "&c[Admin]: &f%{_Admin::*}%"
  705. send ""
  706. loop all players:
  707. if loop-player have permission "moderador.group":
  708. If "%world of loop-player%" is "%world of player%":
  709. add loop-player to {_Moderadores::*}
  710. send "&2[Moderador]: &f%{_Moderadores::*}%"
  711. send ""
  712. loop all players:
  713. if loop-player have permission "ajudante.group":
  714. If "%world of loop-player%" is "%world of player%":
  715. add loop-player to {_Ajudantes::*}
  716. send "&e[Ajudante]: &f%{_Ajudantes::*}%"
  717. send ""
  718. loop all players:
  719. if loop-player have permission "youtuber.group":
  720. If "%world of loop-player%" is "%world of player%":
  721. add loop-player to {_Youtubers::*}
  722. send "&c[YouTuber]: &f%{_Youtubers::*}%"
  723. send ""
  724. loop all players:
  725. if loop-player have permission "imperador.group":
  726. If "%world of loop-player%" is "%world of player%":
  727. add loop-player to {_Imperadores::*}
  728. send "&b[Imperador]: &f%{_Imperadores::*}%"
  729. send ""
  730. loop all players:
  731. if loop-player have permission "supremo.group":
  732. If "%world of loop-player%" is "%world of player%":
  733. add loop-player to {_Supremo::*}
  734. send "&4[Supremo]: &f%{_Supremo::*}%"
  735. send ""
  736. loop all players:
  737. if loop-player have permission "lendario.group":
  738. If "%world of loop-player%" is "%world of player%":
  739. add loop-player to {_Lendario::*}
  740. send "&2[Lendário]: &f%{_Lendario::*}%"
  741. send ""
  742. loop all players:
  743. if loop-player have permission "heroi.group":
  744. If "%world of loop-player%" is "%world of player%":
  745. add loop-player to {_Heroi::*}
  746. send "&5[Herói]: &f%{_Heroi::*}%"
  747. send ""
  748. loop all players:
  749. if loop-player have permission "campeao.group":
  750. If "%world of loop-player%" is "%world of player%":
  751. add loop-player to {_Campeao::*}
  752. send "&3[Campeão]: &f%{_Campeao::*}%"
  753. send ""
  754. loop all players:
  755. if loop-player have permission "default.group":
  756. If "%world of loop-player%" is "%world of player%":
  757. add loop-player to {_Default::*}
  758. send "&7: &f%{_Default::*}%"
  759. else:
  760. send ""
  761. send "&e* Jogadores em toda a rede: &6%number of all players%"
  762. send "&e* Jogadores no Factions Lava: &6%number of all players%"
  763. send ""
  764. stop
  765. else:
  766. send ""
  767. send "&e* Jogadores em toda a rede: &6%number of all players%"
  768. send "&e* Jogadores no Factions Lava: &6%number of all players%"
  769. send ""
  770. command /players:
  771. aliases: /players:players
  772. trigger:
  773. if player have permission "see.players":
  774. send ""
  775. loop all players:
  776. if loop-player have permission "master.group":
  777. add loop-player to {_Masters::*}
  778. send "&6[Master]: &f%{_Masters::*}%"
  779. send ""
  780. loop all players:
  781. if loop-player have permission "gerente.group":
  782. add loop-player to {_Gerentes::*}
  783. send "&4[Gerente]: &f%{_Gerentes::*}%"
  784. send ""
  785. loop all players:
  786. if loop-player have permission "admin.group":
  787. add loop-player to {_Admin::*}
  788. send "&c[Admin]: &f%{_Admin::*}%"
  789. send ""
  790. loop all players:
  791. if loop-player have permission "moderador.group":
  792. add loop-player to {_Moderadores::*}
  793. send "&2[Moderador]: &f%{_Moderadores::*}%"
  794. send ""
  795. loop all players:
  796. if loop-player have permission "ajudante.group":
  797. add loop-player to {_Ajudantes::*}
  798. send "&e[Ajudante]: &f%{_Ajudantes::*}%"
  799. send ""
  800. loop all players:
  801. if loop-player have permission "youtuber.group":
  802. add loop-player to {_Youtubers::*}
  803. send "&c[YouTuber]: &f%{_Youtubers::*}%"
  804. send ""
  805. loop all players:
  806. if loop-player have permission "imperador.group":
  807. add loop-player to {_Imperadores::*}
  808. send "&b[Imperador]: &f%{_Imperadores::*}%"
  809. send ""
  810. loop all players:
  811. if loop-player have permission "supremo.group":
  812. add loop-player to {_Supremo::*}
  813. send "&4[Supremo]: &f%{_Supremo::*}%"
  814. send ""
  815. loop all players:
  816. if loop-player have permission "lendario.group":
  817. add loop-player to {_Lendario::*}
  818. send "&2[Lendário]: &f%{_Lendario::*}%"
  819. send ""
  820. loop all players:
  821. if loop-player have permission "heroi.group":
  822. add loop-player to {_Heroi::*}
  823. send "&5[Herói]: &f%{_Heroi::*}%"
  824. send ""
  825. loop all players:
  826. if loop-player have permission "campeao.group":
  827. add loop-player to {_Campeao::*}
  828. send "&3[Campeão]: &f%{_Campeao::*}%"
  829. send ""
  830. loop all players:
  831. if loop-player have permission "default.group":
  832. add loop-player to {_Default::*}
  833. send "&7: &f%{_Default::*}%"
  834. else:
  835. send "&cVocê precisa do grupo Moderador ou superior para executar este comando."
  836. on join:
  837. teleport player to {Spawn}
  838. on respawn:
  839. teleport player to {Spawn}
  840. command /chat [<text>] [<text>]:
  841. aliases: /chat:chat
  842. trigger:
  843. if sender have permission "chat.config":
  844. if arg 1 isn't set:
  845. send "&aUtilize /chat global [on/off] &f- &7Desabilitar o chat."
  846. send "&aUtilize /chat limpar &f- &7Limpar o chat."
  847. if player have permission "master.group":
  848. send "&aUtilize /chat all <mensagem> &f- &7Mandar uma mensagem para todos os servidores."
  849. stop
  850. if arg 1 is "all":
  851. if player have permission "master.group" or "gerente.group":
  852. if arg 2 isn't set:
  853. send "&cUtilize /chat all <mensagem>."
  854. stop
  855. else:
  856. if player have permission "gerente.group":
  857. broadcast ""
  858. broadcast "&4[Gerente] %player%&e: %arg 2%"
  859. broadcast ""
  860. stop
  861. if player have permission "master.group":
  862. broadcast ""
  863. broadcast "&6[Master] %player%&e: %arg 2%"
  864. broadcast ""
  865. stop
  866. else:
  867. send "&cVocê precisa do grupo Gerente ou superior para executar este comando."
  868. stop
  869. if arg 1 is "limpar":
  870. loop 200 times:
  871. broadcast ""
  872. send "&aO chat foi limpo com sucesso."
  873. stop
  874. if arg 1 is "global":
  875. if arg 2 isn't set:
  876. send "&aUtilize /chat global [on/off] &f- &7Desabilitar o chat."
  877. send "&aUtilize /chat limpar &f- &7Limpar o chat."
  878. if player have permission "gerente.group" or "master.group":
  879. send "&aUtilize /chat all <mensagem> &f- &7Mandar uma mensagem para todos os servidores."
  880. stop
  881. if arg 2 is "on":
  882. send "&aO chat global foi ligado."
  883. set {ChatGlobal} to "on"
  884. if arg 2 is "off":
  885. send "&cO chat global foi desligado."
  886. set {ChatGlobal} to "off"
  887. else:
  888. send "&cUtilize /chat global [on/off] para desabilitar o chat."
  889. stop
  890. else:
  891. send "&cVocê precisa do grupo Admin ou superior para executar este comando."
  892. stop
  893. command /say [<text>]:
  894. aliases: /say:say
  895. trigger:
  896. if sender have permission "say.admin":
  897. if arg 1 isn't set:
  898. send "&cUtilize /say <mensagem>."
  899. stop
  900. else:
  901. broadcast ""
  902. broadcast "&d&l[ANÚNCIO] &d%colored arg 1%"
  903. broadcast ""
  904. else:
  905. send "&cVocê precisa do grupo Admin ou superior para executar este comando."
  906. stop
  907. command /killall [<text>]:
  908. aliases: /killall:killall
  909. trigger:
  910. if sender have permission "kill.all":
  911. kill all players
  912. send "&aVocê matou todos os jogadores onlines."
  913. wait 10 seconds
  914. stop
  915. else:
  916. send "&cVocê precisa do grupo Gerente ou superior para executar este comando."
  917. stop
  918. command /head [<offlineplayer>] [<text>]:
  919. aliases: /head:head
  920. trigger:
  921. set {_IsOnline} to value "%arg 1%.isOnline" get of "plugins/Factions/data.yml"
  922. if sender is console:
  923. send "&cNão é suportado este comando no console."
  924. stop
  925. if player have permission "head.get":
  926. if arg 1 isn't set:
  927. send "&cUtilize /head <jogador>."
  928. else:
  929. if {_IsOnline} is "Online" or "Offline":
  930. if {_IsOnline} is "Online":
  931. send "&aVocê adquiriu a cabeça de: %arg 1%."
  932. if arg 1 have permission "master.group":
  933. set {_Tag} to "&6[Master] "
  934. if arg 1 have permission "gerente.group":
  935. set {_Tag} to "&4[Gerente] "
  936. if arg 1 have permission "admin.group":
  937. set {_Tag} to "&c[Admin] "
  938. if arg 1 have permission "moderador.group":
  939. set {_Tag} to "&2[Moderador] "
  940. if arg 1 have permission "ajudante.group":
  941. set {_Tag} to "&e[Ajudante] "
  942. if arg 1 have permission "youtuber.group":
  943. set {_Tag} to "&c[YouTuber] "
  944. if arg 1 have permission "imperador.group":
  945. set {_Tag} to "&b[Imperador] "
  946. if arg 1 have permission "supremo.group":
  947. set {_Tag} to "&4[Supremo] "
  948. if arg 1 have permission "lendario.group":
  949. set {_Tag} to "&2[Lendário] "
  950. if arg 1 have permission "heroi.group":
  951. set {_Tag} to "&5[Herói] "
  952. if arg 1 have permission "campeao.group":
  953. set {_Tag} to "&3[Campeão] "
  954. if arg 1 have permission "default.group":
  955. set {_Tag} to ""
  956. give skull of arg 1 named "&fCabeça de %{_Tag}%&f%arg 1%" to player
  957. else:
  958. send "&cEste usuário não está online."
  959. else:
  960. send "&cEste usuário não existe."
  961. else:
  962. send "&cVocê precisa do grupo Gerente ou superior para executar este comando."
  963. stop
  964. command /tppos [<number>] [<number>] [<number>] [<offlineplayer>]:
  965. aliases: /tppos:tppos
  966. trigger:
  967. if player have permission "tp.pos":
  968. if arg 1 is not set:
  969. send "&cUtilize /tppos <x> <y> <z> <jogador>."
  970. stop
  971. if arg 1 is set:
  972. if arg 2 is not set:
  973. send "&cUtilize /tppos <x> <y> <z> <jogador>."
  974. stop
  975. if arg 2 is set:
  976. if arg 3 is not set:
  977. send "&cUtilize /tppos <x> <y> <z> <jogador>."
  978. stop
  979. if arg 3 is set:
  980. if arg 4 is not set:
  981. set {_loc} to the location at arg-1, arg-2, arg-3
  982. teleport the player to {_loc}
  983. send "&aVocê foi teleportado até x: %arg 1%, y: %arg 2%, z: %arg 3%."
  984. stop
  985. if arg 4 is set:
  986. if arg 4 is online:
  987. set {_loc} to the location at arg-1, arg-2, arg-3
  988. teleport arg 4 to {_loc}
  989. send "&a%arg 4% foi teleportado até x: %arg 1%, y: %arg 2%, and z: %arg 3%."
  990. stop
  991. else:
  992. send "&cEste usuário não está online ou não existe."
  993. stop
  994. else:
  995. send "&cVocê precisa do grupo Moderador ou superior para executar este comando."
  996. stop
  997. command /tp [<text>] [<text>]:
  998. aliases: /tp:tp
  999. trigger:
  1000. set {_IsOnline} to value "%arg 1%.isOnline" get of "plugins/Factions/data.yml"
  1001. if sender have permission "teleport.tp":
  1002. if arg 1 isn't set:
  1003. send "&cUtilize /tp <jogador>."
  1004. stop
  1005. if arg 1 is set:
  1006. if arg 1 is player:
  1007. send "&cVocê não pode teleportar para si mesmo."
  1008. stop
  1009. if arg 2 isn't set:
  1010. if {_IsOnline} is "Online" or "Offline":
  1011. if {_IsOnline} is "Online":
  1012. loop all players:
  1013. if loop-player is "%arg 1%":
  1014. teleport player to loop-player
  1015. send "&a%arg 1% teleportado para %player%."
  1016. stop
  1017. else:
  1018. send "&cEste usuário não está online."
  1019. else:
  1020. send "&cEsse usuário não existe."
  1021. stop
  1022. if arg 1 is set:
  1023. if arg 2 is set:
  1024. if {_IsOnline} is "Online" or "Offline":
  1025. if {_IsOnline} is "Online":
  1026. loop all players:
  1027. if loop-player is "%arg 1%":
  1028. teleport loop-player to player
  1029. send "&a%player% teleportado para %arg 1%."
  1030. loop all players:
  1031. if loop-player is arg 1:
  1032. set {_Victim} to loop-player
  1033. send "&aVocê foi teleportado até %player%." to {_Victim}
  1034. stop
  1035. else:
  1036. send "&cEste usuário não está online."
  1037. else:
  1038. send "&cEsse usuário não existe."
  1039. stop
  1040. else:
  1041. send "&cVocê precisa do grupo Moderador ou superior para executar este comando."
  1042. stop
  1043. command /tpall [<text>]:
  1044. aliases: /tpall:tpall
  1045. trigger:
  1046. if sender have permission "tp.all":
  1047. teleport all players to player
  1048. send "&aTodos os jogadores foram teleportados até você."
  1049. else:
  1050. send "&cVocê precisa do grupo Master ou superior para executar este comando."
  1051. stop
  1052. command /tphere [<text>]:
  1053. aliases: /tphere:tphere
  1054. trigger:
  1055. set {_IsOnline} to value "%arg 1%.isOnline" get of "plugins/Factions/data.yml"
  1056. if sender have permission "teleport.tp":
  1057. if arg 1 isn't set:
  1058. send "&cUtilize /tphere <jogador>."
  1059. stop
  1060. if arg 1 is set:
  1061. if arg 1 is player:
  1062. send "&cVocê não pode teleportar para si mesmo."
  1063. stop
  1064. If {_IsOnline} is "Online" or "Offline":
  1065. if {_IsOnline} is "Online":
  1066. loop all players:
  1067. if loop-player is "%arg 1%":
  1068. teleport loop-player to player
  1069. send "&a%arg 1% teleportado para %player%."
  1070. loop all players:
  1071. if loop-player is arg 1:
  1072. set {_Victim} to loop-player
  1073. send "&aVocê foi teleportado até %player%." to {_Victim}
  1074. stop
  1075. else:
  1076. send "&cEste usuário não está online."
  1077. else:
  1078. send "&cEsse usuário não existe."
  1079. stop
  1080. else:
  1081. send "&cVocê precisa do grupo Moderador ou superior para executar este comando."
  1082. stop
  1083. command /spawn [<text>]:
  1084. aliases: /spawn:spawn
  1085. trigger:
  1086. if arg 1 is "set":
  1087. if player have permission "spawn.set":
  1088. set {Spawn} to location of player
  1089. send "&aSpawn definido com sucesso!"
  1090. else:
  1091. if sender have permission "default.group":
  1092. send "&eEm 3 segundos você irá para o spawn."
  1093. wait 3 seconds
  1094. teleport player to {Spawn}
  1095. send "&aTeleportado com sucesso."
  1096. else:
  1097. teleport player to {Spawn}
  1098. send "&aTeleportado com sucesso."
  1099. if sender have permission "default.group":
  1100. send "&eEm 3 segundos você irá para o spawn."
  1101. wait 3 seconds
  1102. teleport player to {Spawn}
  1103. send "&aTeleportado com sucesso."
  1104. else:
  1105. teleport player to {Spawn}
  1106. send "&aTeleportado com sucesso."
  1107. command /youtuber [<text>] [<text>]:
  1108. aliases: /youtuber:youtuber
  1109. trigger:
  1110. if sender have permission "youtuber.set":
  1111. if arg-1 isn't set:
  1112. send "&a/youtuber adicionar [jogador] &f- &7Adicionar um jogador ao grupo de youtuber."
  1113. send "&a/youtuber remover [jogador] &f- &7Remover um jogador do grupo de youtuber."
  1114. send "&a/youtuber listar &f- &7Ver todos os youtubers do servidor."
  1115. if arg 1 is "adicionar":
  1116. if arg 2 isn't set:
  1117. send "&cUtilize /youtuber adicionar [jogador]."
  1118. if arg 2 is set:
  1119. add arg 2 to {Youtubers::*}
  1120. send "&aO jogador %arg 2% foi adicionado no grupo youtuber."
  1121. make console execute command "group %arg 2% Youtuber"
  1122. if arg 1 is "remover":
  1123. if arg 2 isn't set:
  1124. send "&cUtilize /youtuber remover [jogador]."
  1125. if arg 2 is set:
  1126. remove arg 2 from {Youtubers::*}
  1127. send "&aO jogador %arg 2% foi removido do grupo youtuber."
  1128. make console execute command "group %arg 2% Default"
  1129. if arg 1 is "listar":
  1130. if {Youtubers::*} isn't set:
  1131. send "&cNão há youtubers definidos no servidor."
  1132. else:
  1133. send ""
  1134. loop {Youtubers::*}:
  1135. send " &f- &c[YouTuber] %loop-value% &f(Factions Lava)"
  1136. send ""
  1137. else:
  1138. send "&cVocê precisa do grupo Gerente ou superior para executar este comando."
  1139. stop
  1140. command /staffs [<text>]:
  1141. aliases: /staffs:staffs
  1142. trigger:
  1143. if sender have permission "staff.staff":
  1144. loop all players:
  1145. if loop-player have permission "staff.staff":
  1146. add 1 to {_p}
  1147. send ""
  1148. send "%{_p}% staffers online no momento:"
  1149. loop all players:
  1150. if loop-player have permission "master.group":
  1151. send " &f- &6[Master] %loop-value% &f(Factions Lava)"
  1152. loop all players:
  1153. if loop-player have permission "gerente.group":
  1154. send " &f- &4[Gerente] %loop-value% &f(Factions Lava)"
  1155. loop all players:
  1156. if loop-player have permission "admin.group":
  1157. send " &f- &c[Admin] %loop-value% &f(Factions Lava)"
  1158. loop all players:
  1159. if loop-player have permission "moderador.group":
  1160. send " &f- &2[Moderador] %loop-value% &f(Factions Lava)"
  1161. loop all players:
  1162. if loop-player have permission "ajudante.group":
  1163. send " &f- &e[Ajudante] %loop-value% &f(Factions Lava)"
  1164. send ""
  1165. else:
  1166. send "&cVocê precisa do grupo Ajudante ou superior para executar este comando."
  1167. stop
  1168. command /youtubers [<text>]:
  1169. aliases: /youtubers:youtubers
  1170. trigger:
  1171. if sender have permission "youtuber.see":
  1172. loop all players:
  1173. if loop-player have permission "youtuber.group":
  1174. add 1 to {_p}
  1175. if {_p} isn't set:
  1176. send "&cNão há youtubers onlines no momento."
  1177. else:
  1178. send ""
  1179. send "%{_p}% youtubers online no momento:"
  1180. loop all players:
  1181. if loop-player have permission "youtuber.group":
  1182. send " &f- &c[YouTuber] %loop-value% &f(Factions Lava)"
  1183. send ""
  1184. else:
  1185. send "&cVocê precisa do grupo Youtuber ou superior para executar este comando."
  1186. stop
  1187. command /v [<text>]:
  1188. aliases: vanish:vanish, vanish:v
  1189. trigger:
  1190. if sender have permission "vanish.vanish":
  1191. if {v.%player%} is not set:
  1192. loop all players:
  1193. if loop-player has permission "mod.permissions":
  1194. reveal all players from loop-player
  1195. hide player from all players
  1196. message "&eInvisibilidade ativada"
  1197. set {v.%player%} to true
  1198. stop
  1199. if {v.%player%} is true:
  1200. reveal player from all players
  1201. message "&eInvisibilidade desativada"
  1202. delete {v.%player%}
  1203. stop
  1204. else:
  1205. send "&cVocê precisa do grupo Moderador ou superior para executar este comando."
  1206. stop
  1207. on damage:
  1208. if {god::%victim%} is true:
  1209. cancel event
  1210. command /kill [<offlineplayer>]:
  1211. aliases: /kill:kill
  1212. trigger:
  1213. set {_IsOnline} to value "%arg 1%.isOnline" get of "plugins/Factions/data.yml"
  1214. if player have permission "kill.kill":
  1215. if arg 1 is not set:
  1216. message "&cUtilize /kill <jogador>."
  1217. stop
  1218. if arg 1 is set:
  1219. if {_IsOnline} is "Online" or "Offline":
  1220. if {_IsOnline} is "Online":
  1221. kill arg 1
  1222. loop all players:
  1223. if loop-player is arg 1:
  1224. set {_Killed} to arg 1
  1225. message "&aVocê matou o jogador %{_Killed}%!"
  1226. stop
  1227. else:
  1228. send "&cEste usuário não está online."
  1229. stop
  1230. else:
  1231. send "&cEste usuário não existe."
  1232. else:
  1233. send "&cVocê precisa do grupo Gerente ou superior para executar este comando."
  1234. stop
  1235. command /invsee [<offlineplayer>]:
  1236. aliases: /invsee:invsee
  1237. trigger:
  1238. set {_IsOnline} to value "%arg 1%.isOnline" get of "plugins/Factions/data.yml"
  1239. if player have permission "inv.see":
  1240. if arg 1 is set:
  1241. if {_IsOnline} is "Online" or "Offline":
  1242. If {_IsOnline} is "Online":
  1243. open arg 1's inventory for player
  1244. stop
  1245. else:
  1246. send "&cEste usuário não está online."
  1247. stop
  1248. else:
  1249. send "&cEste usuário não existe."
  1250. else:
  1251. send "&cUtilize /invsee <jogador>."
  1252. stop
  1253. else:
  1254. send "&cVocê precisa do grupo Moderador ou superior para executar este comando."
  1255. stop
  1256. command /god [<text>]:
  1257. aliases: /god:deus, /god:god
  1258. trigger:
  1259. if sender have permission "god.god":
  1260. if {god::%player%} is not set:
  1261. set {god::%player%} to true
  1262. message "&aModo deus ativado!"
  1263. stop
  1264. if {god::%player%} is true:
  1265. delete {god::%player%}
  1266. message "&cModo deus desativado!"
  1267. stop
  1268. else:
  1269. send "&cVocê precisa do grupo Moderador ou superior para executar este comando."
  1270. stop
  1271. command /fly [<text>]:
  1272. aliases: /fly:voar, /fly:fly
  1273. trigger:
  1274. if sender have permission "fly.fly":
  1275. if arg 1 isn't "on" or "off":
  1276. send "&cUtilize /fly <on/off>."
  1277. stop
  1278. if arg 1 is "on":
  1279. if player's fly mode is false:
  1280. set player's fly mode to true
  1281. send "&eSeu modo de voo foi alterado para ligado."
  1282. stop
  1283. if player's fly mode is true:
  1284. send "&cO seu modo de voo já está ligado."
  1285. stop
  1286. if arg 1 is "off":
  1287. if player's fly mode is true:
  1288. set player's fly mode to false
  1289. send "&eSeu modo de voo foi alterado para desligado."
  1290. stop
  1291. if player's fly mode is false:
  1292. send "&cO seu modo de voo já está desligado."
  1293. stop
  1294. if arg 1 isn't set:
  1295. if player's fly mode is false:
  1296. set player's fly mode to true
  1297. send "&eSeu modo de voo foi alterado para ligado."
  1298. stop
  1299. if player's fly mode is true:
  1300. set player's fly mode to false
  1301. send "&eSeu modo de voo foi alterado para desligado."
  1302. stop
  1303. else:
  1304. send "&cVocê precisa do grupo Moderador ou superior para executar este comando."
  1305. stop
  1306. command /gm [<text>]:
  1307. aliases: gamemode:gamemode, gm:gm
  1308. trigger:
  1309. if sender have permission "gamemode.gm":
  1310. if arg 1 isn't set:
  1311. send "&cUtilize /gm <gamemode>"
  1312. stop
  1313. if arg 1 isn't "0" or "s" or "survival" or "1" or "c" or "creative" or "2" or "a" or "adventure" or "3" or "s" or "spectator":
  1314. send "&cVocê inseriu um gamemode inválido."
  1315. stop
  1316. if arg 1 is "0" or "s" or "survival":
  1317. set the player's gamemode to survival
  1318. send "&eSeu gamemode foi alterado para: SURVIVAL."
  1319. if arg 1 is "1" or "c" or "creative":
  1320. set the player's gamemode to creative
  1321. send "&eSeu gamemode foi alterado para: CREATIVE."
  1322. if arg 1 is "2" or "a" or "adventure":
  1323. set the player's gamemode to adventure
  1324. send "&eSeu gamemode foi alterado para: ADVENTURE."
  1325. if arg 1 is "3" or "s" or "spectator":
  1326. set the player's gamemode to spectator
  1327. send "&eSeu gamemode foi alterado para: SPECTATOR."
  1328. else:
  1329. send "&cVocê precisa do grupo Moderador ou superior para executar este comando."
  1330. stop
  1331. on right click on anvil:
  1332. cancel event
  1333. on right click:
  1334. if player's tool is stick:
  1335. if event-block isn't bedrock or obsidian or end stone:
  1336. send "&3Este bloco quebrará na primeira explosão!"
  1337. stop
  1338. command /cores [<text>]:
  1339. trigger:
  1340. send "&a&&aa Verde Claro" to sender
  1341. send "&b&&bb Azul Claro" to sender
  1342. send "&c&&cc Vermelho" to sender
  1343. send "&d&&dd Rosa" to sender
  1344. send "&e&&ee Amarelo" to sender
  1345. send "&f&&ff Branco" to sender
  1346. send "&0&&00 Preto" to sender
  1347. send "&1&&11 Azul Escuro" to sender
  1348. send "&2&&22 Verde Escuro" to sender
  1349. send "&3&&33 Ciano" to sender
  1350. send "&4&&44 Vermelho Escuro" to sender
  1351. send "&5&&55 Roxo" to sender
  1352. send "&6&&66 Dourado" to sender
  1353. send "&7&&77 Cinza" to sender
  1354. send "&8&&88 Cinza Escuro" to sender
  1355. send "&9&&99 Azul" to sender
  1356. send "" to sender
  1357. send " &fCódigo de formatação"
  1358. send "&l&&ll Negrito" to sender
  1359. send "&o&&oo Itálico" to sender
  1360. send "&r&&rr Reset" to sender
  1361. send "&r&&nn &nUnderline" to sender
  1362. stop
  1363. command /bukkit:? [<text>]:
  1364. trigger:
  1365. send "Comando desconhecido."
  1366. command /? [<text>]:
  1367. trigger:
  1368. send "Comando desconhecido."
  1369. command /bukkit:ver [<text>]:
  1370. trigger:
  1371. send "Comando desconhecido."
  1372. command /ver [<text>]:
  1373. trigger:
  1374. send "Comando desconhecido."
  1375. command /bukkit:pl [<text>]:
  1376. trigger:
  1377. send "Comando desconhecido."
  1378. on command "/pl":
  1379. if sender doesn't have permission "master.group":
  1380. send "Comando desconhecido."
  1381. stop
  1382. cancel event
  1383. command /plugins [<text>]:
  1384. trigger:
  1385. send "Comando desconhecido."
  1386. command /bukkit:plugins [<text>]:
  1387. trigger:
  1388. send "Comando desconhecido."
  1389. command /about [<text>]:
  1390. trigger:
  1391. send "Comando desconhecido."
  1392. command /bukkit:about [<text>]:
  1393. trigger:
  1394. send "Comando desconhecido."
  1395. command /bukkit:help [<text>]:
  1396. trigger:
  1397. send "Comando desconhecido."
  1398. command /help [<text>]:
  1399. trigger:
  1400. send "Comando desconhecido."
  1401. command /me [<text>]:
  1402. trigger:
  1403. send "Comando desconhecido."
  1404. command /minecraft:me [<text>]:
  1405. trigger:
  1406. send "Comando desconhecido."
  1407. command /minecraft:tell [<text>]:
  1408. trigger:
  1409. send "Comando desconhecido."
  1410. command /guerras [<text>] [<text>] [<text>] [<text>] [<text>] [<text>]:
  1411. aliases: guerras:guerras, guerras:guerra, guerra
  1412. trigger:
  1413. set {_Admin} to value "%player%.Admin" get of "plugins/Factions/data.yml"
  1414. if {_Admin} is "true":
  1415. if arg 1 is set:
  1416. if arg 2 is set:
  1417. if arg 3 is set:
  1418. if arg 4 is set:
  1419. if arg 5 is set:
  1420. send "&eNome: %arg 1% - %arg 2% Duração: %arg 3% Data: %arg 4%/%arg 5%/%arg 6%"
  1421. delete {Guerras::*}
  1422. add arg 1 to {Guerras::*}
  1423. set {FactionNome::%arg 1%} to "%arg 2%"
  1424. set {Date::%arg 1%} to "%arg 4%/%arg 5%/%arg 6%"
  1425. loop {FactionList::*}:
  1426. remove loop-value from {FactionGuerreiro::*}
  1427. loop all players:
  1428. set {_TagV} to value "%loop-player%.FactionTag" get of "plugins/Factions/data.yml"
  1429. if arg 1 is equal to {_TagV}:
  1430. add loop-player to {Jogadores::%arg 1%::*}
  1431. add loop-player to {FactionGuerreiro::*}
  1432.  
  1433. set {_Wins} to value "%loop-player%.Wins" get of "plugins/Factions/data.yml"
  1434.  
  1435. set {_Wins} to {_Wins} parsed as integer
  1436. add 1 to {_Wins}
  1437. set "%loop-player%.Wins" to "%{_Wins}%" in yaml file "plugins/Factions/data.yml"
  1438. else:
  1439. send "&cUtilize /guerras <tag> <nome> <tempo> <dia> <mês> <ano>."
  1440. stop
  1441. else:
  1442. send "&cUtilize /guerras <tag> <nome> <tempo> <dia> <mês> <ano>."
  1443. stop
  1444. else:
  1445. send "&cUtilize /guerras <tag> <nome> <tempo> <dia> <mês> <ano>."
  1446. stop
  1447. else:
  1448. send "&cUtilize /guerras <tag> <nome> <tempo> <dia> <mês> <ano>."
  1449. stop
  1450. else:
  1451. send "&cUtilize /guerras <tag> <nome> <tempo> <dia> <mês> <ano>."
  1452. stop
  1453. else:
  1454. if {Guerras::*} isn't set:
  1455. open chest with 6 rows named "Guerras oCorrida Is" to player
  1456. format slot 22 of player with cobweb named "&cNão há nenhuma guerra registrada." to be unstealable
  1457. stop
  1458. set {_s} to 10
  1459. set {_g} to 4
  1460. if {_s} is 16:
  1461. set {_s} to 19
  1462. set {_g} to 5
  1463. if {_s} is 25:
  1464. set {_s} to 28
  1465. set {_g} to 6
  1466. if {_s} is 33:
  1467. set {_s} to 36
  1468. set {_g} to 6
  1469. open chest with {_g} rows named "Guerras oCorrida Is" to player
  1470. loop {Guerras::*}:
  1471. loop {Jogadores::%loop-value-1%::*}:
  1472. set {_FactionRoleV} to value "%loop-value-2%.FactionRole" get of "plugins/Factions/data.yml"
  1473. set {_GroupV} to value "%loop-value-2%.GroupV" get of "plugins/Factions/data.yml"
  1474. if {_FactionRoleV} is "LEADER":
  1475. set {_RoleV} to "##"
  1476. if {_FactionRoleV} is "OFFICER":
  1477. set {_RoleV} to "*"
  1478. if {_FactionRoleV} is "MEMBER":
  1479. set {_RoleV} to "+"
  1480. if {_FactionRoleV} is "RECRUIT":
  1481. set {_RoleV} to "-"
  1482. if loop-value-2 have permission "master.group":
  1483. set {_TagV} to "&6[Master] "
  1484. if loop-value-2 have permission "gerente.group":
  1485. set {_TagV} to "&4[Gerente] "
  1486. if loop-value-2 have permission "admin.group":
  1487. set {_TagV} to "&c[Admin] "
  1488. if loop-value-2 have permission "moderador.group":
  1489. set {_TagV} to "&2[Moderador] "
  1490. if loop-value-2 have permission "ajudante.group":
  1491. set {_TagV} to "&e[Ajudante] "
  1492. if loop-value-2 have permission "imperador.group":
  1493. set {_TagV} to "&b[Imperador] "
  1494. if loop-value-2 have permission "supremo.group":
  1495. set {_TagV} to "&4[Supremo] "
  1496. if loop-value-2 have permission "lendario.group":
  1497. set {_TagV} to "&2[Lendário] "
  1498. if loop-value-2 have permission "heroi.group":
  1499. set {_TagV} to "&5[Herói] "
  1500. if loop-value-2 have permission "campeao.group":
  1501. set {_TagV} to "&3[Campeão] "
  1502. if loop-value-2 have permission "default.group":
  1503. set {_TagV} to "&7"
  1504. format slot {_s} of player with paper named "&e%{Date::%loop-value%}%" with lore "&fFacção vencedora: &7%loop-value% %{FactionNome::%loop-value%}%||&fTempo de duração: &70s|| ||&fParticipantes e abates:|| &7%{_RoleV}% %{_TagV}%%{Jogadores::%loop-value%::*}%&7: &c0 abates|| ||" to be unstealable
  1505. add 1 to {_s}
  1506. on rightclick:
  1507. if player's tool is a spawn egg named "&eOvo de Creeper Eletrizado" with lore "&7Este Creeper possui um raio||&7de explosão maior do que o||&7Creeper normal, mas o dano||&7causado nos blocos é o mesmo.":
  1508. if event-block is set:
  1509. cancel event
  1510. spawn a powered creeper above the event-block
  1511. remove 1 of glowing creeper spawn egg named "&eOvo de Creeper Eletrizado" with lore "&7Este Creeper possui um raio||&7de explosão maior do que o||&7Creeper normal, mas o dano||&7causado nos blocos é o mesmo." from player
  1512. stop
  1513. on rightclick:
  1514. wait 1 tick
  1515. if player's tool is a firework star named "&eReset de KDR" with lore "&7Ao usar este item, você terá seu KDR zerado.":
  1516. open chest with 3 rows named "Confirmação" to player
  1517. format slot 11 of player with light green wool named "&aAceitar (leia abaixo)" with lore "&7Tem certeza que deseja zerar seu KDR?" to close then run [make console execute command "/api resetkdrconfirm %player%"]
  1518. format slot 15 of player with red wool named "&cNegar" to close
  1519. on rightclick:
  1520. if player's tool is a paper named "&e+1 de Poder Instantâneo" with lore "&7Ativando este item você,||&7ganhará 1 ponto de poder.":
  1521. set {_FactionMaxPower} to value "%player%.FactionMaxPower" get of "plugins/Factions/data.yml"
  1522. set {_FactionPower} to value "%player%.FactionPower" get of "plugins/Factions/data.yml"
  1523. set {_FactionMaxPower} to {_FactionMaxPower} parsed as integer
  1524. set {_FactionPower} to {_FactionPower} parsed as integer
  1525. if {_FactionPower} = {_FactionMaxPower}:
  1526. send "&cVocê atingiu o limite de poder."
  1527. else:
  1528. add 1 to {_FactionPower}
  1529. set "%player%.FactionPower" to "%{_FactionPower}%" in yaml file "plugins/Factions/data.yml"
  1530. remove 1 paper named "&e+1 de Poder Instantâneo" with lore "&7Ativando este item você,||&7ganhará 1 ponto de poder." from player
  1531. send "&aSeu poder foi aumentado em 1!!"
  1532. on rightclick:
  1533. if player's tool is a nether star named "&6+1 de Poder Máximo" with lore "&fAtivando esse item você aumenta||&f1 ponto em seu poder máximo.|| ||&f* Limite de poder máximo: 20":
  1534. set {_FactionMaxPower} to value "%player%.FactionMaxPower" get of "plugins/Factions/data.yml"
  1535. set {_FactionMaxPower} to {_FactionMaxPower} parsed as integer
  1536. if {_FactionMaxPower} = 20:
  1537. send "&cVocê atingiu o limite de poder."
  1538. else:
  1539. add 1 to {_FactionMaxPower}
  1540. Spawn a firework at player
  1541. set "%player%.FactionMaxPower" to "%{_FactionMaxPower}%" in yaml file "plugins/Factions/data.yml"
  1542. remove 1 nether star named "&6+1 de Poder Máximo" with lore "&fAtivando esse item você aumenta||&f1 ponto em seu poder máximo.|| ||&f* Limite de poder máximo: 20" from player
  1543. send "&aSeu limite de poder foi aumentado para %{_FactionMaxPower}%!!"
  1544. command /api [<text>] [<player>]:
  1545. aliases: api:api
  1546. trigger:
  1547. if sender have permission "api.command":
  1548. if arg 1 isn't set:
  1549. send "&7--------------------"
  1550. send "&aNome: &7API"
  1551. send "&aVersão: &71.9"
  1552. send "&7--------------------"
  1553. if arg 1 is "CREEPER":
  1554. if arg 2 is set:
  1555. give 1 paper named "&e+1 de Poder Instantâneo" with lore "&7Ativando este item você,||&7ganhará 1 ponto de poder." to arg 2
  1556. if arg 1 is "CREEPER":
  1557. if arg 2 is set:
  1558. give 1 of glowing creeper spawn egg named "&eOvo de Creeper Eletrizado" with lore "&7Este Creeper possui um raio||&7de explosão maior do que o||&7Creeper normal, mas o dano||&7causado nos blocos é o mesmo." to arg 2
  1559. if arg 1 is "resetkdrconfirm":
  1560. if arg 2 is set:
  1561. if arg 2's tool is firework star named "&eReset de KDR" with lore "&7Ao usar este item, você terá seu KDR zerado.":
  1562. remove 1 firework star named "&eReset de KDR" with lore "&7Ao usar este item, você terá seu KDR zerado." from arg 2
  1563. set "%arg 2%.Mortes" to "0" in yml file "plugins/Factions/data.yml"
  1564. set "%arg 2%.Abates" to "0" in yml file "plugins/Factions/data.yml"
  1565. send "&aSeu KDR foi zerado!" to arg 2
  1566. stop
  1567. else:
  1568. send "&cO item que você está segurando não é um Reset KDR." to arg 2
  1569. stop
  1570. if arg 1 is "RESET_KDR":
  1571. if arg 2 is set:
  1572. give 1 firework star named "&eReset de KDR" with lore "&7Ao usar este item, você terá seu KDR zerado." to arg 2
  1573. if arg 1 is "PODER":
  1574. if arg 2 is set:
  1575. give 1 nether star named "&6+1 de Poder Máximo" with lore "&fAtivando esse item você aumenta||&f1 ponto em seu poder máximo.|| ||&f* Limite de poder máximo: 20" to arg 2
  1576. if arg 1 is "PODER_INSTANTANEO":
  1577. if arg 2 is set:
  1578. give 1 paper named "&e+1 de Poder Instantâneo" with lore "&7Ativando este item você,||&7ganhará 1 ponto de poder." to arg 2
  1579. if arg 1 is "VENENO":
  1580. if arg 2 is set:
  1581. give 1 enchanted book named "&eLivro Encantado" with lore "&7Veneno I|| ||&fEncanta: &7Arco" to arg 2
  1582. if arg 1 is "LENTIDAO":
  1583. if arg 2 is set:
  1584. give 1 enchanted book named "&eLivro Encantado" with lore "&7Lentidão I|| ||&fEncanta: &7Peitoral" to arg 2
  1585. if arg 1 is "INCENDIO":
  1586. if arg 2 is set:
  1587. give 1 enchanted book named "&eLivro Encantado" with lore "&7Incêndio I|| ||&fEncanta: &7Peitoral" to arg 2
  1588. if arg 1 is "ANTI_GRAVIDADE":
  1589. if arg 2 is set:
  1590. give 1 enchanted book named "&eLivro Encantado" with lore "&7Antigravidade I|| ||&fEncanta: &7Bota" to arg 2
  1591. if arg 1 is "AUTO_DESTRUICAO":
  1592. if arg 2 is set:
  1593. give 1 enchanted book named "&eLivro Encantado" with lore "&7Autodestruição I|| ||&fEncanta: &7Peitoral" to arg 2
  1594. if arg 1 is "Corrida I":
  1595. if arg 2 is set:
  1596. give 1 enchanted book named "&eLivro Encantado" with lore "&7Corrida I|| ||&fEncanta: &7Bota" to arg 2
  1597. if arg 1 is "MULTIPLICADOR_DE_TIROS":
  1598. if arg 2 is set:
  1599. give 1 enchanted book named "&eLivro Encantado" with lore "&7Multiplicador de Tiros I|| ||&fEncanta: &7Arco" to arg 2
  1600. if arg 1 is "SUPER_AREA":
  1601. if arg 2 is set:
  1602. give 1 enchanted book named "&eLivro Encantado" with lore "&7Super Área I|| ||&fEncanta: &7Picareta" to arg 2
  1603. if arg 1 is "PROPULSAO":
  1604. if arg 2 is set:
  1605. give 1 enchanted book named "&eLivro Encantado" with lore "&7Propulsão I|| ||&fEncanta: &7Bota" to arg 2
  1606. if arg 1 is "SOBRECARGA":
  1607. if arg 2 is set:
  1608. give 1 enchanted book named "&eLivro Encantado" with lore "&7Sobrecarga I|| ||&fEncanta: &7Espada" to arg 2
  1609. if arg 1 is "LIMIAR_DA_LAMINA":
  1610. if arg 2 is set:
  1611. give 1 enchanted book named "&eLivro Encantado" with lore "&7Limiar da Lâmina I|| ||&fEncanta: &7Espada" to arg 2
  1612. else:
  1613. send "&cVocê precisa do grupo Gerente ou superior para executar este comando."
  1614. stop
  1615. on mcmmo skill level up:
  1616. set {_Level} to value "%player%.Level" get of "plugins/Factions/data.yml"
  1617.  
  1618. set {_Level} to {_Level} parsed as integer
  1619. add 1 to {_Level}
  1620. set "%player%.Level" to "%{_Level}%" in yaml file "plugins/Factions/data.yml"
  1621. on mine:
  1622. if lore of player's tool contains "&7Super Área I":
  1623. loop blocks in radius 1 of event-block:
  1624. if loop-block is stone or cobblestone or obsidian or any ore:
  1625. if loop-block is bedrock:
  1626. remove bedrock from loop-block
  1627. drop loop-block
  1628. set loop-block to air
  1629. on damage:
  1630. if damage cause is VOID:
  1631. teleport victim to {Spawn}
  1632. on damage:
  1633. if lore of victim's chestplate contains "&7Incêndio I":
  1634. chance of 0.5%:
  1635. ignite attacker for 3 seconds
  1636. on damage:
  1637. if lore of victim's chestplate contains "&7Lentidão I":
  1638. chance of 3%:
  1639. apply slowness 1 to the attacker for 5 seconds
  1640. on damage:
  1641. if damage was caused by projectile:
  1642. if lore of attacker's tool contains "&7Veneno I":
  1643. chance of 10%:
  1644. apply poison 1 to the victim for 4 seconds
  1645. on death:
  1646. if lore of player's chestplate contains "&7Autodestruição I":
  1647. clear drops
  1648. on damage:
  1649. damage cause is fall:
  1650. if lore of victim's boots contains "&7Antigravidade I":
  1651. cancel the event
  1652. on damage:
  1653. loop all players:
  1654. if loop-player isn't a player:
  1655. if loop-player is "%victim%":
  1656. if lore of attacker's tool contains "&7Sobrecarga I":
  1657. strike lightning at the loop-player
  1658. damage loop-player by 3.5 hearts
  1659. on damage:
  1660. if lore of attacker's tool contains "&7Limiar da Lâmina I":
  1661. increase the damage by 2
  1662. on inventory click:
  1663. if cursor item is enchanted book named "&eLivro Encantado" with lore "&7Sobrecarga I|| ||&fEncanta: &7Espada":
  1664. if clicked item is sword:
  1665. if lore of clicked item is "":
  1666. set lore of clicked item to "&7Sobrecarga I"
  1667. else:
  1668. set lore of clicked item to "%lore of clicked item%||&7Sobrecarga I"
  1669. set clicked item to glowing clicked item
  1670. set cursor item to air
  1671. message "&aEncantamento aplicado com sucesso!"
  1672. cancel event
  1673. if cursor item is enchanted book named "&eLivro Encantado" with lore "&7Limiar da Lâmina I|| ||&fEncanta: &7Espada":
  1674. if clicked item is sword:
  1675. if lore of clicked item is "":
  1676. set lore of clicked item to "&7Limiar da Lâmina I"
  1677. else:
  1678. set lore of clicked item to "%lore of clicked item%||&7Limiar da Lâmina I"
  1679. set clicked item to glowing clicked item
  1680. set cursor item to air
  1681. message "&aEncantamento aplicado com sucesso!"
  1682. cancel event
  1683. if cursor item is enchanted book named "&eLivro Encantado" with lore "&7Veneno I|| ||&fEncanta: &7Peitoral":
  1684. if clicked item is bow:
  1685. if lore of clicked item is "":
  1686. set lore of clicked item to "&7Veneno I"
  1687. else:
  1688. set lore of clicked item to "%lore of clicked item%||&7Veneno I"
  1689. set clicked item to glowing clicked item
  1690. set cursor item to air
  1691. message "&aEncantamento aplicado com sucesso!"
  1692. cancel event
  1693. if cursor item is enchanted book named "&eLivro Encantado" with lore "&7Lentidão I|| ||&fEncanta: &7Peitoral":
  1694. if clicked item is chestplate:
  1695. if lore of clicked item is "":
  1696. set lore of clicked item to "&7Lentidão I"
  1697. else:
  1698. set lore of clicked item to "%lore of clicked item%||&7Lentidão I"
  1699. set clicked item to glowing clicked item
  1700. set cursor item to air
  1701. message "&aEncantamento aplicado com sucesso!"
  1702. cancel event
  1703. if cursor item is enchanted book named "&eLivro Encantado" with lore "&7Incêndio I|| ||&fEncanta: &7Peitoral":
  1704. if clicked item is chestplate:
  1705. if lore of clicked item is "":
  1706. set lore of clicked item to "&7Incêndio I"
  1707. else:
  1708. set lore of clicked item to "%lore of clicked item%||&7Incêndio I"
  1709. set clicked item to glowing clicked item
  1710. set cursor item to air
  1711. message "&aEncantamento aplicado com sucesso!"
  1712. cancel event
  1713. if cursor item is enchanted book named "&eLivro Encantado" with lore "&7Antigravidade I|| ||&fEncanta: &7Bota":
  1714. if clicked item is boots:
  1715. if lore of clicked item is "":
  1716. set lore of clicked item to "&7Antigravidade I"
  1717. else:
  1718. set lore of clicked item to "%lore of clicked item%||&7Antigravidade I"
  1719. set clicked item to glowing clicked item
  1720. set cursor item to air
  1721. message "&aEncantamento aplicado com sucesso!"
  1722. cancel event
  1723. if cursor item is enchanted book named "&eLivro Encantado" with lore "&7Autodestruição I|| ||&fEncanta: &7Peitoral":
  1724. if clicked item is chestplate:
  1725. if lore of clicked item is "":
  1726. set lore of clicked item to "&7Autodestruição I"
  1727. else:
  1728. set lore of clicked item to "%lore of clicked item%||&7Autodestruição I"
  1729. set clicked item to glowing clicked item
  1730. set cursor item to air
  1731. message "&aEncantamento aplicado com sucesso!"
  1732. cancel event
  1733. if cursor item is enchanted book named "&eLivro Encantado" with lore "&7Corrida I|| ||&fEncanta: &7Bota":
  1734. if clicked item is boots:
  1735. if lore of clicked item is "":
  1736. set lore of clicked item to "&7Corrida I"
  1737. else:
  1738. set lore of clicked item to "%lore of clicked item%||&7Corrida I"
  1739. set clicked item to glowing clicked item
  1740. set cursor item to air
  1741. message "&aEncantamento aplicado com sucesso!"
  1742. cancel event
  1743. if cursor item is enchanted book named "&eLivro Encantado" with lore "&7Multiplicador de Tiros I|| ||&fEncanta: &7Arco":
  1744. if clicked item is bow:
  1745. if lore of clicked item is "":
  1746. set lore of clicked item to "&7Multiplicador de Tiros I"
  1747. else:
  1748. set lore of clicked item to "%lore of clicked item%||&7Multiplicador de Tiros I"
  1749. set clicked item to glowing clicked item
  1750. set cursor item to air
  1751. message "&aEncantamento aplicado com sucesso!"
  1752. cancel event
  1753. if cursor item is enchanted book named "&eLivro Encantado" with lore "&7Super Área I|| ||&fEncanta: &7Picareta":
  1754. if clicked item is pickaxe:
  1755. if lore of clicked item is "":
  1756. set lore of clicked item to "&7Super Área I"
  1757. else:
  1758. set lore of clicked item to "%lore of clicked item%||&7Super Área I"
  1759. set clicked item to glowing clicked item
  1760. set cursor item to air
  1761. message "&aEncantamento aplicado com sucesso!"
  1762. cancel event
  1763. if cursor item is enchanted book named "&eLivro Encantado" with lore "&7Propulsão I|| ||&fEncanta: &7Bota":
  1764. if clicked item is boots:
  1765. if lore of clicked item is "":
  1766. set lore of clicked item to "&7Propulsão I"
  1767. else:
  1768. set lore of clicked item to "%lore of clicked item%||&7Propulsão I"
  1769. set clicked item to glowing clicked item
  1770. set cursor item to air
  1771. message "&aEncantamento aplicado com sucesso!"
  1772. cancel event
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement