HallowedS

2

Jan 3rd, 2018
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 55.96 KB | None | 0 0
  1. on command "/sethome ":
  2. set {_args::*} to arguments split at " "
  3. if {_arg::*} is set:
  4. if world of player is "mine-1":
  5. send "&cVocê não tem permissão para criar home neste local."
  6. stop
  7. command /craft [<text>]:
  8. trigger:
  9. if player have permission "craft.craft":
  10. open crafting table for the player
  11. else:
  12. send "&cVocê precisa do grupo Campeão ou superior para executar este comando."
  13. stop
  14. on teleport:
  15. if world of player is "vip-1":
  16. set player's fly mode to true
  17. else:
  18. if player have permission "moderador.group" or "admin.group" or "gerente.group" or "master.group":
  19. stop
  20. else:
  21. set player's fly mode to false
  22. command /vip [<text>]:
  23. aliases: vip:vip
  24. trigger:
  25. if arg 1 isn't set:
  26. if sender have permission "vip.teleport":
  27. if {Vip} is set:
  28. send ""
  29. send "&aSeja bem-vindo ao Mundo VIP."
  30. send ""
  31. play "LEVEL_UP" to player at volume 0.2
  32. teleport player to {Vip}
  33. else:
  34. send "&eOps, estamos preparando algo bem especial. A área VIP estará disponível em breve!"
  35. stop
  36. else:
  37. send "&cVocê precisa do grupo Campeão ou superior para executar este comando."
  38. stop
  39. if arg 1 is set:
  40. if sender have permission "master.group" or "gerente.group":
  41. set {Vip} to player's location
  42. send "&aDefinido o local da VIP."
  43. stop
  44. else:
  45. if sender have permission "vip.ir":
  46. if {Vip} isn't set:
  47. send ""
  48. send "&aSeja bem-vindo ao Mundo VIP."
  49. send ""
  50. play "LEVEL_UP" to player at volume 0.2
  51. teleport player to {Vip}
  52. else:
  53. send "&eOps, estamos preparando algo bem especial. A área VIP estará disponível em breve!"
  54. stop
  55. else:
  56. send "&cVocê precisa do grupo Campeão ou superior para executar este comando."
  57. stop
  58. command /autoreiniciar [<text>]:
  59. aliases: autoreiniciar:reiniciar
  60. trigger:
  61. if sender have permission "restart.server":
  62. broadcast ""
  63. broadcast "&e&l[&eREINÍCIO&e&l] &eReiniciando servidor em instantes, voltamos já."
  64. broadcast "&e&l[&eREINÍCIO&e&l] &eAlgumas funções podem ter sido desativadas neste período."
  65. broadcast ""
  66. wait 10 seconds
  67. broadcast ""
  68. broadcast "&cVocê foi desconectado do servidor onde você estava. Motivo: &fServer is restarting"
  69. broadcast ""
  70. kick all players due to "Server is restarting"
  71. make console execute command "/save-all"
  72. make console execute command "/reload"
  73. else:
  74. send "&cVocê precisa do grupo Gerente ou superior para executar este comando."
  75. stop
  76. command /reiniciar [<text>]:
  77. aliases: /reiniciar:reiniciar
  78. trigger:
  79. if sender have permission "restart.server":
  80. broadcast ""
  81. broadcast "&e&l[&eREINÍCIO&e&l] &eReiniciando servidor em 3 minutos."
  82. broadcast ""
  83. wait 1 minute
  84. broadcast ""
  85. broadcast "&e&l[&eREINÍCIO&e&l] &eReiniciando servidor em 2 minutos."
  86. broadcast ""
  87. wait 1 minute
  88. broadcast ""
  89. broadcast "&e&l[&eREINÍCIO&e&l] &eReiniciando servidor em 1 minuto."
  90. broadcast ""
  91. wait 1 minute
  92. broadcast ""
  93. broadcast "&e&l[&eREINÍCIO&e&l] &eReiniciando servidor em instantes, voltamos já."
  94. broadcast "&e&l[&eREINÍCIO&e&l] &eAlgumas funções podem ter sido desativadas neste período."
  95. broadcast ""
  96. wait 10 seconds
  97. broadcast ""
  98. broadcast "&cVocê foi desconectado do servidor onde você estava. Motivo: &fServer is restarting"
  99. broadcast ""
  100. kick all players due to "Server is restarting"
  101. make console execute command "/save-all"
  102. make console execute command "/reload"
  103. else:
  104. send "&cVocê precisa do grupo Gerente ou superior para executar este comando."
  105. stop
  106. on join:
  107. set join message to ""
  108. on join:
  109. set tab header to "%nl%&6&lSKY SURVIVAL%nl%&fskysurvival.com.br%nl%" and footer to "%nl%&6Fórum: &fskynetwork.com.br/forum%nl%&6Team Speak 3: &fts.skynetwork.com.br%nl%&6Facebook: &ffb.co/ServidoresSky%nl%&6Twitter: &ftwitter.com/ServidoresSky%nl% %nl% &6Adquira VIP e Cash acessando: &floja.skynetwork.com.br %nl%" for player
  110. on quit:
  111. set quit message to ""
  112. on death:
  113. set death message to ""
  114. on chat:
  115. set {_Abates} to value "%player%.Abates" get of "plugins/Factions/data.yml"
  116. set {_Mortes} to value "%player%.Mortes" get of "plugins/Factions/data.yml"
  117. if {FactionGuerreiro::*} contains "%player%":
  118. set {_Guerreiro} to " &c[Guerreiro]"
  119. else:
  120. set {_Guerreiro} to ""
  121. if sender have permission "master.group":
  122. set {_Tag} to "&6[Master] "
  123. if sender have permission "gerente.group":
  124. set {_Tag} to "&4[Gerente] "
  125. if sender have permission "admin.group":
  126. set {_Tag} to "&c[Admin] "
  127. if sender have permission "moderador.group":
  128. set {_Tag} to "&2[Moderador] "
  129. if sender have permission "ajudante.group":
  130. set {_Tag} to "&e[Ajudante] "
  131. if sender have permission "youtuber.group":
  132. set {_Tag} to "&c[YT] "
  133. if sender have permission "imperador.group":
  134. set {_Tag} to "&b[Imperador] "
  135. if sender have permission "supremo.group":
  136. set {_Tag} to "&4[Supremo] "
  137. if sender have permission "lendario.group":
  138. set {_Tag} to "&2[Lendário] "
  139. if sender have permission "heroi.group":
  140. set {_Tag} to "&5[Herói] "
  141. if sender have permission "campeao.group":
  142. set {_Tag} to "&3[Campeão] "
  143. if sender have permission "default.group":
  144. set {_Tag} to ""
  145. set {_FactionPower} to value "%player%.FactionPower" get of "plugins/Factions/data.yml"
  146. set {_Faction} to value "%player%.Faction" get of "plugins/Factions/data.yml"
  147. set {_FactionRole} to value "%player%.FactionRole" get of "plugins/Factions/data.yml"
  148. if {_FactionRole} is "LEADER":
  149. set {_FactionRoleY} to "##"
  150. if {_FactionRole} is "OFFICER":
  151. set {_FactionRoleY} to "*"
  152. if {_FactionRole} is "MEMBER":
  153. set {_FactionRoleY} to "+"
  154. if {_FactionRole} is "RECRUIT":
  155. set {_FactionRoleY} to "-"
  156. set {_FactionTag} to value "%player%.FactionTag" get of "plugins/Factions/data.yml"
  157. set {_FactionMaxPower} to value "%player%.FactionMaxPower" get of "plugins/Factions/data.yml"
  158. loop all players in radius 16 of player:
  159. add 1 to {_n}
  160. set {_players::%{_n}%} to loop-player
  161. if {_n} is greater than 0:
  162. if {_FactionTag} is "null":
  163. 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}%}
  164. 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
  165. else:
  166. 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}%}
  167. 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
  168. else:
  169. if {_FactionTag} is "null":
  170. 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
  171. send "&eNão há ninguém perto para te escutar :(" to player
  172. else:
  173. 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
  174. send "&eNão há ninguém perto para te escutar :(" to player
  175. cancel event
  176. command /g [<text>]:
  177. aliases: g:g
  178. trigger:
  179. set {_Abates} to value "%player%.Abates" get of "plugins/Factions/data.yml"
  180. set {_Mortes} to value "%player%.Mortes" get of "plugins/Factions/data.yml"
  181. if {FactionGuerreiro::*} contains "%player%":
  182. set {_Guerreiro} to " &c[Guerreiro]"
  183. else:
  184. set {_Guerreiro} to ""
  185. set {_FactionPower} to value "%player%.FactionPower" get of "plugins/Factions/data.yml"
  186. set {_Faction} to value "%player%.Faction" get of "plugins/Factions/data.yml"
  187. set {_FactionRole} to value "%player%.FactionRole" get of "plugins/Factions/data.yml"
  188. if {_FactionRole} is "LEADER":
  189. set {_FactionRoleY} to "##"
  190. if {_FactionRole} is "OFFICER":
  191. set {_FactionRoleY} to "*"
  192. if {_FactionRole} is "MEMBER":
  193. set {_FactionRoleY} to "+"
  194. if {_FactionRole} is "RECRUIT":
  195. set {_FactionRoleY} to "-"
  196. set {_FactionTag} to value "%player%.FactionTag" get of "plugins/Factions/data.yml"
  197. set {_FactionMaxPower} to value "%player%.FactionMaxPower" get of "plugins/Factions/data.yml"
  198. if arg 1 isn't set:
  199. send "&cUtilize /g <mensagem>."
  200. stop
  201. if arg 1 is set:
  202. if arg 1 contains "lag":
  203. play "VILLAGER_NO" to player at volume 0.2
  204. send "&cNão utilize palavras que possam incentivar o flood no chat."
  205. stop
  206. if {ChatGlobal} is "off":
  207. if player don't have permission "master.group" or "gerente.group" or "admin.group":
  208. send "&cO chat está desabilitado no momento."
  209. stop
  210. if sender have permission "master.group":
  211. set {_Tag} to "&6[Master] "
  212. if sender have permission "gerente.group":
  213. set {_Tag} to "&4[Gerente] "
  214. if sender have permission "admin.group":
  215. set {_Tag} to "&c[Admin] "
  216. if sender have permission "moderador.group":
  217. set {_Tag} to "&2[Moderador] "
  218. if sender have permission "ajudante.group":
  219. set {_Tag} to "&e[Ajudante] "
  220. if sender have permission "youtuber.group":
  221. set {_Tag} to "&c[YT] "
  222. if sender have permission "imperador.group":
  223. set {_Tag} to "&b[Imperador] "
  224. if sender have permission "supremo.group":
  225. set {_Tag} to "&4[Supremo] "
  226. if sender have permission "lendario.group":
  227. set {_Tag} to "&2[Lendário] "
  228. if sender have permission "heroi.group":
  229. set {_Tag} to "&5[Herói] "
  230. if sender have permission "campeao.group":
  231. set {_Tag} to "&3[Campeão] "
  232. if sender have permission "default.group":
  233. set {_Tag} to ""
  234. if {_Faction} is "null":
  235. if sender have permission "gerente.group" or "master.group":
  236. broadcast ""
  237. if sender have permission "global.color":
  238. 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
  239. else:
  240. 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
  241. if sender have permission "gerente.group" or "master.group":
  242. broadcast ""
  243. else:
  244. if sender have permission "gerente.group" or "master.group":
  245. broadcast ""
  246. if sender have permission "global.color":
  247. 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
  248. else:
  249. 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
  250. if sender have permission "gerente.group" or "master.group":
  251. broadcast ""
  252. command /clear [<offlineplayer>] [<text>]:
  253. aliases: /clear:clear
  254. trigger:
  255. if player have permission "clear.inventory":
  256. set {_NickName} to value "%arg 1%.NickName" get of "plugins/Factions/data.yml"
  257. if arg 1 isn't set:
  258. send "&aO inventário de %player% foi limpo."
  259. clear player's inventory
  260. else:
  261. if arg 1 is online:
  262. send "&aO inventário de %arg 1% foi limpo."
  263. clear arg 1's inventory
  264. else:
  265. send "&cEste usuário não está online."
  266. stop
  267. else:
  268. send "&cVocê precisa do grupo Gerente ou superior para executar este comando."
  269. stop
  270. at 16:00:
  271. set time to 12:00
  272. on weather change to rainy:
  273. set weather to sunny
  274. on weather change to thundering:
  275. set weather to sunny
  276. command /group [<offlineplayer>] [<text>]:
  277. aliases: group:group
  278. trigger:
  279. if sender have permission "group.set":
  280. if arg 1 isn't set:
  281. send "&cUtilize /group <jogador> para selecionar um tipo de grupo."
  282. if arg 1 is set:
  283. if arg 2 isn't set:
  284. send ""
  285. set {_Date} to now
  286. if player have permission "master.group":
  287. send json of "&7[##1]" run "/group %arg 1% Master" then " &fData: &7%{_Date}% &fGrupo: &6[Master]" to player
  288. send json of "&7[##2]" run "/group %arg 1% Gerente" then " &fData: &7%{_Date}% &fGrupo: &4[Gerente]" to player
  289. send json of "&7[##3]" run "/group %arg 1% Admin" then " &fData: &7%{_Date}% &fGrupo: &c[Admin]" to player
  290. send json of "&7[##4]" run "/group %arg 1% Moderador" then " &fData: &7%{_Date}% &fGrupo: &2[Moderador]" to player
  291. send json of "&7[##5]" run "/group %arg 1% Ajudante" then " &fData: &7%{_Date}% &fGrupo: &e[Ajudante]" to player
  292. send json of "&7[##6]" run "/group %arg 1% Youtuber" then " &fData: &7%{_Date}% &fGrupo: &c[YT]" to player
  293. send json of "&7[##7]" run "/group %arg 1% Imperador" then " &fData: &7%{_Date}% &fGrupo: &b[Imperador]" to player
  294. send json of "&7[##8]" run "/group %arg 1% Supremo" then " &fData: &7%{_Date}% &fGrupo: &4[Supremo]" to player
  295. send json of "&7[##9]" run "/group %arg 1% Lendario" then " &fData: &7%{_Date}% &fGrupo: &2[Lendário]" to player
  296. send json of "&7[##10]" run "/group %arg 1% Heroi" then " &fData: &7%{_Date}% &fGrupo: &5[Herói]" to player
  297. send json of "&7[##11]" run "/group %arg 1% Campeao" then " &fData: &7%{_Date}% &fGrupo: &3[Campeão]" to player
  298. send json of "&7[##12]" run "/group %arg 1% Default" then " &fData: &7%{_Date}% &fGrupo: &7[]" to player
  299. send ""
  300. else:
  301. 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":
  302. send "&cVocê inseriu um nome de um grupo inválido."
  303. stop
  304. if arg 2 is "Master":
  305. if player have permission "gerente.group":
  306. send "&cVocê não tem permissão para executar este comando."
  307. stop
  308. if arg 2 is "Master" or "Gerente" or "Admin" or "Moderador" or "Ajudante" or "Youtuber" or "Default":
  309. set "%arg 1%.Group" to "%arg 2%" in yml file "plugins/Factions/data.yml"
  310. execute console command "/pex user %arg 1% group set %arg 2%"
  311. if arg 2 is "Imperador" or "Supremo" or "Lendario" or "Heroi" or "Campeao":
  312. if arg 2 is "Imperador":
  313. set {_Color} to "&b"
  314. set {_Vip} to "&b[Imperador]"
  315. if arg 2 is "Supremo":
  316. set {_Color} to "&4"
  317. set {_Vip} to "&4[Supremo]"
  318. if arg 2 is "Lendario":
  319. set {_Color} to "&2"
  320. set {_Vip} to "&2[Lendário]"
  321. if arg 2 is "Heroi":
  322. set {_Color} to "&5"
  323. set {_Vip} to "&5[Herói]"
  324. if arg 2 is "Campeao":
  325. set {_Color} to "&3"
  326. set {_Vip} to "&3[Campeão]"
  327. set "%arg 1%.Group" to "%arg 2%" in yml file "plugins/Factions/data.yml"
  328. execute console command "/pex user %arg 1% group set %arg 2%"
  329. send all players title "%{_Color}%%arg 1%" with subtitle "&ftornou-se %{_Vip}%" for 3 seconds
  330. else:
  331. send "&cVocê precisa do grupo Gerente ou superior para executar este comando."
  332. stop
  333. command /online [<text>]:
  334. aliases: /online:online
  335. trigger:
  336. if arg 1 is "world" or "mine-1" or "vip":
  337. if player have permission "moderador.group" or "admin.group" or "gerente.group" or "master.group":
  338. loop all players:
  339. if "%world of loop-player%" is "%arg 1%":
  340. add 1 to {_n}
  341. send "&7Jogadores online no mundo %world of player%: &f%{_n}%"
  342. send ""
  343. loop all players:
  344. if loop-player have permission "master.group":
  345. If "%world of loop-player%" is "%world of player%":
  346. add loop-player to {_Masters::*}
  347. send "&6[Master]: &f%{_Masters::*}%"
  348. send ""
  349. loop all players:
  350. if loop-player have permission "gerente.group":
  351. If "%world of loop-player%" is "%world of player%":
  352. add loop-player to {_Gerentes::*}
  353. send "&4[Gerente]: &f%{_Gerentes::*}%"
  354. send ""
  355. loop all players:
  356. if loop-player have permission "admin.group":
  357. If "%world of loop-player%" is "%world of player%":
  358. add loop-player to {_Admin::*}
  359. send "&c[Admin]: &f%{_Admin::*}%"
  360. send ""
  361. loop all players:
  362. if loop-player have permission "moderador.group":
  363. If "%world of loop-player%" is "%world of player%":
  364. add loop-player to {_Moderadores::*}
  365. send "&2[Moderador]: &f%{_Moderadores::*}%"
  366. send ""
  367. loop all players:
  368. if loop-player have permission "ajudante.group":
  369. If "%world of loop-player%" is "%world of player%":
  370. add loop-player to {_Ajudantes::*}
  371. send "&e[Ajudante]: &f%{_Ajudantes::*}%"
  372. send ""
  373. loop all players:
  374. if loop-player have permission "youtuber.group":
  375. If "%world of loop-player%" is "%world of player%":
  376. add loop-player to {_Youtubers::*}
  377. send "&c[YT]: &f%{_Youtubers::*}%"
  378. send ""
  379. loop all players:
  380. if loop-player have permission "imperador.group":
  381. If "%world of loop-player%" is "%world of player%":
  382. add loop-player to {_Imperadores::*}
  383. send "&b[Imperador]: &f%{_Imperadores::*}%"
  384. send ""
  385. loop all players:
  386. if loop-player have permission "supremo.group":
  387. If "%world of loop-player%" is "%world of player%":
  388. add loop-player to {_Supremo::*}
  389. send "&4[Supremo]: &f%{_Supremo::*}%"
  390. send ""
  391. loop all players:
  392. if loop-player have permission "lendario.group":
  393. If "%world of loop-player%" is "%world of player%":
  394. add loop-player to {_Lendario::*}
  395. send "&2[Lendário]: &f%{_Lendario::*}%"
  396. send ""
  397. loop all players:
  398. if loop-player have permission "heroi.group":
  399. If "%world of loop-player%" is "%world of player%":
  400. add loop-player to {_Heroi::*}
  401. send "&5[Herói]: &f%{_Heroi::*}%"
  402. send ""
  403. loop all players:
  404. if loop-player have permission "campeao.group":
  405. If "%world of loop-player%" is "%world of player%":
  406. add loop-player to {_Campeao::*}
  407. send "&3[Campeão]: &f%{_Campeao::*}%"
  408. send ""
  409. loop all players:
  410. if loop-player have permission "default.group":
  411. If "%world of loop-player%" is "%world of player%":
  412. add loop-player to {_Default::*}
  413. send "&7: &f%{_Default::*}%"
  414. else:
  415. send ""
  416. send "&e* Jogadores em toda a rede: &6%number of all players%"
  417. send "&e* Jogadores no Factions Lava: &6%number of all players%"
  418. send ""
  419. stop
  420. else:
  421. send ""
  422. send "&e* Jogadores em toda a rede: &6%number of all players%"
  423. send "&e* Jogadores no Factions Lava: &6%number of all players%"
  424. send ""
  425. command /players:
  426. aliases: /players:players
  427. trigger:
  428. if player have permission "see.players":
  429. send ""
  430. loop all players:
  431. if loop-player have permission "master.group":
  432. add loop-player to {_Masters::*}
  433. send "&6[Master]: &f%{_Masters::*}%"
  434. send ""
  435. loop all players:
  436. if loop-player have permission "gerente.group":
  437. add loop-player to {_Gerentes::*}
  438. send "&4[Gerente]: &f%{_Gerentes::*}%"
  439. send ""
  440. loop all players:
  441. if loop-player have permission "admin.group":
  442. add loop-player to {_Admin::*}
  443. send "&c[Admin]: &f%{_Admin::*}%"
  444. send ""
  445. loop all players:
  446. if loop-player have permission "moderador.group":
  447. add loop-player to {_Moderadores::*}
  448. send "&2[Moderador]: &f%{_Moderadores::*}%"
  449. send ""
  450. loop all players:
  451. if loop-player have permission "ajudante.group":
  452. add loop-player to {_Ajudantes::*}
  453. send "&e[Ajudante]: &f%{_Ajudantes::*}%"
  454. send ""
  455. loop all players:
  456. if loop-player have permission "youtuber.group":
  457. add loop-player to {_Youtubers::*}
  458. send "&c[YT]: &f%{_Youtubers::*}%"
  459. send ""
  460. loop all players:
  461. if loop-player have permission "imperador.group":
  462. add loop-player to {_Imperadores::*}
  463. send "&b[Imperador]: &f%{_Imperadores::*}%"
  464. send ""
  465. loop all players:
  466. if loop-player have permission "supremo.group":
  467. add loop-player to {_Supremo::*}
  468. send "&4[Supremo]: &f%{_Supremo::*}%"
  469. send ""
  470. loop all players:
  471. if loop-player have permission "lendario.group":
  472. add loop-player to {_Lendario::*}
  473. send "&2[Lendário]: &f%{_Lendario::*}%"
  474. send ""
  475. loop all players:
  476. if loop-player have permission "heroi.group":
  477. add loop-player to {_Heroi::*}
  478. send "&5[Herói]: &f%{_Heroi::*}%"
  479. send ""
  480. loop all players:
  481. if loop-player have permission "campeao.group":
  482. add loop-player to {_Campeao::*}
  483. send "&3[Campeão]: &f%{_Campeao::*}%"
  484. send ""
  485. loop all players:
  486. if loop-player have permission "default.group":
  487. add loop-player to {_Default::*}
  488. send "&7: &f%{_Default::*}%"
  489. else:
  490. send "&cVocê precisa do grupo Moderador ou superior para executar este comando."
  491. command /tell [<offlineplayer>] [<text>]:
  492. aliases: /tell:tell
  493. trigger:
  494. if sender have permission "master.group":
  495. set {_Tag} to "&6[Master] "
  496. if sender have permission "gerente.group":
  497. set {_Tag} to "&4[Gerente] "
  498. if sender have permission "admin.group":
  499. set {_Tag} to "&c[Admin] "
  500. if sender have permission "moderador.group":
  501. set {_Tag} to "&2[Moderador] "
  502. if sender have permission "ajudante.group":
  503. set {_Tag} to "&e[Ajudante] "
  504. if sender have permission "youtuber.group":
  505. set {_Tag} to "&c[YT] "
  506. if sender have permission "imperador.group":
  507. set {_Tag} to "&b[Imperador] "
  508. if sender have permission "supremo.group":
  509. set {_Tag} to "&4[Supremo] "
  510. if sender have permission "lendario.group":
  511. set {_Tag} to "&2[Lendário] "
  512. if sender have permission "heroi.group":
  513. set {_Tag} to "&5[Herói] "
  514. if sender have permission "campeao.group":
  515. set {_Tag} to "&3[Campeão] "
  516. if sender have permission "default.group":
  517. set {_Tag} to "&7"
  518. if arg 1 have permission "master.group":
  519. set {_TagA} to "&6[Master] "
  520. if arg 1 have permission "gerente.group":
  521. set {_TagA} to "&4[Gerente] "
  522. if arg 1 have permission "admin.group":
  523. set {_TagA} to "&c[Admin] "
  524. if arg 1 have permission "moderador.group":
  525. set {_TagA} to "&2[Moderador] "
  526. if arg 1 have permission "ajudante.group":
  527. set {_TagA} to "&e[Ajudante] "
  528. if sender have permission "youtuber.group":
  529. set {_Tag} to "&c[YT] "
  530. if sender have permission "imperador.group":
  531. set {_Tag} to "&b[Imperador] "
  532. if arg 1 have permission "supremo.group":
  533. set {_TagA} to "&4[Supremo] "
  534. if arg 1 have permission "lendario.group":
  535. set {_TagA} to "&2[Lendário] "
  536. if arg 1 have permission "heroi.group":
  537. set {_TagA} to "&5[Herói] "
  538. if arg 1 have permission "campeao.group":
  539. set {_TagA} to "&3[Campeão] "
  540. if arg 1 have permission "default.group":
  541. set {_TagA} to "&7"
  542. if arg 1 isn't set:
  543. if arg 2 isn't set:
  544. send "&cUtilize /tell <jogador> <mensagem>."
  545. if arg 1 is set:
  546. if arg 2 isn't set:
  547. send "&cUtilize /tell <jogador> <mensagem>."
  548. if arg 1 is set:
  549. if arg 2 is set:
  550. if arg 1 is player:
  551. send "&cConversar consigo mesmo costuma ser sinal de loucura, procure um especialista para tratar do caso."
  552. stop
  553. set {_IsOnline} to value "%arg 1%.isOnline" get of "plugins/Factions/data.yml"
  554. if {_IsOnline} is "Online" or "Offline":
  555. if {_IsOnline} is "Online":
  556. send "&8Mensagem de %{_Tag}%%player%&8: &6%arg 2%" to arg 1
  557. send "&8Mensagem para %{_TagA}%%arg 1%&8: &6%arg 2%" to player
  558. stop
  559. else:
  560. send "&cEste usuário não está online."
  561. stop
  562. else:
  563. send "&cEste usuário não existe."
  564. stop
  565. on join:
  566. teleport player to {Spawn}
  567. on respawn:
  568. teleport player to {Spawn}
  569. command /chat [<text>] [<text>]:
  570. aliases: /chat:chat
  571. trigger:
  572. if sender have permission "chat.config":
  573. if arg 1 isn't set:
  574. send "&aUtilize /chat global [on/off] &f- &7Desabilitar o chat."
  575. send "&aUtilize /chat limpar &f- &7Limpar o chat."
  576. if player have permission "master.group":
  577. send "&aUtilize /chat all <mensagem> &f- &7Mandar uma mensagem para todos os servidores."
  578. stop
  579. if arg 1 is "all":
  580. if player have permission "master.group":
  581. if arg 2 isn't set:
  582. send "&cUtilize /chat all <mensagem>."
  583. stop
  584. else:
  585. broadcast ""
  586. broadcast "&6[Master] %player%&e: %arg 2%"
  587. broadcast ""
  588. stop
  589. else:
  590. send "&cVocê precisa do grupo Master ou superior para executar este comando."
  591. stop
  592. if arg 1 is "limpar":
  593. loop 200 times:
  594. broadcast ""
  595. send "&aO chat foi limpo com sucesso."
  596. stop
  597. if arg 1 is "global":
  598. if arg 2 isn't set:
  599. send "&aUtilize /chat global [on/off] &f- &7Desabilitar o chat."
  600. send "&aUtilize /chat limpar &f- &7Limpar o chat."
  601. if player have permission "master.group":
  602. send "&aUtilize /chat all <mensagem> &f- &7Mandar uma mensagem para todos os servidores."
  603. stop
  604. if arg 2 is "on":
  605. send "&aO chat global foi ligado."
  606. set {ChatGlobal} to "on"
  607. if arg 2 is "off":
  608. send "&cO chat global foi desligado."
  609. set {ChatGlobal} to "off"
  610. else:
  611. send "&cUtilize /chat global [on/off] para desabilitar o chat."
  612. stop
  613. else:
  614. send "&cVocê precisa do grupo Admin ou superior para executar este comando."
  615. stop
  616. command /say [<text>]:
  617. aliases: /say:say
  618. trigger:
  619. if sender have permission "say.admin":
  620. if arg 1 isn't set:
  621. send "&cUtilize /say <mensagem>."
  622. stop
  623. else:
  624. if sender is console:
  625. stop
  626. else:
  627. broadcast ""
  628. broadcast "&d&l[ANÚNCIO] &d%colored arg 1%"
  629. broadcast ""
  630. else:
  631. send "&cVocê precisa do grupo Admin ou superior para executar este comando."
  632. stop
  633. command /killall [<text>]:
  634. aliases: /killall:killall
  635. trigger:
  636. if sender have permission "kill.all":
  637. kill all players
  638. send "&aVocê matou todos os jogadores onlines."
  639. wait 10 seconds
  640. stop
  641. else:
  642. send "&cVocê precisa do grupo Gerente ou superior para executar este comando."
  643. stop
  644. command /head [<offlineplayer>] [<text>]:
  645. aliases: /head:head
  646. trigger:
  647. set {_IsOnline} to value "%arg 1%.isOnline" get of "plugins/Factions/data.yml"
  648. if sender is console:
  649. send "&cNão é suportado este comando no console."
  650. stop
  651. if player have permission "head.get":
  652. if arg 1 isn't set:
  653. send "&cUtilize /head <jogador>."
  654. else:
  655. if {_IsOnline} is "Online" or "Offline":
  656. if {_IsOnline} is "Online":
  657. send "&aVocê adquiriu a cabeça de: %arg 1%."
  658. if arg 1 have permission "master.group":
  659. set {_Tag} to "&6[Master] "
  660. if arg 1 have permission "gerente.group":
  661. set {_Tag} to "&4[Gerente] "
  662. if arg 1 have permission "admin.group":
  663. set {_Tag} to "&c[Admin] "
  664. if arg 1 have permission "moderador.group":
  665. set {_Tag} to "&2[Moderador] "
  666. if arg 1 have permission "ajudante.group":
  667. set {_Tag} to "&e[Ajudante] "
  668. if arg 1 have permission "youtuber.group":
  669. set {_Tag} to "&c[YT] "
  670. if arg 1 have permission "imperador.group":
  671. set {_Tag} to "&b[Imperador] "
  672. if arg 1 have permission "supremo.group":
  673. set {_Tag} to "&4[Supremo] "
  674. if arg 1 have permission "lendario.group":
  675. set {_Tag} to "&2[Lendário] "
  676. if arg 1 have permission "heroi.group":
  677. set {_Tag} to "&5[Herói] "
  678. if arg 1 have permission "campeao.group":
  679. set {_Tag} to "&3[Campeão] "
  680. if arg 1 have permission "default.group":
  681. set {_Tag} to ""
  682. give skull of arg 1 named "&fCabeça de %{_Tag}%&f%arg 1%" to player
  683. else:
  684. send "&cEste usuário não está online."
  685. else:
  686. send "&cEste usuário não existe."
  687. else:
  688. send "&cVocê precisa do grupo Gerente ou superior para executar este comando."
  689. stop
  690. command /tppos [<number>] [<number>] [<number>] [<offlineplayer>]:
  691. aliases: /tppos:tppos
  692. trigger:
  693. if player have permission "tp.pos":
  694. if arg 1 is not set:
  695. send "&cUtilize /tppos <x> <y> <z> <jogador>."
  696. stop
  697. if arg 1 is set:
  698. if arg 2 is not set:
  699. send "&cUtilize /tppos <x> <y> <z> <jogador>."
  700. stop
  701. if arg 2 is set:
  702. if arg 3 is not set:
  703. send "&cUtilize /tppos <x> <y> <z> <jogador>."
  704. stop
  705. if arg 3 is set:
  706. if arg 4 is not set:
  707. set {_loc} to the location at arg-1, arg-2, arg-3
  708. teleport the player to {_loc}
  709. send "&aVocê foi teleportado até x: %arg 1%, y: %arg 2%, z: %arg 3%."
  710. stop
  711. if arg 4 is set:
  712. if arg 4 is online:
  713. set {_loc} to the location at arg-1, arg-2, arg-3
  714. teleport arg 4 to {_loc}
  715. send "&a%arg 4% foi teleportado até x: %arg 1%, y: %arg 2%, and z: %arg 3%."
  716. stop
  717. else:
  718. send "&cEste usuário não está online ou não existe."
  719. stop
  720. else:
  721. send "&cVocê precisa do grupo Moderador ou superior para executar este comando."
  722. stop
  723. command /tp [<text>] [<text>]:
  724. aliases: /tp:tp
  725. trigger:
  726. set {_IsOnline} to value "%arg 1%.isOnline" get of "plugins/Factions/data.yml"
  727. if sender have permission "teleport.tp":
  728. if arg 1 isn't set:
  729. send "&cUtilize /tp <jogador>."
  730. stop
  731. if arg 1 is set:
  732. if arg 1 is player:
  733. send "&cVocê não pode teleportar para si mesmo."
  734. stop
  735. if arg 2 isn't set:
  736. if {_IsOnline} is "Online" or "Offline":
  737. if {_IsOnline} is "Online":
  738. loop all players:
  739. if loop-player is "%arg 1%":
  740. teleport player to loop-player
  741. send "&a%arg 1% teleportado para %player%."
  742. stop
  743. else:
  744. send "&cEste usuário não está online."
  745. else:
  746. send "&cEsse usuário não existe."
  747. stop
  748. if arg 1 is set:
  749. if arg 2 is set:
  750. if {_IsOnline} is "Online" or "Offline":
  751. if {_IsOnline} is "Online":
  752. loop all players:
  753. if loop-player is "%arg 1%":
  754. teleport loop-player to player
  755. send "&a%player% teleportado para %arg 1%."
  756. loop all players:
  757. if loop-player is arg 1:
  758. set {_Victim} to loop-player
  759. send "&aVocê foi teleportado até %player%." to {_Victim}
  760. stop
  761. else:
  762. send "&cEste usuário não está online."
  763. else:
  764. send "&cEsse usuário não existe."
  765. stop
  766. else:
  767. send "&cVocê precisa do grupo Moderador ou superior para executar este comando."
  768. stop
  769. command /tpall [<text>]:
  770. aliases: /tpall:tpall
  771. trigger:
  772. if sender have permission "tp.all":
  773. teleport all players to player
  774. send "&aTodos os jogadores foram teleportados até você."
  775. else:
  776. send "&cVocê precisa do grupo Master ou superior para executar este comando."
  777. stop
  778. command /tphere [<text>]:
  779. aliases: /tphere:tphere
  780. trigger:
  781. set {_IsOnline} to value "%arg 1%.isOnline" get of "plugins/Factions/data.yml"
  782. if sender have permission "teleport.tp":
  783. if arg 1 isn't set:
  784. send "&cUtilize /tphere <jogador>."
  785. stop
  786. if arg 1 is set:
  787. if arg 1 is player:
  788. send "&cVocê não pode teleportar para si mesmo."
  789. stop
  790. If {_IsOnline} is "Online" or "Offline":
  791. if {_IsOnline} is "Online":
  792. loop all players:
  793. if loop-player is "%arg 1%":
  794. teleport loop-player to player
  795. send "&a%arg 1% teleportado para %player%."
  796. loop all players:
  797. if loop-player is arg 1:
  798. set {_Victim} to loop-player
  799. send "&aVocê foi teleportado até %player%." to {_Victim}
  800. stop
  801. else:
  802. send "&cEste usuário não está online."
  803. else:
  804. send "&cEsse usuário não existe."
  805. stop
  806. else:
  807. send "&cVocê precisa do grupo Moderador ou superior para executar este comando."
  808. stop
  809. command /spawn [<text>]:
  810. aliases: /spawn:spawn
  811. trigger:
  812. if arg 1 is "set":
  813. if player have permission "spawn.set":
  814. set {Spawn} to location of player
  815. send "&aSpawn definido com sucesso!"
  816. else:
  817. if sender have permission "default.group":
  818. send "&eEm 3 segundos você irá para o spawn."
  819. wait 3 seconds
  820. teleport player to {Spawn}
  821. send "&aTeleportado com sucesso."
  822. else:
  823. teleport player to {Spawn}
  824. send "&aTeleportado com sucesso."
  825. if sender have permission "default.group":
  826. send "&eEm 3 segundos você irá para o spawn."
  827. wait 3 seconds
  828. teleport player to {Spawn}
  829. send "&aTeleportado com sucesso."
  830. else:
  831. teleport player to {Spawn}
  832. send "&aTeleportado com sucesso."
  833. command /s [<text>]:
  834. aliases: /s:s, s:staff, staff
  835. trigger:
  836. if sender have permission "staff.chat":
  837. if arg 1 isn't set:
  838. send "&cUtilize /s <mensagem>."
  839. stop
  840. else:
  841. loop all players:
  842. if loop-player have permission "staff.chat":
  843. send "&d&l[&dS&d&l] &r%sender's prefix% %player%: &f%arg 1%" to loop-player
  844. stop
  845. else:
  846. send "&cVocê precisa do grupo Ajudante ou superior para executar este comando."
  847. stop
  848. command /youtuber [<text>] [<text>]:
  849. aliases: /youtuber:youtuber
  850. trigger:
  851. if sender have permission "youtuber.set":
  852. if arg-1 isn't set:
  853. send "&a/youtuber adicionar [jogador] &f- &7Adicionar um jogador ao grupo de youtuber."
  854. send "&a/youtuber remover [jogador] &f- &7Remover um jogador do grupo de youtuber."
  855. send "&a/youtuber listar &f- &7Ver todos os youtubers do servidor."
  856. if arg 1 is "adicionar":
  857. if arg 2 isn't set:
  858. send "&cUtilize /youtuber adicionar [jogador]."
  859. if arg 2 is set:
  860. add arg 2 to {Youtubers::*}
  861. send "&aO jogador %arg 2% foi adicionado no grupo youtuber."
  862. make console execute command "group %arg 2% Youtuber"
  863. if arg 1 is "remover":
  864. if arg 2 isn't set:
  865. send "&cUtilize /youtuber remover [jogador]."
  866. if arg 2 is set:
  867. remove arg 2 from {Youtubers::*}
  868. send "&aO jogador %arg 2% foi removido do grupo youtuber."
  869. make console execute command "group %arg 2% Default"
  870. if arg 1 is "listar":
  871. if {Youtubers::*} isn't set:
  872. send "&cNão há youtubers definidos no servidor."
  873. else:
  874. send ""
  875. loop {Youtubers::*}:
  876. send " &f- &c[YT] %loop-value% &f(Factions Lava)"
  877. send ""
  878. else:
  879. send "&cVocê precisa do grupo Gerente ou superior para executar este comando."
  880. stop
  881. command /staffs [<text>]:
  882. aliases: /staffs:staffs
  883. trigger:
  884. if sender have permission "staff.staff":
  885. loop all players:
  886. if loop-player have permission "staff.staff":
  887. add 1 to {_p}
  888. send ""
  889. send "%{_p}% staffers online no momento:"
  890. loop all players:
  891. if loop-player have permission "master.group":
  892. send " &f- &6[Master] %loop-value% &f(Factions Lava)"
  893. loop all players:
  894. if loop-player have permission "gerente.group":
  895. send " &f- &4[Gerente] %loop-value% &f(Factions Lava)"
  896. loop all players:
  897. if loop-player have permission "admin.group":
  898. send " &f- &c[Admin] %loop-value% &f(Factions Lava)"
  899. loop all players:
  900. if loop-player have permission "moderador.group":
  901. send " &f- &2[Moderador] %loop-value% &f(Factions Lava)"
  902. loop all players:
  903. if loop-player have permission "ajudante.group":
  904. send " &f- &e[Ajudante] %loop-value% &f(Factions Lava)"
  905. send ""
  906. else:
  907. send "&cVocê precisa do grupo Ajudante ou superior para executar este comando."
  908. stop
  909. command /youtubers [<text>]:
  910. aliases: /youtubers:youtubers
  911. trigger:
  912. if sender have permission "youtuber.see":
  913. loop all players:
  914. if loop-player have permission "youtuber.group":
  915. add 1 to {_p}
  916. if {_p} isn't set:
  917. send "&cNão há youtubers onlines no momento."
  918. else:
  919. send ""
  920. send "%{_p}% youtubers online no momento:"
  921. loop all players:
  922. if loop-player have permission "youtuber.group":
  923. send " &f- &c[YT] %loop-value% &f(Factions Lava)"
  924. send ""
  925. else:
  926. send "&cVocê precisa do grupo Youtuber ou superior para executar este comando."
  927. stop
  928. command /v [<text>]:
  929. aliases: vanish:vanish, vanish:v
  930. trigger:
  931. if sender have permission "vanish.vanish":
  932. if {v.%player%} is not set:
  933. loop all players:
  934. if loop-player has permission "mod.permissions":
  935. reveal all players from loop-player
  936. hide player from all players
  937. message "&eInvisibilidade ativada"
  938. set {v.%player%} to true
  939. stop
  940. if {v.%player%} is true:
  941. reveal player from all players
  942. message "&eInvisibilidade desativada"
  943. delete {v.%player%}
  944. stop
  945. else:
  946. send "&cVocê precisa do grupo Moderador ou superior para executar este comando."
  947. stop
  948. on damage:
  949. if {god::%victim%} is true:
  950. cancel event
  951. command /kill [<offlineplayer>]:
  952. aliases: /kill:kill
  953. trigger:
  954. set {_IsOnline} to value "%arg 1%.isOnline" get of "plugins/Factions/data.yml"
  955. if player have permission "kill.kill":
  956. if arg 1 is not set:
  957. message "&cUtilize /kill <jogador>."
  958. stop
  959. if arg 1 is set:
  960. if {_IsOnline} is "Online" or "Offline":
  961. if {_IsOnline} is "Online":
  962. kill arg 1
  963. loop all players:
  964. if loop-player is arg 1:
  965. set {_Killed} to arg 1
  966. message "&aVocê matou o jogador %{_Killed}%!"
  967. stop
  968. else:
  969. send "&cEste usuário não está online."
  970. stop
  971. else:
  972. send "&cEste usuário não existe."
  973. else:
  974. send "&cVocê precisa do grupo Gerente ou superior para executar este comando."
  975. stop
  976. command /invsee [<offlineplayer>]:
  977. aliases: /invsee:invsee
  978. trigger:
  979. set {_IsOnline} to value "%arg 1%.isOnline" get of "plugins/Factions/data.yml"
  980. if player have permission "inv.see":
  981. if arg 1 is set:
  982. if {_IsOnline} is "Online" or "Offline":
  983. If {_IsOnline} is "Online":
  984. open arg 1's inventory for player
  985. stop
  986. else:
  987. send "&cEste usuário não está online."
  988. stop
  989. else:
  990. send "&cEste usuário não existe."
  991. else:
  992. send "&cUtilize /invsee <jogador>."
  993. stop
  994. else:
  995. send "&cVocê precisa do grupo Moderador ou superior para executar este comando."
  996. stop
  997. command /god [<text>]:
  998. aliases: /god:deus, /god:god
  999. trigger:
  1000. if sender have permission "god.god":
  1001. if {god::%player%} is not set:
  1002. set {god::%player%} to true
  1003. message "&aModo deus ativado!"
  1004. stop
  1005. if {god::%player%} is true:
  1006. delete {god::%player%}
  1007. message "&cModo deus desativado!"
  1008. stop
  1009. else:
  1010. send "&cVocê precisa do grupo Moderador ou superior para executar este comando."
  1011. stop
  1012. command /fly [<text>]:
  1013. aliases: /fly:voar, /fly:fly
  1014. trigger:
  1015. if sender have permission "fly.fly":
  1016. if arg 1 isn't "on" or "off":
  1017. send "&cUtilize /fly <on/off>."
  1018. stop
  1019. if arg 1 is "on":
  1020. if player's fly mode is false:
  1021. set player's fly mode to true
  1022. send "&eSeu modo de voo foi alterado para ligado."
  1023. stop
  1024. if player's fly mode is true:
  1025. send "&cO seu modo de voo já está ligado."
  1026. stop
  1027. if arg 1 is "off":
  1028. if player's fly mode is true:
  1029. set player's fly mode to false
  1030. send "&eSeu modo de voo foi alterado para desligado."
  1031. stop
  1032. if player's fly mode is false:
  1033. send "&cO seu modo de voo já está desligado."
  1034. stop
  1035. if arg 1 isn't set:
  1036. if player's fly mode is false:
  1037. set player's fly mode to true
  1038. send "&eSeu modo de voo foi alterado para ligado."
  1039. stop
  1040. if player's fly mode is true:
  1041. set player's fly mode to false
  1042. send "&eSeu modo de voo foi alterado para desligado."
  1043. stop
  1044. else:
  1045. send "&cVocê precisa do grupo Moderador ou superior para executar este comando."
  1046. stop
  1047. command /gm [<text>]:
  1048. aliases: gamemode:gamemode, gm:gm
  1049. trigger:
  1050. if sender have permission "gamemode.gm":
  1051. if arg 1 isn't set:
  1052. send "&cUtilize /gm <gamemode>"
  1053. stop
  1054. 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":
  1055. send "&cVocê inseriu um gamemode inválido."
  1056. stop
  1057. if arg 1 is "0" or "s" or "survival":
  1058. set the player's gamemode to survival
  1059. send "&eSeu gamemode foi alterado para: SURVIVAL."
  1060. if arg 1 is "1" or "c" or "creative":
  1061. set the player's gamemode to creative
  1062. send "&eSeu gamemode foi alterado para: CREATIVE."
  1063. if arg 1 is "2" or "a" or "adventure":
  1064. set the player's gamemode to adventure
  1065. send "&eSeu gamemode foi alterado para: ADVENTURE."
  1066. if arg 1 is "3" or "s" or "spectator":
  1067. set the player's gamemode to spectator
  1068. send "&eSeu gamemode foi alterado para: SPECTATOR."
  1069. else:
  1070. send "&cVocê precisa do grupo Moderador ou superior para executar este comando."
  1071. stop
  1072. on right click on anvil:
  1073. cancel event
  1074. on right click:
  1075. if player's tool is stick:
  1076. if event-block isn't bedrock or obsidian or end stone:
  1077. send "&3Este bloco quebrará na primeira explosão!"
  1078. stop
  1079. command /cores [<text>]:
  1080. trigger:
  1081. send "&a&&aa Verde Claro" to sender
  1082. send "&b&&bb Azul Claro" to sender
  1083. send "&c&&cc Vermelho" to sender
  1084. send "&d&&dd Rosa" to sender
  1085. send "&e&&ee Amarelo" to sender
  1086. send "&f&&ff Branco" to sender
  1087. send "&0&&00 Preto" to sender
  1088. send "&1&&11 Azul Escuro" to sender
  1089. send "&2&&22 Verde Escuro" to sender
  1090. send "&3&&33 Ciano" to sender
  1091. send "&4&&44 Vermelho Escuro" to sender
  1092. send "&5&&55 Roxo" to sender
  1093. send "&6&&66 Dourado" to sender
  1094. send "&7&&77 Cinza" to sender
  1095. send "&8&&88 Cinza Escuro" to sender
  1096. send "&9&&99 Azul" to sender
  1097. send "" to sender
  1098. send " &fCódigo de formatação"
  1099. send "&l&&ll Negrito" to sender
  1100. send "&o&&oo Itálico" to sender
  1101. send "&r&&rr Reset" to sender
  1102. send "&r&&nn &nUnderline" to sender
  1103. stop
  1104. command /bukkit:? [<text>]:
  1105. trigger:
  1106. send "Comando desconhecido."
  1107. command /? [<text>]:
  1108. trigger:
  1109. send "Comando desconhecido."
  1110. command /bukkit:help [<text>]:
  1111. trigger:
  1112. send "Comando desconhecido."
  1113. command /help [<text>]:
  1114. trigger:
  1115. send "Comando desconhecido."
  1116. command /me [<text>]:
  1117. trigger:
  1118. send "Comando desconhecido."
  1119. command /minecraft:me [<text>]:
  1120. trigger:
  1121. send "Comando desconhecido."
  1122. command /minecraft:tell [<text>]:
  1123. trigger:
  1124. send "Comando desconhecido."
  1125. command /guerras [<text>] [<text>] [<text>] [<text>] [<text>] [<text>]:
  1126. aliases: guerras:guerras, guerras:guerra, guerra
  1127. trigger:
  1128. set {_Admin} to value "%player%.Admin" get of "plugins/Factions/data.yml"
  1129. if {_Admin} is "true":
  1130. if arg 1 is set:
  1131. if arg 2 is set:
  1132. if arg 3 is set:
  1133. if arg 4 is set:
  1134. if arg 5 is set:
  1135. send "&eNome: %arg 1% - %arg 2% Duração: %arg 3% Data: %arg 4%/%arg 5%/%arg 6%"
  1136. delete {Guerras::*}
  1137. add arg 1 to {Guerras::*}
  1138. set {FactionNome::%arg 1%} to "%arg 2%"
  1139. set {Date::%arg 1%} to "%arg 4%/%arg 5%/%arg 6%"
  1140. loop {FactionList::*}:
  1141. remove loop-value from {FactionGuerreiro::*}
  1142. loop all players:
  1143. set {_TagV} to value "%loop-player%.FactionTag" get of "plugins/Factions/data.yml"
  1144. if arg 1 is equal to {_TagV}:
  1145. add loop-player to {Jogadores::%arg 1%::*}
  1146. add loop-player to {FactionGuerreiro::*}
  1147.  
  1148. set {_Wins} to value "%loop-player%.Wins" get of "plugins/Factions/data.yml"
  1149.  
  1150. set {_Wins} to {_Wins} parsed as integer
  1151. add 1 to {_Wins}
  1152. set "%loop-player%.Wins" to "%{_Wins}%" in yaml file "plugins/Factions/data.yml"
  1153. else:
  1154. send "&cUtilize /guerras <tag> <nome> <tempo> <dia> <mês> <ano>."
  1155. stop
  1156. else:
  1157. send "&cUtilize /guerras <tag> <nome> <tempo> <dia> <mês> <ano>."
  1158. stop
  1159. else:
  1160. send "&cUtilize /guerras <tag> <nome> <tempo> <dia> <mês> <ano>."
  1161. stop
  1162. else:
  1163. send "&cUtilize /guerras <tag> <nome> <tempo> <dia> <mês> <ano>."
  1164. stop
  1165. else:
  1166. send "&cUtilize /guerras <tag> <nome> <tempo> <dia> <mês> <ano>."
  1167. stop
  1168. else:
  1169. if {Guerras::*} isn't set:
  1170. open chest with 6 rows named "Guerras ocorridas" to player
  1171. format slot 22 of player with cobweb named "&cNão há nenhuma guerra registrada." to be unstealable
  1172. stop
  1173. set {_s} to 10
  1174. set {_g} to 4
  1175. if {_s} is 16:
  1176. set {_s} to 19
  1177. set {_g} to 5
  1178. if {_s} is 25:
  1179. set {_s} to 28
  1180. set {_g} to 6
  1181. if {_s} is 33:
  1182. set {_s} to 36
  1183. set {_g} to 6
  1184. open chest with {_g} rows named "Guerras ocorridas" to player
  1185. loop {Guerras::*}:
  1186. loop {Jogadores::%loop-value-1%::*}:
  1187. set {_FactionRoleV} to value "%loop-value-2%.FactionRole" get of "plugins/Factions/data.yml"
  1188. set {_GroupV} to value "%loop-value-2%.GroupV" get of "plugins/Factions/data.yml"
  1189. if {_FactionRoleV} is "LEADER":
  1190. set {_RoleV} to "##"
  1191. if {_FactionRoleV} is "OFFICER":
  1192. set {_RoleV} to "*"
  1193. if {_FactionRoleV} is "MEMBER":
  1194. set {_RoleV} to "+"
  1195. if {_FactionRoleV} is "RECRUIT":
  1196. set {_RoleV} to "-"
  1197. if loop-value-2 have permission "master.group":
  1198. set {_TagV} to "&6[Master] "
  1199. if loop-value-2 have permission "gerente.group":
  1200. set {_TagV} to "&4[Gerente] "
  1201. if loop-value-2 have permission "admin.group":
  1202. set {_TagV} to "&c[Admin] "
  1203. if loop-value-2 have permission "moderador.group":
  1204. set {_TagV} to "&2[Moderador] "
  1205. if loop-value-2 have permission "ajudante.group":
  1206. set {_TagV} to "&e[Ajudante] "
  1207. if loop-value-2 have permission "imperador.group":
  1208. set {_TagV} to "&b[Imperador] "
  1209. if loop-value-2 have permission "supremo.group":
  1210. set {_TagV} to "&4[Supremo] "
  1211. if loop-value-2 have permission "lendario.group":
  1212. set {_TagV} to "&2[Lendário] "
  1213. if loop-value-2 have permission "heroi.group":
  1214. set {_TagV} to "&5[Herói] "
  1215. if loop-value-2 have permission "campeao.group":
  1216. set {_TagV} to "&3[Campeão] "
  1217. if loop-value-2 have permission "default.group":
  1218. set {_TagV} to "&7"
  1219. 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
  1220. add 1 to {_s}
  1221. on rightclick:
  1222. 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.":
  1223. if event-block is set:
  1224. cancel event
  1225. spawn a powered creeper above the event-block
  1226. 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
  1227. stop
  1228. on rightclick:
  1229. wait 1 tick
  1230. if player's tool is a firework star named "&eReset de KDR" with lore "&7Ao usar este item, você terá seu KDR zerado.":
  1231. open chest with 3 rows named "Confirmação" to player
  1232. 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%"]
  1233. format slot 15 of player with red wool named "&cNegar" to close
  1234. on rightclick:
  1235. 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":
  1236. set {_FactionMaxPower} to value "%player%.FactionMaxPower" get of "plugins/Factions/data.yml"
  1237. set {_FactionMaxPower} to {_FactionMaxPower} parsed as integer
  1238. if {_FactionMaxPower} = 20:
  1239. send "&cVocê atingiu o limite de poder."
  1240. else:
  1241. add 1 to {_FactionMaxPower}
  1242. Spawn a firework at player
  1243. set "%player%.FactionMaxPower" to "%{_FactionMaxPower}%" in yaml file "plugins/Factions/data.yml"
  1244. 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
  1245. send "&aSeu limite de poder foi aumentado para %{_FactionMaxPower}%!!"
  1246. command /api [<text>] [<player>]:
  1247. aliases: api:api
  1248. trigger:
  1249. if sender have permission "api.command":
  1250. if arg 1 isn't set:
  1251. send "API para RideFactions"
  1252. send "Versão: 1.9"
  1253. if arg 1 is "CREEPER":
  1254. if arg 2 is set:
  1255. 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
  1256. if arg 1 is "resetkdrconfirm":
  1257. if arg 2 is set:
  1258. remove 1 firework star named "&eReset de KDR" with lore "&7Ao usar este item, você terá seu KDR zerado." from arg 2
  1259. set "%arg 2%.Mortes" to "0" in yml file "plugins/Factions/data.yml"
  1260. set "%arg 2%.Abates" to "0" in yml file "plugins/Factions/data.yml"
  1261. send "&aSeu KDR foi zerado!" to arg 2
  1262. if arg 1 is "RESET_KDR":
  1263. if arg 2 is set:
  1264. give 1 firework star named "&eReset de KDR" with lore "&7Ao usar este item, você terá seu KDR zerado." to arg 2
  1265. if arg 1 is "PODER":
  1266. if arg 2 is set:
  1267. 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
  1268. if arg 1 is "ANTI_GRAVIDADE":
  1269. give 1 enchanted book named "&eLivro Encantado" with lore "&7Antigravidade|| ||&7Encanta: Bota" to player
  1270. if arg 1 is "AUTO_DESTRUICAO":
  1271. give 1 enchanted book named "&eLivro Encantado" with lore "&7Autodestruição|| ||&7Encanta: Peitoral" to player
  1272. if arg 1 is "CORRIDA":
  1273. give 1 enchanted book named "&eLivro Encantado" with lore "&7Corrida|| ||&7Encanta: Bota" to player
  1274. if arg 1 is "MULTIPLICADOR_DE_TIROS":
  1275. give 1 enchanted book named "&eLivro Encantado" with lore "&7Multiplicador de tiros|| ||&7Encanta: Arco" to player
  1276. if arg 1 is "SUPER_AREA":
  1277. give 1 enchanted book named "&eLivro Encantado" with lore "&7Super área|| ||&7Encanta: Picareta" to player
  1278. if arg 1 is "PROPULSAO":
  1279. give 1 enchanted book named "&eLivro Encantado" with lore "&7Propulsão|| ||&7Encanta: Bota" to player
  1280. else:
  1281. send "&cVocê precisa do grupo Gerente ou superior para executar este comando."
  1282. stop
  1283. on mcmmo skill level up:
  1284. set {_Level} to value "%player%.Level" get of "plugins/Factions/data.yml"
  1285.  
  1286. set {_Level} to {_Level} parsed as integer
  1287. add 1 to {_Level}
  1288. set "%player%.Level" to "%{_Level}%" in yaml file "plugins/Factions/data.yml"
  1289. on mine:
  1290. if lore of player's tool contains "&7Super área":
  1291. loop blocks in radius 1 of event-block:
  1292. if loop-block is stone or cobblestone or obsidian or any ore:
  1293. if loop-block is bedrock:
  1294. remove bedrock from loop-block
  1295. drop loop-block
  1296. set loop-block to air
  1297. on damage:
  1298. if damage cause is VOID:
  1299. teleport victim to {Spawn}
  1300. on projectile hit:
  1301. if lore of shooter's boots contains "&7Corrida":
  1302. if shooter's tool is a ender pearl:
  1303. apply swiftness 2 to the shooter for 15 seconds
  1304. on death:
  1305. if lore of player's chestplate contains "&7Autodestruição":
  1306. clear drops
  1307. on damage:
  1308. damage cause is fall:
  1309. if lore of victim's boots contains "&7Antigravidade":
  1310. cancel the event
  1311. on inventory click:
  1312. if cursor item is enchanted book named "&eLivro Encantado" with lore "&7Antigravidade|| ||&7Encanta: Bota":
  1313. if clicked item is boots:
  1314. if lore of clicked item is "":
  1315. set lore of clicked item to "&7Antigravidade"
  1316. else:
  1317. set lore of clicked item to "%lore of clicked item%||&7Antigravidade"
  1318. set clicked item to glowing clicked item
  1319. set cursor item to air
  1320. message "&aEncantamento aplicado com sucesso."
  1321. cancel event
  1322. if cursor item is enchanted book named "&eLivro Encantado" with lore "&7Autodestruição|| ||&7Encanta: Peitoral":
  1323. if clicked item is chestplate:
  1324. if lore of clicked item is "":
  1325. set lore of clicked item to "&7Autodestruição"
  1326. else:
  1327. set lore of clicked item to "%lore of clicked item%||&7Autodestruição"
  1328. set clicked item to glowing clicked item
  1329. set cursor item to air
  1330. message "&aEncantamento aplicado com sucesso."
  1331. cancel event
  1332. if cursor item is enchanted book named "&eLivro Encantado" with lore "&7Corrida|| ||&7Encanta: Bota":
  1333. if clicked item is boots:
  1334. if lore of clicked item is "":
  1335. set lore of clicked item to "&7Corrida"
  1336. else:
  1337. set lore of clicked item to "%lore of clicked item%||&7Corrida"
  1338. set clicked item to glowing clicked item
  1339. set cursor item to air
  1340. message "&aEncantamento aplicado com sucesso."
  1341. cancel event
  1342. if cursor item is enchanted book named "&eLivro Encantado" with lore "&7Multiplicador de tiros|| ||&7Encanta: Arco":
  1343. if clicked item is bow:
  1344. if lore of clicked item is "":
  1345. set lore of clicked item to "&7Multiplicador de tiros"
  1346. else:
  1347. set lore of clicked item to "%lore of clicked item%||&7Multiplicador de tiros"
  1348. set clicked item to glowing clicked item
  1349. set cursor item to air
  1350. message "&aEncantamento aplicado com sucesso."
  1351. cancel event
  1352. if cursor item is enchanted book named "&eLivro Encantado" with lore "&7Super área|| ||&7Encanta: Picareta":
  1353. if clicked item is pickaxe:
  1354. if lore of clicked item is "":
  1355. set lore of clicked item to "&7Super área"
  1356. else:
  1357. set lore of clicked item to "%lore of clicked item%||&7Super área"
  1358. set clicked item to glowing clicked item
  1359. set cursor item to air
  1360. message "&aEncantamento aplicado com sucesso."
  1361. cancel event
  1362. if cursor item is enchanted book named "&eLivro Encantado" with lore "&7Propulsão|| ||&7Encanta: Bota":
  1363. if clicked item is boots:
  1364. if lore of clicked item is "":
  1365. set lore of clicked item to "&7Propulsão"
  1366. else:
  1367. set lore of clicked item to "%lore of clicked item%||&7Propulsão"
  1368. set clicked item to glowing clicked item
  1369. set cursor item to air
  1370. message "&aEncantamento aplicado com sucesso."
  1371. cancel event
Add Comment
Please, Sign In to add comment