Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on join:
- send player title "&6&lRide Factions" with subtitle "&f&lUtilize /login <senha>" for 1000 seconds
- on authme login:
- send player title "&a&lAutenticado!" with subtitle "&fSeja bem-vindo!" for 3 seconds
- on command "/kits":
- make player execute command "/kit"
- on server list ping:
- set motd to "&6&lRide Factions &7(1.8.*)%nl%&eServidor está &e&lonline &enovamente!"
- on command "/bau 1":
- cancel event
- stop
- command /ping [<text>]:
- trigger:
- send "&ePing: %ping of player%"
- command /yt:
- trigger:
- send ""
- send "&eRequisitos para o grupo Youtuber:"
- send " &fTem que ter 150 inscritos ou mais;"
- send " &fUm vídeo gravado em nosso servidor;"
- send ""
- send "&ePrevilégios gerais do grupo Youtuber:"
- send " &fTag &c[YouTuber] &fdentro do servidor;"
- send " &fAcessar o comando /youtubers;"
- send " &fPoder solicitar qualquer VIP;"
- send " &fReceber uma quantia em Cash periodicamente;"
- send ""
- on command "/skin atualizar":
- send "&aBaixando skin utilizada em sua conta da Mojang..." to player
- make player execute command "/skin %player%"
- cancel event
- stop
- command /echest [<offlineplayer>]:
- trigger:
- 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":
- if arg 1 isn't set:
- open the player's ender chest to the player
- else:
- if player have permission "admin.group" or "gerente.group" or "master.group":
- open the arg 1's ender chest to the player
- else:
- open the player's ender chest to the player
- else:
- send "&cVocê precisa do grupo Campeão ou superior para executar este comando."
- command /status [<text>]:
- trigger:
- if player have permission "master.group":
- set {_freememory} to free memory
- set {_maxmemory} to max memory
- set {_tps} to tps
- send ""
- send "&fInformações sobre o servidor:"
- send " &eMultiCraft Account:"
- send " &fLogin: &7davixc555@hotmail.com"
- send " &fPassword: &7y5oC9q18bW"
- send " &eFTP Account:"
- send " &fLogin: &7davixc555@hotmail.com.953"
- send " &fPassword: &7y5oC9q18bW"
- send " &fHost: &7144.217.49.253"
- send " &fPort: &721"
- send ""
- else:
- send "&cVocê precisa do grupo Master ou superior para executar este comando."
- command /group [<offlineplayer>] [<text>]:
- aliases: group:group
- trigger:
- if sender have permission "group.set":
- if arg 1 isn't set:
- send "&cUtilize /group <jogador> para selecionar um tipo de grupo."
- if arg 1 is set:
- if arg 2 isn't set:
- send "&cUtilize /group <jogador> para selecionar um tipo de grupo."
- else:
- 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":
- send "&cVocê inseriu um nome de um grupo inválido."
- stop
- if arg 2 is "Master":
- if player have permission "gerente.group":
- send "&cVocê não tem permissão para executar este comando."
- stop
- if arg 2 is "Master" or "Gerente" or "Admin" or "Moderador" or "Ajudante" or "Youtuber" or "Default":
- if arg 2 is "Master":
- send "&eGrupo de '%arg 1%' definido para 'MASTER'."
- if arg 2 is "Gerente":
- send "&eGrupo de '%arg 1%' definido para 'MANAGER'."
- if arg 2 is "Admin":
- send "&eGrupo de '%arg 1%' definido para 'ADMINISTRATOR'."
- if arg 2 is "Moderador":
- send "&eGrupo de '%arg 1%' definido para 'MODERATOR'."
- if arg 2 is "Ajudante":
- send "&eGrupo de '%arg 1%' definido para 'HELPER'."
- if arg 2 is "Youtuber":
- send "&eGrupo de '%arg 1%' definido para 'YOUTUBER'."
- if arg 2 is "Default":
- send "&eGrupo de '%arg 1%' definido para 'DEFAULT'."
- set "%arg 1%.Group" to "%arg 2%" in yml file "plugins/Factions/data.yml"
- execute console command "/pex user %arg 1% group set %arg 2%"
- execute console command "/pex user %arg 1% group set %arg 2% WORLD"
- execute console command "/pex user %arg 1% group set %arg 2% MINE-1"
- execute console command "/pex user %arg 1% group set %arg 2% VIP-1"
- execute console command "/pex user %arg 1% group set %arg 2% ARENA-1"
- if arg 2 is "Imperador" or "Supremo" or "Lendario" or "Heroi" or "Campeao":
- if arg 2 is "Imperador":
- set {_Color} to "&b"
- set {_Vip} to "&b[Imperador]"
- send "&eGrupo de '%arg 1%' definido para 'EMPEROR'."
- if arg 2 is "Supremo":
- set {_Color} to "&4"
- set {_Vip} to "&4[Supremo]"
- send "&eGrupo de '%arg 1%' definido para 'SUPREME'."
- if arg 2 is "Lendario":
- set {_Color} to "&2"
- set {_Vip} to "&2[Lendário]"
- send "&eGrupo de '%arg 1%' definido para 'LEGENDARY'."
- if arg 2 is "Heroi":
- set {_Color} to "&5"
- set {_Vip} to "&5[Herói]"
- send "&eGrupo de '%arg 1%' definido para 'HERO'."
- if arg 2 is "Campeao":
- set {_Color} to "&3"
- set {_Vip} to "&3[Campeão]"
- send "&eGrupo de '%arg 1%' definido para 'CHAMPION'."
- set "%arg 1%.Group" to "%arg 2%" in yml file "plugins/Factions/data.yml"
- execute console command "/pex user %arg 1% group set %arg 2%"
- execute console command "/pex user %arg 1% group set %arg 2% WORLD"
- execute console command "/pex user %arg 1% group set %arg 2% MINE-1"
- execute console command "/pex user %arg 1% group set %arg 2% VIP-1"
- execute console command "/pex user %arg 1% group set %arg 2% ARENA-1"
- send all players title "%{_Color}%%arg 1%" with subtitle "&ftornou-se %{_Vip}%" for 3 seconds
- stop
- else:
- send "&cVocê precisa do grupo Gerente ou superior para executar este comando."
- stop
- on teleport:
- if world of player is "vip-1":
- set player's fly mode to true
- else:
- if player have permission "moderador.group" or "admin.group" or "gerente.group" or "master.group":
- stop
- else:
- set player's fly mode to false
- on teleport:
- set {_WarStatus} to value "Guerra.Status" get of "plugins/Factions/warsystem.yml"
- if {_WarStatus} is "true":
- if world of player is "arena-1":
- send "&cEste comando esta bloqueado neste periodo de Guerra."
- cancel event
- command /skyshop [<text>]:
- trigger:
- set {_cash} to value "%player%.Cash" get of "plugins/SkyCash/data.yml"
- set {_cash} to {_cash} parsed as integer
- if arg 1 is "Purificador":
- if {_cash} >= 250:
- remove 250 from {_cash}
- set "%player%.Cash" to "%{_cash}%" in yaml file "plugins/SkyCash/data.yml"
- make console execute command "darpurificador %player%"
- if arg 1 is "Poder":
- if {_cash} >= 100:
- remove 100 from {_cash}
- set "%player%.Cash" to "%{_cash}%" in yaml file "plugins/SkyCash/data.yml"
- make console execute command "api PODER_INSTANTANEO %player%"
- if arg 1 is "Caixa1":
- if {_cash} >= 5:
- remove 50 from {_cash}
- set "%player%.Cash" to "%{_cash}%" in yaml file "plugins/SkyCash/data.yml"
- make console execute command "givecaixa %player% basica 1"
- if arg 1 is "Caixa2":
- if {_cash} >= 200:
- remove 200 from {_cash}
- set "%player%.Cash" to "%{_cash}%" in yaml file "plugins/SkyCash/data.yml"
- make console execute command "givecaixa %player% avancada 1"
- if arg 1 is "Caixa3":
- if {_cash} >= 500:
- remove 500 from {_cash}
- set "%player%.Cash" to "%{_cash}%" in yaml file "plugins/SkyCash/data.yml"
- make console execute command "givecaixa %player% beacon 1"
- if arg 1 is "Lancador":
- if {_cash} >= 500:
- remove 500 from {_cash}
- set "%player%.Cash" to "%{_cash}%" in yaml file "plugins/SkyCash/data.yml"
- make console execute command "api LANCADOR %player%"
- if arg 1 is "ResetKDR":
- if {_cash} >= 500:
- remove 500 from {_cash}
- set "%player%.Cash" to "%{_cash}%" in yaml file "plugins/SkyCash/data.yml"
- make console execute command "api RESET_KDR %player%"
- command /vip [<text>]:
- aliases: vip:vip
- trigger:
- if arg 1 isn't set:
- if sender have permission "vip.teleport":
- if {Vip} is set:
- send ""
- send "&aSeja bem-vindo ao Mundo VIP."
- send ""
- play "LEVEL_UP" to player at volume 0.2
- teleport player to {Vip}
- else:
- send "&eOps, estamos preparando algo bem especial. A área VIP estará disponível em breve!"
- stop
- else:
- send "&cVocê precisa do grupo Campeão ou superior para executar este comando."
- stop
- if arg 1 is set:
- if sender have permission "master.group" or "gerente.group":
- set {Vip} to player's location
- send "&aDefinido o local da VIP."
- stop
- else:
- if sender have permission "vip.ir":
- if {Vip} isn't set:
- send ""
- send "&aSeja bem-vindo ao Mundo VIP."
- send ""
- play "LEVEL_UP" to player at volume 0.2
- teleport player to {Vip}
- else:
- send "&eOps, estamos preparando algo bem especial. A área VIP estará disponível em breve!"
- stop
- else:
- send "&cVocê precisa do grupo Campeão ou superior para executar este comando."
- stop
- command /tell [<offlineplayer>] [<text>]:
- trigger:
- set {_TellToggle} to value "%arg 1%.TellToggle" get of "plugins/Factions/data.yml"
- set {_TellToggleP} to value "%player%.TellToggle" get of "plugins/Factions/data.yml"
- if arg 1 is "toggle":
- if {_TellToggleP} isn't set:
- send "&cOcorreu um erro ao executar este comando, se o erro persistir contate um administrador."
- stop
- if {_TellToggleP} is "false":
- set "%player%.TellToggle" to "true" in yml file "plugins/Factions/data.yml"
- send "&aTell desativado."
- stop
- if {_TellToggleP} is "true":
- set "%player%.TellToggle" to "false" in yml file "plugins/Factions/data.yml"
- send "&aTell ativado."
- stop
- if arg 1 isn't set:
- send "&cUtilice /tell <jogador> <mensagem>."
- if arg 2 isn't set:
- send "&cUtilice /tell <jogador> <mensagem>."
- else:
- if arg 1 is player:
- send "&cConversar consigo mesmo costuma ser sinal de loucura, procure um especialista para tratar do caso."
- stop
- if {_TellToggle} is "true":
- send "&cEste jogador está com o recebimento de mensagens privadas desligado."
- stop
- set {_FactionTagA} to value "%arg 1%.FactionTag" get of "plugins/Factions/data.yml"
- set {_FactionRoleA} to value "%arg 1%.FactionRole" get of "plugins/Factions/data.yml"
- if {_FactionRoleA} is "LEADER":
- set {_RoleA} to "##"
- if {_FactionRoleA} is "OFFICER":
- set {_RoleA} to "*"
- if {_FactionRoleA} is "MEMBER":
- set {_RoleA} to "+"
- if {_FactionRoleA} is "RECRUIT":
- set {_RoleA} to "-"
- set {_FactionTag} to value "%player%.FactionTag" get of "plugins/Factions/data.yml"
- set {_FactionRole} to value "%player%.FactionRole" get of "plugins/Factions/data.yml"
- if {_FactionRole} is "LEADER":
- set {_Role} to "##"
- if {_FactionRole} is "OFFICER":
- set {_Role} to "*"
- if {_FactionRole} is "MEMBER":
- set {_Role} to "+"
- if {_FactionRole} is "RECRUIT":
- set {_Role} to "-"
- set {_IsOnline} to value "%arg 1%.isOnline" get of "plugins/Factions/data.yml"
- set {_Group} to value "%player%.Group" get of "plugins/Factions/data.yml"
- set {_GroupA} to value "%arg 1%.Group" get of "plugins/Factions/data.yml"
- if {_IsOnline} is "Online" or "Offline":
- if {_IsOnline} is "Online":
- if {_GroupA} is "Master":
- set {_TagA} to "&6[Master] "
- if {_GroupA} is "Gerente":
- set {_TagA} to "&4[Gerente] "
- if {_GroupA} is "Admin":
- set {_TagA} to "&c[Admin] "
- if {_GroupA} is "Moderador":
- set {_TagA} to "&2[Moderador] "
- if {_GroupA} is "Ajudante":
- set {_TagA} to "&e[Ajudante] "
- if {_GroupA} is "Youtuber":
- set {_TagA} to "&c[YouTuber] "
- if {_GroupA} is "Imperador":
- set {_TagA} to "&b[Imperador] "
- if {_GroupA} is "Supremo":
- set {_TagA} to "&4[Supremo] "
- if {_GroupA} is "Lendario":
- set {_TagA} to "&2[Lendário] "
- if {_GroupA} is "Heroi":
- set {_TagA} to "&5[Herói] "
- if {_GroupA} is "Campeao":
- set {_TagA} to "&3[Campeão] "
- if {_GroupA} is "Default":
- set {_TagA} to "&7"
- if {_Group} is "Default":
- set {_Tag} to "&7"
- if {_Group} is "Master":
- set {_Tag} to "&6[Master] "
- if {_Group} is "Gerente":
- set {_Tag} to "&4[Gerente] "
- if {_Group} is "Admin":
- set {_Tag} to "&c[Admin] "
- if {_Group} is "Moderador":
- set {_Tag} to "&2[Moderador] "
- if {_Group} is "Ajudante":
- set {_Tag} to "&e[Ajudante] "
- if {_Group} is "Youtuber":
- set {_Tag} to "&c[YouTuber] "
- if {_Group} is "Imperador":
- set {_Tag} to "&b[Imperador] "
- if {_Group} is "Supremo":
- set {_Tag} to "&4[Supremo] "
- if {_Group} is "Lendario":
- set {_Tag} to "&2[Lendário] "
- if {_Group} is "Heroi":
- set {_Tag} to "&5[Herói] "
- if {_Group} is "Campeao":
- set {_Tag} to "&3[Campeão] "
- set "Messages.LastPlayer" to "%arg 1%" in yml file "plugins/SkyAPI/%player%.yml"
- set "Messages.LastPlayer" to "%player%" in yml file "plugins/SkyAPI/%arg 1%.yml"
- if {_RoleA} isn't set:
- send "&8Mensagem para %{_TagA}%%arg 1%&8: &6%arg 2%"
- else:
- send "&8Mensagem para %{_TagA}%%arg 1%&8: &6%arg 2%"
- if {_Role} isn't set:
- send "&8Mensagem de %{_Tag}%%player%&8: &6%arg 2%" to arg 1
- else:
- send "&8Mensagem de %{_Tag}%%player%&8: &6%arg 2%" to arg 1
- stop
- else:
- send "&cEste usuário não está online."
- stop
- else:
- send "&cEste usuário não existe."
- stop
- command /r [<text>]:
- trigger:
- set {_LastPlayer} to value "Messages.LastPlayer" get of "plugins/SkyAPI/%player%.yml"
- set {_TellToggle} to value "%{_LastPlayer}%.TellToggle" get of "plugins/Factions/data.yml"
- if {_LastPlayer} is set:
- if {_TellToggle} is "true":
- send "&cEste jogador está com o recebimento de mensagens privadas desligado."
- stop
- set {_FactionTagA} to value "%{_LastPlayer}%.FactionTag" get of "plugins/Factions/data.yml"
- set {_FactionRoleA} to value "%{_LastPlayer}%.FactionRole" get of "plugins/Factions/data.yml"
- if {_FactionRoleA} is "LEADER":
- set {_RoleA} to "##"
- if {_FactionRoleA} is "OFFICER":
- set {_RoleA} to "*"
- if {_FactionRoleA} is "MEMBER":
- set {_RoleA} to "+"
- if {_FactionRoleA} is "RECRUIT":
- set {_RoleA} to "-"
- set {_FactionTag} to value "%player%.FactionTag" get of "plugins/Factions/data.yml"
- set {_FactionRole} to value "%player%.FactionRole" get of "plugins/Factions/data.yml"
- if {_FactionRole} is "LEADER":
- set {_Role} to "##"
- if {_FactionRole} is "OFFICER":
- set {_Role} to "*"
- if {_FactionRole} is "MEMBER":
- set {_Role} to "+"
- if {_FactionRole} is "RECRUIT":
- set {_Role} to "-"
- set {_IsOnline} to value "%{_LastPlayer}%.isOnline" get of "plugins/Factions/data.yml"
- set {_Group} to value "%player%.Group" get of "plugins/Factions/data.yml"
- if {_IsOnline} is "Online":
- if arg 1 is set:
- loop all players:
- if loop-player is {_LastPlayer}:
- set {_Player} to loop-player
- set {_GroupA} to value "%{_Player}%.Group" get of "plugins/Factions/data.yml"
- if {_GroupA} is "Master":
- set {_TagA} to "&6[Master] "
- if {_GroupA} is "Gerente":
- set {_TagA} to "&4[Gerente] "
- if {_GroupA} is "Admin":
- set {_TagA} to "&c[Admin] "
- if {_GroupA} is "Moderador":
- set {_TagA} to "&2[Moderador] "
- if {_GroupA} is "Ajudante":
- set {_TagA} to "&e[Ajudante] "
- if {_GroupA} is "Youtuber":
- set {_TagA} to "&c[YouTuber] "
- if {_GroupA} is "Imperador":
- set {_TagA} to "&b[Imperador] "
- if {_GroupA} is "Supremo":
- set {_TagA} to "&4[Supremo] "
- if {_GroupA} is "Lendario":
- set {_TagA} to "&2[Lendário] "
- if {_GroupA} is "Heroi":
- set {_TagA} to "&5[Herói] "
- if {_GroupA} is "Campeao":
- set {_TagA} to "&3[Campeão] "
- if {_GroupA} is "Default":
- set {_TagA} to "&7"
- if {_Group} is "Default":
- set {_Tag} to "&7"
- if {_Group} is "Master":
- set {_Tag} to "&6[Master] "
- if {_Group} is "Gerente":
- set {_Tag} to "&4[Gerente] "
- if {_Group} is "Admin":
- set {_Tag} to "&c[Admin] "
- if {_Group} is "Moderador":
- set {_Tag} to "&2[Moderador] "
- if {_Group} is "Ajudante":
- set {_Tag} to "&e[Ajudante] "
- if {_Group} is "Youtuber":
- set {_Tag} to "&c[YouTuber] "
- if {_Group} is "Imperador":
- set {_Tag} to "&b[Imperador] "
- if {_Group} is "Supremo":
- set {_Tag} to "&4[Supremo] "
- if {_Group} is "Lendario":
- set {_Tag} to "&2[Lendário] "
- if {_Group} is "Heroi":
- set {_Tag} to "&5[Herói] "
- if {_Group} is "Campeao":
- set {_Tag} to "&3[Campeão] "
- if {_FactionTagA} is "null":
- send "&8Mensagem para %{_TagA}%%{_Player}%&8: &6%arg 1%"
- else:
- send "&8Mensagem para %{_TagA}%%{_Player}%&8: &6%arg 1%"
- if {_FactionTag} is "null":
- send "&8Mensagem de %{_Tag}%%player%&8: &6%arg 1%" to {_Player}
- else:
- send "&8Mensagem de %{_Tag}%%player%&8: &6%arg 1%" to {_Player}
- else:
- send "&cUtilize /r <mensagem>."
- stop
- else:
- send "&cVocê não tem ninguém para responder."
- else:
- send "&cVocê não tem ninguém para responder."
- command /autoreiniciar [<text>]:
- aliases: autoreiniciar:reiniciar
- trigger:
- if sender have permission "restart.server":
- broadcast ""
- broadcast "&e&l[&eREINÍCIO&e&l] &eReiniciando servidor em instantes, voltamos já."
- broadcast "&e&l[&eREINÍCIO&e&l] &eAlgumas funções podem ter sido desativadas neste período."
- broadcast ""
- wait 10 seconds
- broadcast ""
- broadcast "&cVocê foi desconectado do servidor onde você estava. Motivo: &fServer is restarting"
- broadcast ""
- kick all players due to "Server is restarting"
- make console execute command "/save-all"
- make console execute command "/reload"
- else:
- send "&cVocê precisa do grupo Gerente ou superior para executar este comando."
- stop
- command /reiniciar [<text>]:
- aliases: /reiniciar:reiniciar
- trigger:
- if sender have permission "restart.server":
- broadcast ""
- broadcast "&e&l[&eREINÍCIO&e&l] &eReiniciando servidor em 3 minutos."
- broadcast ""
- wait 1 minute
- broadcast ""
- broadcast "&e&l[&eREINÍCIO&e&l] &eReiniciando servidor em 2 minutos."
- broadcast ""
- wait 1 minute
- broadcast ""
- broadcast "&e&l[&eREINÍCIO&e&l] &eReiniciando servidor em 1 minuto."
- broadcast ""
- wait 1 minute
- broadcast ""
- broadcast "&e&l[&eREINÍCIO&e&l] &eReiniciando servidor em instantes, voltamos já."
- broadcast "&e&l[&eREINÍCIO&e&l] &eAlgumas funções podem ter sido desativadas neste período."
- broadcast ""
- wait 10 seconds
- broadcast ""
- broadcast "&cVocê foi desconectado do servidor onde você estava. Motivo: &fServer is restarting"
- broadcast ""
- kick all players due to "Server is restarting"
- make console execute command "/save-all"
- make console execute command "/reload"
- else:
- send "&cVocê precisa do grupo Gerente ou superior para executar este comando."
- stop
- on join:
- set join message to ""
- on join:
- 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
- on quit:
- set quit message to ""
- on death:
- set death message to ""
- on chat:
- set {_Abates} to value "%player%.Abates" get of "plugins/Factions/data.yml"
- set {_Mortes} to value "%player%.Mortes" get of "plugins/Factions/data.yml"
- if "%{FactionGuerreiro::*}%" contains "%player%":
- set {_Guerreiro} to " &c[Guerreiro]"
- else:
- set {_Guerreiro} to ""
- if sender have permission "master.group":
- set {_Tag} to "&6[Master] "
- if sender have permission "gerente.group":
- set {_Tag} to "&4[Gerente] "
- if sender have permission "admin.group":
- set {_Tag} to "&c[Admin] "
- if sender have permission "moderador.group":
- set {_Tag} to "&2[Moderador] "
- if sender have permission "ajudante.group":
- set {_Tag} to "&e[Ajudante] "
- if sender have permission "youtuber.group":
- set {_Tag} to "&c[YouTuber] "
- if sender have permission "imperador.group":
- set {_Tag} to "&b[Imperador] "
- if sender have permission "supremo.group":
- set {_Tag} to "&4[Supremo] "
- if sender have permission "lendario.group":
- set {_Tag} to "&2[Lendário] "
- if sender have permission "heroi.group":
- set {_Tag} to "&5[Herói] "
- if sender have permission "campeao.group":
- set {_Tag} to "&3[Campeão] "
- if sender have permission "default.group":
- set {_Tag} to ""
- set {_FactionPower} to value "%player%.FactionPower" get of "plugins/Factions/data.yml"
- set {_Faction} to value "%player%.Faction" get of "plugins/Factions/data.yml"
- set {_FactionRole} to value "%player%.FactionRole" get of "plugins/Factions/data.yml"
- if {_FactionRole} is "LEADER":
- set {_FactionRoleY} to "##"
- if {_FactionRole} is "OFFICER":
- set {_FactionRoleY} to "*"
- if {_FactionRole} is "MEMBER":
- set {_FactionRoleY} to "+"
- if {_FactionRole} is "RECRUIT":
- set {_FactionRoleY} to "-"
- set {_FactionTag} to value "%player%.FactionTag" get of "plugins/Factions/data.yml"
- set {_FactionMaxPower} to value "%player%.FactionMaxPower" get of "plugins/Factions/data.yml"
- loop all players in radius 16 of player:
- add 1 to {_n}
- set {_players::%{_n}%} to loop-player
- if {_n} is greater than 0:
- if {_FactionTag} is "null":
- 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}%}
- 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
- else:
- 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}%}
- 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
- else:
- if {_FactionTag} is "null":
- 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
- send "&eNão há ninguém perto para te escutar :(" to player
- else:
- 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
- send "&eNão há ninguém perto para te escutar :(" to player
- cancel event
- command /g [<text>]:
- aliases: g:g
- trigger:
- set {_Abates} to value "%player%.Abates" get of "plugins/Factions/data.yml"
- set {_Mortes} to value "%player%.Mortes" get of "plugins/Factions/data.yml"
- if "%{FactionGuerreiro::*}%" contains "%player%":
- set {_Guerreiro} to " &c[Guerreiro]"
- else:
- set {_Guerreiro} to ""
- set {_FactionPower} to value "%player%.FactionPower" get of "plugins/Factions/data.yml"
- set {_Faction} to value "%player%.Faction" get of "plugins/Factions/data.yml"
- set {_FactionRole} to value "%player%.FactionRole" get of "plugins/Factions/data.yml"
- if {_FactionRole} is "LEADER":
- set {_FactionRoleY} to "##"
- if {_FactionRole} is "OFFICER":
- set {_FactionRoleY} to "*"
- if {_FactionRole} is "MEMBER":
- set {_FactionRoleY} to "+"
- if {_FactionRole} is "RECRUIT":
- set {_FactionRoleY} to "-"
- set {_FactionTag} to value "%player%.FactionTag" get of "plugins/Factions/data.yml"
- set {_FactionMaxPower} to value "%player%.FactionMaxPower" get of "plugins/Factions/data.yml"
- if arg 1 isn't set:
- send "&cUtilize /g <mensagem>."
- stop
- if arg 1 is set:
- if arg 1 contains " lag " or " lag" or "lag ":
- play "VILLAGER_NO" to player at volume 0.2
- send "&cNão utilize palavras que possam incentivar o flood no chat."
- stop
- if {ChatGlobal} is "off":
- if player don't have permission "master.group" or "gerente.group" or "admin.group":
- send "&cO chat está desabilitado no momento."
- stop
- if sender have permission "master.group":
- set {_Tag} to "&6[Master] "
- if sender have permission "gerente.group":
- set {_Tag} to "&4[Gerente] "
- if sender have permission "admin.group":
- set {_Tag} to "&c[Admin] "
- if sender have permission "moderador.group":
- set {_Tag} to "&2[Moderador] "
- if sender have permission "ajudante.group":
- set {_Tag} to "&e[Ajudante] "
- if sender have permission "youtuber.group":
- set {_Tag} to "&c[YouTuber] "
- if sender have permission "imperador.group":
- set {_Tag} to "&b[Imperador] "
- if sender have permission "supremo.group":
- set {_Tag} to "&4[Supremo] "
- if sender have permission "lendario.group":
- set {_Tag} to "&2[Lendário] "
- if sender have permission "heroi.group":
- set {_Tag} to "&5[Herói] "
- if sender have permission "campeao.group":
- set {_Tag} to "&3[Campeão] "
- if sender have permission "default.group":
- set {_Tag} to ""
- if {_Faction} is "null":
- if sender have permission "gerente.group" or "master.group":
- broadcast ""
- if sender have permission "global.color":
- 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
- else:
- 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
- if sender have permission "gerente.group" or "master.group":
- broadcast ""
- else:
- if sender have permission "gerente.group" or "master.group":
- broadcast ""
- if sender have permission "global.color":
- 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
- else:
- 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
- if sender have permission "gerente.group" or "master.group":
- broadcast ""
- command /clear [<offlineplayer>] [<text>]:
- aliases: /clear:clear
- trigger:
- if player have permission "clear.inventory":
- set {_NickName} to value "%arg 1%.NickName" get of "plugins/Factions/data.yml"
- if arg 1 isn't set:
- send "&aO inventário de %player% foi limpo."
- clear player's inventory
- else:
- if arg 1 is online:
- send "&aO inventário de %arg 1% foi limpo."
- clear arg 1's inventory
- else:
- send "&cEste usuário não está online."
- stop
- else:
- send "&cVocê precisa do grupo Gerente ou superior para executar este comando."
- stop
- at 16:00:
- set time to 12:00
- on weather change to rainy:
- set weather to sunny
- on weather change to thundering:
- set weather to sunny
- on command "/sethome ":
- set {_args::*} to arguments split at " "
- if {_arg::*} is set:
- if world of player is "mine-1":
- send "&cVocê não tem permissão para criar home neste local."
- stop
- command /craft [<text>]:
- trigger:
- if player have permission "craft.craft":
- open crafting table for the player
- else:
- send "&cVocê precisa do grupo Campeão ou superior para executar este comando."
- stop
- on teleport:
- if world of player is "vip-1":
- set player's fly mode to true
- else:
- if player have permission "moderador.group" or "admin.group" or "gerente.group" or "master.group":
- stop
- else:
- set player's fly mode to false
- command /online [<text>]:
- aliases: /online:online
- trigger:
- if arg 1 is "world" or "mine-1" or "vip":
- if player have permission "moderador.group" or "admin.group" or "gerente.group" or "master.group":
- loop all players:
- if "%world of loop-player%" is "%arg 1%":
- add 1 to {_n}
- send "&7Jogadores online no mundo %world of player%: &f%{_n}%"
- send ""
- loop all players:
- if loop-player have permission "master.group":
- If "%world of loop-player%" is "%world of player%":
- add loop-player to {_Masters::*}
- send "&6[Master]: &f%{_Masters::*}%"
- send ""
- loop all players:
- if loop-player have permission "gerente.group":
- If "%world of loop-player%" is "%world of player%":
- add loop-player to {_Gerentes::*}
- send "&4[Gerente]: &f%{_Gerentes::*}%"
- send ""
- loop all players:
- if loop-player have permission "admin.group":
- If "%world of loop-player%" is "%world of player%":
- add loop-player to {_Admin::*}
- send "&c[Admin]: &f%{_Admin::*}%"
- send ""
- loop all players:
- if loop-player have permission "moderador.group":
- If "%world of loop-player%" is "%world of player%":
- add loop-player to {_Moderadores::*}
- send "&2[Moderador]: &f%{_Moderadores::*}%"
- send ""
- loop all players:
- if loop-player have permission "ajudante.group":
- If "%world of loop-player%" is "%world of player%":
- add loop-player to {_Ajudantes::*}
- send "&e[Ajudante]: &f%{_Ajudantes::*}%"
- send ""
- loop all players:
- if loop-player have permission "youtuber.group":
- If "%world of loop-player%" is "%world of player%":
- add loop-player to {_Youtubers::*}
- send "&c[YouTuber]: &f%{_Youtubers::*}%"
- send ""
- loop all players:
- if loop-player have permission "imperador.group":
- If "%world of loop-player%" is "%world of player%":
- add loop-player to {_Imperadores::*}
- send "&b[Imperador]: &f%{_Imperadores::*}%"
- send ""
- loop all players:
- if loop-player have permission "supremo.group":
- If "%world of loop-player%" is "%world of player%":
- add loop-player to {_Supremo::*}
- send "&4[Supremo]: &f%{_Supremo::*}%"
- send ""
- loop all players:
- if loop-player have permission "lendario.group":
- If "%world of loop-player%" is "%world of player%":
- add loop-player to {_Lendario::*}
- send "&2[Lendário]: &f%{_Lendario::*}%"
- send ""
- loop all players:
- if loop-player have permission "heroi.group":
- If "%world of loop-player%" is "%world of player%":
- add loop-player to {_Heroi::*}
- send "&5[Herói]: &f%{_Heroi::*}%"
- send ""
- loop all players:
- if loop-player have permission "campeao.group":
- If "%world of loop-player%" is "%world of player%":
- add loop-player to {_Campeao::*}
- send "&3[Campeão]: &f%{_Campeao::*}%"
- send ""
- loop all players:
- if loop-player have permission "default.group":
- If "%world of loop-player%" is "%world of player%":
- add loop-player to {_Default::*}
- send "&7: &f%{_Default::*}%"
- else:
- send ""
- send "&e* Jogadores em toda a rede: &6%number of all players%"
- send "&e* Jogadores no Factions Lava: &6%number of all players%"
- send ""
- stop
- else:
- send ""
- send "&e* Jogadores em toda a rede: &6%number of all players%"
- send "&e* Jogadores no Factions Lava: &6%number of all players%"
- send ""
- command /players:
- aliases: /players:players
- trigger:
- if player have permission "see.players":
- send ""
- loop all players:
- if loop-player have permission "master.group":
- add loop-player to {_Masters::*}
- send "&6[Master]: &f%{_Masters::*}%"
- send ""
- loop all players:
- if loop-player have permission "gerente.group":
- add loop-player to {_Gerentes::*}
- send "&4[Gerente]: &f%{_Gerentes::*}%"
- send ""
- loop all players:
- if loop-player have permission "admin.group":
- add loop-player to {_Admin::*}
- send "&c[Admin]: &f%{_Admin::*}%"
- send ""
- loop all players:
- if loop-player have permission "moderador.group":
- add loop-player to {_Moderadores::*}
- send "&2[Moderador]: &f%{_Moderadores::*}%"
- send ""
- loop all players:
- if loop-player have permission "ajudante.group":
- add loop-player to {_Ajudantes::*}
- send "&e[Ajudante]: &f%{_Ajudantes::*}%"
- send ""
- loop all players:
- if loop-player have permission "youtuber.group":
- add loop-player to {_Youtubers::*}
- send "&c[YouTuber]: &f%{_Youtubers::*}%"
- send ""
- loop all players:
- if loop-player have permission "imperador.group":
- add loop-player to {_Imperadores::*}
- send "&b[Imperador]: &f%{_Imperadores::*}%"
- send ""
- loop all players:
- if loop-player have permission "supremo.group":
- add loop-player to {_Supremo::*}
- send "&4[Supremo]: &f%{_Supremo::*}%"
- send ""
- loop all players:
- if loop-player have permission "lendario.group":
- add loop-player to {_Lendario::*}
- send "&2[Lendário]: &f%{_Lendario::*}%"
- send ""
- loop all players:
- if loop-player have permission "heroi.group":
- add loop-player to {_Heroi::*}
- send "&5[Herói]: &f%{_Heroi::*}%"
- send ""
- loop all players:
- if loop-player have permission "campeao.group":
- add loop-player to {_Campeao::*}
- send "&3[Campeão]: &f%{_Campeao::*}%"
- send ""
- loop all players:
- if loop-player have permission "default.group":
- add loop-player to {_Default::*}
- send "&7: &f%{_Default::*}%"
- else:
- send "&cVocê precisa do grupo Moderador ou superior para executar este comando."
- on join:
- teleport player to {Spawn}
- on respawn:
- teleport player to {Spawn}
- command /chat [<text>] [<text>]:
- aliases: /chat:chat
- trigger:
- if sender have permission "chat.config":
- if arg 1 isn't set:
- send "&aUtilize /chat global [on/off] &f- &7Desabilitar o chat."
- send "&aUtilize /chat limpar &f- &7Limpar o chat."
- if player have permission "master.group":
- send "&aUtilize /chat all <mensagem> &f- &7Mandar uma mensagem para todos os servidores."
- stop
- if arg 1 is "all":
- if player have permission "master.group" or "gerente.group":
- if arg 2 isn't set:
- send "&cUtilize /chat all <mensagem>."
- stop
- else:
- if player have permission "gerente.group":
- broadcast ""
- broadcast "&4[Gerente] %player%&e: %arg 2%"
- broadcast ""
- stop
- if player have permission "master.group":
- broadcast ""
- broadcast "&6[Master] %player%&e: %arg 2%"
- broadcast ""
- stop
- else:
- send "&cVocê precisa do grupo Gerente ou superior para executar este comando."
- stop
- if arg 1 is "limpar":
- loop 200 times:
- broadcast ""
- send "&aO chat foi limpo com sucesso."
- stop
- if arg 1 is "global":
- if arg 2 isn't set:
- send "&aUtilize /chat global [on/off] &f- &7Desabilitar o chat."
- send "&aUtilize /chat limpar &f- &7Limpar o chat."
- if player have permission "gerente.group" or "master.group":
- send "&aUtilize /chat all <mensagem> &f- &7Mandar uma mensagem para todos os servidores."
- stop
- if arg 2 is "on":
- send "&aO chat global foi ligado."
- set {ChatGlobal} to "on"
- if arg 2 is "off":
- send "&cO chat global foi desligado."
- set {ChatGlobal} to "off"
- else:
- send "&cUtilize /chat global [on/off] para desabilitar o chat."
- stop
- else:
- send "&cVocê precisa do grupo Admin ou superior para executar este comando."
- stop
- command /say [<text>]:
- aliases: /say:say
- trigger:
- if sender have permission "say.admin":
- if arg 1 isn't set:
- send "&cUtilize /say <mensagem>."
- stop
- else:
- broadcast ""
- broadcast "&d&l[ANÚNCIO] &d%colored arg 1%"
- broadcast ""
- else:
- send "&cVocê precisa do grupo Admin ou superior para executar este comando."
- stop
- command /killall [<text>]:
- aliases: /killall:killall
- trigger:
- if sender have permission "kill.all":
- kill all players
- send "&aVocê matou todos os jogadores onlines."
- wait 10 seconds
- stop
- else:
- send "&cVocê precisa do grupo Gerente ou superior para executar este comando."
- stop
- command /head [<offlineplayer>] [<text>]:
- aliases: /head:head
- trigger:
- set {_IsOnline} to value "%arg 1%.isOnline" get of "plugins/Factions/data.yml"
- if sender is console:
- send "&cNão é suportado este comando no console."
- stop
- if player have permission "head.get":
- if arg 1 isn't set:
- send "&cUtilize /head <jogador>."
- else:
- if {_IsOnline} is "Online" or "Offline":
- if {_IsOnline} is "Online":
- send "&aVocê adquiriu a cabeça de: %arg 1%."
- if arg 1 have permission "master.group":
- set {_Tag} to "&6[Master] "
- if arg 1 have permission "gerente.group":
- set {_Tag} to "&4[Gerente] "
- if arg 1 have permission "admin.group":
- set {_Tag} to "&c[Admin] "
- if arg 1 have permission "moderador.group":
- set {_Tag} to "&2[Moderador] "
- if arg 1 have permission "ajudante.group":
- set {_Tag} to "&e[Ajudante] "
- if arg 1 have permission "youtuber.group":
- set {_Tag} to "&c[YouTuber] "
- if arg 1 have permission "imperador.group":
- set {_Tag} to "&b[Imperador] "
- if arg 1 have permission "supremo.group":
- set {_Tag} to "&4[Supremo] "
- if arg 1 have permission "lendario.group":
- set {_Tag} to "&2[Lendário] "
- if arg 1 have permission "heroi.group":
- set {_Tag} to "&5[Herói] "
- if arg 1 have permission "campeao.group":
- set {_Tag} to "&3[Campeão] "
- if arg 1 have permission "default.group":
- set {_Tag} to ""
- give skull of arg 1 named "&fCabeça de %{_Tag}%&f%arg 1%" to player
- else:
- send "&cEste usuário não está online."
- else:
- send "&cEste usuário não existe."
- else:
- send "&cVocê precisa do grupo Gerente ou superior para executar este comando."
- stop
- command /tppos [<number>] [<number>] [<number>] [<offlineplayer>]:
- aliases: /tppos:tppos
- trigger:
- if player have permission "tp.pos":
- if arg 1 is not set:
- send "&cUtilize /tppos <x> <y> <z> <jogador>."
- stop
- if arg 1 is set:
- if arg 2 is not set:
- send "&cUtilize /tppos <x> <y> <z> <jogador>."
- stop
- if arg 2 is set:
- if arg 3 is not set:
- send "&cUtilize /tppos <x> <y> <z> <jogador>."
- stop
- if arg 3 is set:
- if arg 4 is not set:
- set {_loc} to the location at arg-1, arg-2, arg-3
- teleport the player to {_loc}
- send "&aVocê foi teleportado até x: %arg 1%, y: %arg 2%, z: %arg 3%."
- stop
- if arg 4 is set:
- if arg 4 is online:
- set {_loc} to the location at arg-1, arg-2, arg-3
- teleport arg 4 to {_loc}
- send "&a%arg 4% foi teleportado até x: %arg 1%, y: %arg 2%, and z: %arg 3%."
- stop
- else:
- send "&cEste usuário não está online ou não existe."
- stop
- else:
- send "&cVocê precisa do grupo Moderador ou superior para executar este comando."
- stop
- command /tp [<text>] [<text>]:
- aliases: /tp:tp
- trigger:
- set {_IsOnline} to value "%arg 1%.isOnline" get of "plugins/Factions/data.yml"
- if sender have permission "teleport.tp":
- if arg 1 isn't set:
- send "&cUtilize /tp <jogador>."
- stop
- if arg 1 is set:
- if arg 1 is player:
- send "&cVocê não pode teleportar para si mesmo."
- stop
- if arg 2 isn't set:
- if {_IsOnline} is "Online" or "Offline":
- if {_IsOnline} is "Online":
- loop all players:
- if loop-player is "%arg 1%":
- teleport player to loop-player
- send "&a%arg 1% teleportado para %player%."
- stop
- else:
- send "&cEste usuário não está online."
- else:
- send "&cEsse usuário não existe."
- stop
- if arg 1 is set:
- if arg 2 is set:
- if {_IsOnline} is "Online" or "Offline":
- if {_IsOnline} is "Online":
- loop all players:
- if loop-player is "%arg 1%":
- teleport loop-player to player
- send "&a%player% teleportado para %arg 1%."
- loop all players:
- if loop-player is arg 1:
- set {_Victim} to loop-player
- send "&aVocê foi teleportado até %player%." to {_Victim}
- stop
- else:
- send "&cEste usuário não está online."
- else:
- send "&cEsse usuário não existe."
- stop
- else:
- send "&cVocê precisa do grupo Moderador ou superior para executar este comando."
- stop
- command /tpall [<text>]:
- aliases: /tpall:tpall
- trigger:
- if sender have permission "tp.all":
- teleport all players to player
- send "&aTodos os jogadores foram teleportados até você."
- else:
- send "&cVocê precisa do grupo Master ou superior para executar este comando."
- stop
- command /tphere [<text>]:
- aliases: /tphere:tphere
- trigger:
- set {_IsOnline} to value "%arg 1%.isOnline" get of "plugins/Factions/data.yml"
- if sender have permission "teleport.tp":
- if arg 1 isn't set:
- send "&cUtilize /tphere <jogador>."
- stop
- if arg 1 is set:
- if arg 1 is player:
- send "&cVocê não pode teleportar para si mesmo."
- stop
- If {_IsOnline} is "Online" or "Offline":
- if {_IsOnline} is "Online":
- loop all players:
- if loop-player is "%arg 1%":
- teleport loop-player to player
- send "&a%arg 1% teleportado para %player%."
- loop all players:
- if loop-player is arg 1:
- set {_Victim} to loop-player
- send "&aVocê foi teleportado até %player%." to {_Victim}
- stop
- else:
- send "&cEste usuário não está online."
- else:
- send "&cEsse usuário não existe."
- stop
- else:
- send "&cVocê precisa do grupo Moderador ou superior para executar este comando."
- stop
- command /spawn [<text>]:
- aliases: /spawn:spawn
- trigger:
- if arg 1 is "set":
- if player have permission "spawn.set":
- set {Spawn} to location of player
- send "&aSpawn definido com sucesso!"
- else:
- if sender have permission "default.group":
- send "&eEm 3 segundos você irá para o spawn."
- wait 3 seconds
- teleport player to {Spawn}
- send "&aTeleportado com sucesso."
- else:
- teleport player to {Spawn}
- send "&aTeleportado com sucesso."
- if sender have permission "default.group":
- send "&eEm 3 segundos você irá para o spawn."
- wait 3 seconds
- teleport player to {Spawn}
- send "&aTeleportado com sucesso."
- else:
- teleport player to {Spawn}
- send "&aTeleportado com sucesso."
- command /youtuber [<text>] [<text>]:
- aliases: /youtuber:youtuber
- trigger:
- if sender have permission "youtuber.set":
- if arg-1 isn't set:
- send "&a/youtuber adicionar [jogador] &f- &7Adicionar um jogador ao grupo de youtuber."
- send "&a/youtuber remover [jogador] &f- &7Remover um jogador do grupo de youtuber."
- send "&a/youtuber listar &f- &7Ver todos os youtubers do servidor."
- if arg 1 is "adicionar":
- if arg 2 isn't set:
- send "&cUtilize /youtuber adicionar [jogador]."
- if arg 2 is set:
- add arg 2 to {Youtubers::*}
- send "&aO jogador %arg 2% foi adicionado no grupo youtuber."
- make console execute command "group %arg 2% Youtuber"
- if arg 1 is "remover":
- if arg 2 isn't set:
- send "&cUtilize /youtuber remover [jogador]."
- if arg 2 is set:
- remove arg 2 from {Youtubers::*}
- send "&aO jogador %arg 2% foi removido do grupo youtuber."
- make console execute command "group %arg 2% Default"
- if arg 1 is "listar":
- if {Youtubers::*} isn't set:
- send "&cNão há youtubers definidos no servidor."
- else:
- send ""
- loop {Youtubers::*}:
- send " &f- &c[YouTuber] %loop-value% &f(Factions Lava)"
- send ""
- else:
- send "&cVocê precisa do grupo Gerente ou superior para executar este comando."
- stop
- command /staffs [<text>]:
- aliases: /staffs:staffs
- trigger:
- if sender have permission "staff.staff":
- loop all players:
- if loop-player have permission "staff.staff":
- add 1 to {_p}
- send ""
- send "%{_p}% staffers online no momento:"
- loop all players:
- if loop-player have permission "master.group":
- send " &f- &6[Master] %loop-value% &f(Factions Lava)"
- loop all players:
- if loop-player have permission "gerente.group":
- send " &f- &4[Gerente] %loop-value% &f(Factions Lava)"
- loop all players:
- if loop-player have permission "admin.group":
- send " &f- &c[Admin] %loop-value% &f(Factions Lava)"
- loop all players:
- if loop-player have permission "moderador.group":
- send " &f- &2[Moderador] %loop-value% &f(Factions Lava)"
- loop all players:
- if loop-player have permission "ajudante.group":
- send " &f- &e[Ajudante] %loop-value% &f(Factions Lava)"
- send ""
- else:
- send "&cVocê precisa do grupo Ajudante ou superior para executar este comando."
- stop
- command /youtubers [<text>]:
- aliases: /youtubers:youtubers
- trigger:
- if sender have permission "youtuber.see":
- loop all players:
- if loop-player have permission "youtuber.group":
- add 1 to {_p}
- if {_p} isn't set:
- send "&cNão há youtubers onlines no momento."
- else:
- send ""
- send "%{_p}% youtubers online no momento:"
- loop all players:
- if loop-player have permission "youtuber.group":
- send " &f- &c[YouTuber] %loop-value% &f(Factions Lava)"
- send ""
- else:
- send "&cVocê precisa do grupo Youtuber ou superior para executar este comando."
- stop
- command /v [<text>]:
- aliases: vanish:vanish, vanish:v
- trigger:
- if sender have permission "vanish.vanish":
- if {v.%player%} is not set:
- loop all players:
- if loop-player has permission "mod.permissions":
- reveal all players from loop-player
- hide player from all players
- message "&eInvisibilidade ativada"
- set {v.%player%} to true
- stop
- if {v.%player%} is true:
- reveal player from all players
- message "&eInvisibilidade desativada"
- delete {v.%player%}
- stop
- else:
- send "&cVocê precisa do grupo Moderador ou superior para executar este comando."
- stop
- on damage:
- if {god::%victim%} is true:
- cancel event
- command /kill [<offlineplayer>]:
- aliases: /kill:kill
- trigger:
- set {_IsOnline} to value "%arg 1%.isOnline" get of "plugins/Factions/data.yml"
- if player have permission "kill.kill":
- if arg 1 is not set:
- message "&cUtilize /kill <jogador>."
- stop
- if arg 1 is set:
- if {_IsOnline} is "Online" or "Offline":
- if {_IsOnline} is "Online":
- kill arg 1
- loop all players:
- if loop-player is arg 1:
- set {_Killed} to arg 1
- message "&aVocê matou o jogador %{_Killed}%!"
- stop
- else:
- send "&cEste usuário não está online."
- stop
- else:
- send "&cEste usuário não existe."
- else:
- send "&cVocê precisa do grupo Gerente ou superior para executar este comando."
- stop
- command /invsee [<offlineplayer>]:
- aliases: /invsee:invsee
- trigger:
- set {_IsOnline} to value "%arg 1%.isOnline" get of "plugins/Factions/data.yml"
- if player have permission "inv.see":
- if arg 1 is set:
- if {_IsOnline} is "Online" or "Offline":
- If {_IsOnline} is "Online":
- open arg 1's inventory for player
- stop
- else:
- send "&cEste usuário não está online."
- stop
- else:
- send "&cEste usuário não existe."
- else:
- send "&cUtilize /invsee <jogador>."
- stop
- else:
- send "&cVocê precisa do grupo Moderador ou superior para executar este comando."
- stop
- command /god [<text>]:
- aliases: /god:deus, /god:god
- trigger:
- if sender have permission "god.god":
- if {god::%player%} is not set:
- set {god::%player%} to true
- message "&aModo deus ativado!"
- stop
- if {god::%player%} is true:
- delete {god::%player%}
- message "&cModo deus desativado!"
- stop
- else:
- send "&cVocê precisa do grupo Moderador ou superior para executar este comando."
- stop
- command /fly [<text>]:
- aliases: /fly:voar, /fly:fly
- trigger:
- if sender have permission "fly.fly":
- if arg 1 isn't "on" or "off":
- send "&cUtilize /fly <on/off>."
- stop
- if arg 1 is "on":
- if player's fly mode is false:
- set player's fly mode to true
- send "&eSeu modo de voo foi alterado para ligado."
- stop
- if player's fly mode is true:
- send "&cO seu modo de voo já está ligado."
- stop
- if arg 1 is "off":
- if player's fly mode is true:
- set player's fly mode to false
- send "&eSeu modo de voo foi alterado para desligado."
- stop
- if player's fly mode is false:
- send "&cO seu modo de voo já está desligado."
- stop
- if arg 1 isn't set:
- if player's fly mode is false:
- set player's fly mode to true
- send "&eSeu modo de voo foi alterado para ligado."
- stop
- if player's fly mode is true:
- set player's fly mode to false
- send "&eSeu modo de voo foi alterado para desligado."
- stop
- else:
- send "&cVocê precisa do grupo Moderador ou superior para executar este comando."
- stop
- command /gm [<text>]:
- aliases: gamemode:gamemode, gm:gm
- trigger:
- if sender have permission "gamemode.gm":
- if arg 1 isn't set:
- send "&cUtilize /gm <gamemode>"
- stop
- 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":
- send "&cVocê inseriu um gamemode inválido."
- stop
- if arg 1 is "0" or "s" or "survival":
- set the player's gamemode to survival
- send "&eSeu gamemode foi alterado para: SURVIVAL."
- if arg 1 is "1" or "c" or "creative":
- set the player's gamemode to creative
- send "&eSeu gamemode foi alterado para: CREATIVE."
- if arg 1 is "2" or "a" or "adventure":
- set the player's gamemode to adventure
- send "&eSeu gamemode foi alterado para: ADVENTURE."
- if arg 1 is "3" or "s" or "spectator":
- set the player's gamemode to spectator
- send "&eSeu gamemode foi alterado para: SPECTATOR."
- else:
- send "&cVocê precisa do grupo Moderador ou superior para executar este comando."
- stop
- on right click on anvil:
- cancel event
- on right click:
- if player's tool is stick:
- if event-block isn't bedrock or obsidian or end stone:
- send "&3Este bloco quebrará na primeira explosão!"
- stop
- command /cores [<text>]:
- trigger:
- send "&a&&aa Verde Claro" to sender
- send "&b&&bb Azul Claro" to sender
- send "&c&&cc Vermelho" to sender
- send "&d&&dd Rosa" to sender
- send "&e&&ee Amarelo" to sender
- send "&f&&ff Branco" to sender
- send "&0&&00 Preto" to sender
- send "&1&&11 Azul Escuro" to sender
- send "&2&&22 Verde Escuro" to sender
- send "&3&&33 Ciano" to sender
- send "&4&&44 Vermelho Escuro" to sender
- send "&5&&55 Roxo" to sender
- send "&6&&66 Dourado" to sender
- send "&7&&77 Cinza" to sender
- send "&8&&88 Cinza Escuro" to sender
- send "&9&&99 Azul" to sender
- send "" to sender
- send " &fCódigo de formatação"
- send "&l&&ll Negrito" to sender
- send "&o&&oo Itálico" to sender
- send "&r&&rr Reset" to sender
- send "&r&&nn &nUnderline" to sender
- stop
- command /bukkit:? [<text>]:
- trigger:
- send "Comando desconhecido."
- command /? [<text>]:
- trigger:
- send "Comando desconhecido."
- command /bukkit:ver [<text>]:
- trigger:
- send "Comando desconhecido."
- command /ver [<text>]:
- trigger:
- send "Comando desconhecido."
- command /bukkit:pl [<text>]:
- trigger:
- send "Comando desconhecido."
- on command "/pl":
- if sender doesn't have permission "master.group":
- send "Comando desconhecido."
- stop
- cancel event
- command /plugins [<text>]:
- trigger:
- send "Comando desconhecido."
- command /bukkit:plugins [<text>]:
- trigger:
- send "Comando desconhecido."
- command /about [<text>]:
- trigger:
- send "Comando desconhecido."
- command /bukkit:about [<text>]:
- trigger:
- send "Comando desconhecido."
- command /bukkit:help [<text>]:
- trigger:
- send "Comando desconhecido."
- command /help [<text>]:
- trigger:
- send "Comando desconhecido."
- command /me [<text>]:
- trigger:
- send "Comando desconhecido."
- command /minecraft:me [<text>]:
- trigger:
- send "Comando desconhecido."
- command /minecraft:tell [<text>]:
- trigger:
- send "Comando desconhecido."
- command /guerras [<text>] [<text>] [<text>] [<text>] [<text>] [<text>]:
- aliases: guerras:guerras, guerras:guerra, guerra
- trigger:
- set {_Admin} to value "%player%.Admin" get of "plugins/Factions/data.yml"
- if {_Admin} is "true":
- if arg 1 is set:
- if arg 2 is set:
- if arg 3 is set:
- if arg 4 is set:
- if arg 5 is set:
- send "&eNome: %arg 1% - %arg 2% Duração: %arg 3% Data: %arg 4%/%arg 5%/%arg 6%"
- delete {Guerras::*}
- add arg 1 to {Guerras::*}
- set {FactionNome::%arg 1%} to "%arg 2%"
- set {Date::%arg 1%} to "%arg 4%/%arg 5%/%arg 6%"
- loop {FactionList::*}:
- remove loop-value from {FactionGuerreiro::*}
- loop all players:
- set {_TagV} to value "%loop-player%.FactionTag" get of "plugins/Factions/data.yml"
- if arg 1 is equal to {_TagV}:
- add loop-player to {Jogadores::%arg 1%::*}
- add loop-player to {FactionGuerreiro::*}
- set {_Wins} to value "%loop-player%.Wins" get of "plugins/Factions/data.yml"
- set {_Wins} to {_Wins} parsed as integer
- add 1 to {_Wins}
- set "%loop-player%.Wins" to "%{_Wins}%" in yaml file "plugins/Factions/data.yml"
- else:
- send "&cUtilize /guerras <tag> <nome> <tempo> <dia> <mês> <ano>."
- stop
- else:
- send "&cUtilize /guerras <tag> <nome> <tempo> <dia> <mês> <ano>."
- stop
- else:
- send "&cUtilize /guerras <tag> <nome> <tempo> <dia> <mês> <ano>."
- stop
- else:
- send "&cUtilize /guerras <tag> <nome> <tempo> <dia> <mês> <ano>."
- stop
- else:
- send "&cUtilize /guerras <tag> <nome> <tempo> <dia> <mês> <ano>."
- stop
- else:
- if {Guerras::*} isn't set:
- open chest with 6 rows named "Guerras oCorrida Is" to player
- format slot 22 of player with cobweb named "&cNão há nenhuma guerra registrada." to be unstealable
- stop
- set {_s} to 10
- set {_g} to 4
- if {_s} is 16:
- set {_s} to 19
- set {_g} to 5
- if {_s} is 25:
- set {_s} to 28
- set {_g} to 6
- if {_s} is 33:
- set {_s} to 36
- set {_g} to 6
- open chest with {_g} rows named "Guerras oCorrida Is" to player
- loop {Guerras::*}:
- loop {Jogadores::%loop-value-1%::*}:
- set {_FactionRoleV} to value "%loop-value-2%.FactionRole" get of "plugins/Factions/data.yml"
- set {_GroupV} to value "%loop-value-2%.GroupV" get of "plugins/Factions/data.yml"
- if {_FactionRoleV} is "LEADER":
- set {_RoleV} to "##"
- if {_FactionRoleV} is "OFFICER":
- set {_RoleV} to "*"
- if {_FactionRoleV} is "MEMBER":
- set {_RoleV} to "+"
- if {_FactionRoleV} is "RECRUIT":
- set {_RoleV} to "-"
- if loop-value-2 have permission "master.group":
- set {_TagV} to "&6[Master] "
- if loop-value-2 have permission "gerente.group":
- set {_TagV} to "&4[Gerente] "
- if loop-value-2 have permission "admin.group":
- set {_TagV} to "&c[Admin] "
- if loop-value-2 have permission "moderador.group":
- set {_TagV} to "&2[Moderador] "
- if loop-value-2 have permission "ajudante.group":
- set {_TagV} to "&e[Ajudante] "
- if loop-value-2 have permission "imperador.group":
- set {_TagV} to "&b[Imperador] "
- if loop-value-2 have permission "supremo.group":
- set {_TagV} to "&4[Supremo] "
- if loop-value-2 have permission "lendario.group":
- set {_TagV} to "&2[Lendário] "
- if loop-value-2 have permission "heroi.group":
- set {_TagV} to "&5[Herói] "
- if loop-value-2 have permission "campeao.group":
- set {_TagV} to "&3[Campeão] "
- if loop-value-2 have permission "default.group":
- set {_TagV} to "&7"
- 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
- add 1 to {_s}
- on rightclick:
- 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.":
- if event-block is set:
- cancel event
- spawn a powered creeper above the event-block
- 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
- stop
- on rightclick:
- wait 1 tick
- if player's tool is a firework star named "&eReset de KDR" with lore "&7Ao usar este item, você terá seu KDR zerado.":
- open chest with 3 rows named "Confirmação" to player
- 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%"]
- format slot 15 of player with red wool named "&cNegar" to close
- on rightclick:
- 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.":
- set {_FactionMaxPower} to value "%player%.FactionMaxPower" get of "plugins/Factions/data.yml"
- set {_FactionPower} to value "%player%.FactionPower" get of "plugins/Factions/data.yml"
- set {_FactionMaxPower} to {_FactionMaxPower} parsed as integer
- set {_FactionPower} to {_FactionPower} parsed as integer
- if {_FactionPower} = {_FactionMaxPower}:
- send "&cVocê atingiu o limite de poder."
- else:
- add 1 to {_FactionPower}
- set "%player%.FactionPower" to "%{_FactionPower}%" in yaml file "plugins/Factions/data.yml"
- remove 1 paper named "&e+1 de Poder Instantâneo" with lore "&7Ativando este item você,||&7ganhará 1 ponto de poder." from player
- send "&aSeu poder foi aumentado em 1!!"
- on rightclick:
- 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":
- set {_FactionMaxPower} to value "%player%.FactionMaxPower" get of "plugins/Factions/data.yml"
- set {_FactionMaxPower} to {_FactionMaxPower} parsed as integer
- if {_FactionMaxPower} = 20:
- send "&cVocê atingiu o limite de poder."
- else:
- add 1 to {_FactionMaxPower}
- Spawn a firework at player
- set "%player%.FactionMaxPower" to "%{_FactionMaxPower}%" in yaml file "plugins/Factions/data.yml"
- 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
- send "&aSeu limite de poder foi aumentado para %{_FactionMaxPower}%!!"
- command /api [<text>] [<player>]:
- aliases: api:api
- trigger:
- if sender have permission "api.command":
- if arg 1 isn't set:
- send "&7--------------------"
- send "&aNome: &7API"
- send "&aVersão: &71.9"
- send "&7--------------------"
- if arg 1 is "CREEPER":
- if arg 2 is set:
- give 1 paper named "&e+1 de Poder Instantâneo" with lore "&7Ativando este item você,||&7ganhará 1 ponto de poder." to arg 2
- if arg 1 is "CREEPER":
- if arg 2 is set:
- 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
- if arg 1 is "resetkdrconfirm":
- if arg 2 is set:
- if arg 2's tool is firework star named "&eReset de KDR" with lore "&7Ao usar este item, você terá seu KDR zerado.":
- remove 1 firework star named "&eReset de KDR" with lore "&7Ao usar este item, você terá seu KDR zerado." from arg 2
- set "%arg 2%.Mortes" to "0" in yml file "plugins/Factions/data.yml"
- set "%arg 2%.Abates" to "0" in yml file "plugins/Factions/data.yml"
- send "&aSeu KDR foi zerado!" to arg 2
- stop
- else:
- send "&cO item que você está segurando não é um Reset KDR." to arg 2
- stop
- if arg 1 is "RESET_KDR":
- if arg 2 is set:
- give 1 firework star named "&eReset de KDR" with lore "&7Ao usar este item, você terá seu KDR zerado." to arg 2
- if arg 1 is "PODER":
- if arg 2 is set:
- 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
- if arg 1 is "PODER_INSTANTANEO":
- if arg 2 is set:
- give 1 paper named "&e+1 de Poder Instantâneo" with lore "&7Ativando este item você,||&7ganhará 1 ponto de poder." to arg 2
- if arg 1 is "VENENO":
- if arg 2 is set:
- give 1 enchanted book named "&eLivro Encantado" with lore "&7Veneno I|| ||&fEncanta: &7Arco" to arg 2
- if arg 1 is "LENTIDAO":
- if arg 2 is set:
- give 1 enchanted book named "&eLivro Encantado" with lore "&7Lentidão I|| ||&fEncanta: &7Peitoral" to arg 2
- if arg 1 is "INCENDIO":
- if arg 2 is set:
- give 1 enchanted book named "&eLivro Encantado" with lore "&7Incêndio I|| ||&fEncanta: &7Peitoral" to arg 2
- if arg 1 is "ANTI_GRAVIDADE":
- if arg 2 is set:
- give 1 enchanted book named "&eLivro Encantado" with lore "&7Antigravidade I|| ||&fEncanta: &7Bota" to arg 2
- if arg 1 is "AUTO_DESTRUICAO":
- if arg 2 is set:
- give 1 enchanted book named "&eLivro Encantado" with lore "&7Autodestruição I|| ||&fEncanta: &7Peitoral" to arg 2
- if arg 1 is "Corrida I":
- if arg 2 is set:
- give 1 enchanted book named "&eLivro Encantado" with lore "&7Corrida I|| ||&fEncanta: &7Bota" to arg 2
- if arg 1 is "MULTIPLICADOR_DE_TIROS":
- if arg 2 is set:
- give 1 enchanted book named "&eLivro Encantado" with lore "&7Multiplicador de Tiros I|| ||&fEncanta: &7Arco" to arg 2
- if arg 1 is "SUPER_AREA":
- if arg 2 is set:
- give 1 enchanted book named "&eLivro Encantado" with lore "&7Super Área I|| ||&fEncanta: &7Picareta" to arg 2
- if arg 1 is "PROPULSAO":
- if arg 2 is set:
- give 1 enchanted book named "&eLivro Encantado" with lore "&7Propulsão I|| ||&fEncanta: &7Bota" to arg 2
- if arg 1 is "SOBRECARGA":
- if arg 2 is set:
- give 1 enchanted book named "&eLivro Encantado" with lore "&7Sobrecarga I|| ||&fEncanta: &7Espada" to arg 2
- if arg 1 is "LIMIAR_DA_LAMINA":
- if arg 2 is set:
- give 1 enchanted book named "&eLivro Encantado" with lore "&7Limiar da Lâmina I|| ||&fEncanta: &7Espada" to arg 2
- else:
- send "&cVocê precisa do grupo Gerente ou superior para executar este comando."
- stop
- on mcmmo skill level up:
- set {_Level} to value "%player%.Level" get of "plugins/Factions/data.yml"
- set {_Level} to {_Level} parsed as integer
- add 1 to {_Level}
- set "%player%.Level" to "%{_Level}%" in yaml file "plugins/Factions/data.yml"
- on mine:
- if lore of player's tool contains "&7Super Área I":
- loop blocks in radius 1 of event-block:
- if loop-block is stone or cobblestone or obsidian or any ore:
- if loop-block is bedrock:
- remove bedrock from loop-block
- drop loop-block
- set loop-block to air
- on damage:
- if damage cause is VOID:
- teleport victim to {Spawn}
- on damage:
- if lore of victim's chestplate contains "&7Incêndio I":
- chance of 0.5%:
- ignite attacker for 3 seconds
- on damage:
- if lore of victim's chestplate contains "&7Lentidão I":
- chance of 3%:
- apply slowness 1 to the attacker for 5 seconds
- on damage:
- if damage was caused by projectile:
- if lore of attacker's tool contains "&7Veneno I":
- chance of 10%:
- apply poison 1 to the victim for 4 seconds
- on death:
- if lore of player's chestplate contains "&7Autodestruição I":
- clear drops
- on damage:
- damage cause is fall:
- if lore of victim's boots contains "&7Antigravidade I":
- cancel the event
- on damage:
- loop all players:
- if loop-player isn't a player:
- if loop-player is "%victim%":
- if lore of attacker's tool contains "&7Sobrecarga I":
- strike lightning at the loop-player
- damage loop-player by 3.5 hearts
- on damage:
- if lore of attacker's tool contains "&7Limiar da Lâmina I":
- increase the damage by 2
- on inventory click:
- if cursor item is enchanted book named "&eLivro Encantado" with lore "&7Sobrecarga I|| ||&fEncanta: &7Espada":
- if clicked item is sword:
- if lore of clicked item is "":
- set lore of clicked item to "&7Sobrecarga I"
- else:
- set lore of clicked item to "%lore of clicked item%||&7Sobrecarga I"
- set clicked item to glowing clicked item
- set cursor item to air
- message "&aEncantamento aplicado com sucesso!"
- cancel event
- if cursor item is enchanted book named "&eLivro Encantado" with lore "&7Limiar da Lâmina I|| ||&fEncanta: &7Espada":
- if clicked item is sword:
- if lore of clicked item is "":
- set lore of clicked item to "&7Limiar da Lâmina I"
- else:
- set lore of clicked item to "%lore of clicked item%||&7Limiar da Lâmina I"
- set clicked item to glowing clicked item
- set cursor item to air
- message "&aEncantamento aplicado com sucesso!"
- cancel event
- if cursor item is enchanted book named "&eLivro Encantado" with lore "&7Veneno I|| ||&fEncanta: &7Peitoral":
- if clicked item is bow:
- if lore of clicked item is "":
- set lore of clicked item to "&7Veneno I"
- else:
- set lore of clicked item to "%lore of clicked item%||&7Veneno I"
- set clicked item to glowing clicked item
- set cursor item to air
- message "&aEncantamento aplicado com sucesso!"
- cancel event
- if cursor item is enchanted book named "&eLivro Encantado" with lore "&7Lentidão I|| ||&fEncanta: &7Peitoral":
- if clicked item is chestplate:
- if lore of clicked item is "":
- set lore of clicked item to "&7Lentidão I"
- else:
- set lore of clicked item to "%lore of clicked item%||&7Lentidão I"
- set clicked item to glowing clicked item
- set cursor item to air
- message "&aEncantamento aplicado com sucesso!"
- cancel event
- if cursor item is enchanted book named "&eLivro Encantado" with lore "&7Incêndio I|| ||&fEncanta: &7Peitoral":
- if clicked item is chestplate:
- if lore of clicked item is "":
- set lore of clicked item to "&7Incêndio I"
- else:
- set lore of clicked item to "%lore of clicked item%||&7Incêndio I"
- set clicked item to glowing clicked item
- set cursor item to air
- message "&aEncantamento aplicado com sucesso!"
- cancel event
- if cursor item is enchanted book named "&eLivro Encantado" with lore "&7Antigravidade I|| ||&fEncanta: &7Bota":
- if clicked item is boots:
- if lore of clicked item is "":
- set lore of clicked item to "&7Antigravidade I"
- else:
- set lore of clicked item to "%lore of clicked item%||&7Antigravidade I"
- set clicked item to glowing clicked item
- set cursor item to air
- message "&aEncantamento aplicado com sucesso!"
- cancel event
- if cursor item is enchanted book named "&eLivro Encantado" with lore "&7Autodestruição I|| ||&fEncanta: &7Peitoral":
- if clicked item is chestplate:
- if lore of clicked item is "":
- set lore of clicked item to "&7Autodestruição I"
- else:
- set lore of clicked item to "%lore of clicked item%||&7Autodestruição I"
- set clicked item to glowing clicked item
- set cursor item to air
- message "&aEncantamento aplicado com sucesso!"
- cancel event
- if cursor item is enchanted book named "&eLivro Encantado" with lore "&7Corrida I|| ||&fEncanta: &7Bota":
- if clicked item is boots:
- if lore of clicked item is "":
- set lore of clicked item to "&7Corrida I"
- else:
- set lore of clicked item to "%lore of clicked item%||&7Corrida I"
- set clicked item to glowing clicked item
- set cursor item to air
- message "&aEncantamento aplicado com sucesso!"
- cancel event
- if cursor item is enchanted book named "&eLivro Encantado" with lore "&7Multiplicador de Tiros I|| ||&fEncanta: &7Arco":
- if clicked item is bow:
- if lore of clicked item is "":
- set lore of clicked item to "&7Multiplicador de Tiros I"
- else:
- set lore of clicked item to "%lore of clicked item%||&7Multiplicador de Tiros I"
- set clicked item to glowing clicked item
- set cursor item to air
- message "&aEncantamento aplicado com sucesso!"
- cancel event
- if cursor item is enchanted book named "&eLivro Encantado" with lore "&7Super Área I|| ||&fEncanta: &7Picareta":
- if clicked item is pickaxe:
- if lore of clicked item is "":
- set lore of clicked item to "&7Super Área I"
- else:
- set lore of clicked item to "%lore of clicked item%||&7Super Área I"
- set clicked item to glowing clicked item
- set cursor item to air
- message "&aEncantamento aplicado com sucesso!"
- cancel event
- if cursor item is enchanted book named "&eLivro Encantado" with lore "&7Propulsão I|| ||&fEncanta: &7Bota":
- if clicked item is boots:
- if lore of clicked item is "":
- set lore of clicked item to "&7Propulsão I"
- else:
- set lore of clicked item to "%lore of clicked item%||&7Propulsão I"
- set clicked item to glowing clicked item
- set cursor item to air
- message "&aEncantamento aplicado com sucesso!"
- cancel event
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement