Ir para conteúdo

[PEDIDO] Redes Sociais


Silenciado

Posts Recomendados

Vf1CRbA.png

 

 

Função: Um plugin que dá para adicionar as redes sociais do player.

/discord add <nome#000>

/skype add <live:nome>

/twitter add <@nome>

 

Para ver o seu perfil, teria que dar /perfil. (Abriria um menu em GUI)

E para ver o perfil de outro player teria que dar /perfil <player>

 

 Versão do servidor:
 
[  ] 1.5.2
[  ] 1.7.x

[x] 1.8.x

[  ] 1.9.x
[  ] Outro:
 
Uso de MySQL:
 
[  ] Sim
[x] Não (Tanto faz)
 
Deverá gerar log:
 
[  ] Sim
[x] Não (Tanto faz)
 
 Comandos:
 
[  ] Nenhum
[x] Outro: Está ai acima
 
Versão do Java:
 
[  ] Java 7
[x] Java 8
[  ] Outro:
 
Dependencia/Compatibilidade:
 
[  ] WorldGuard
[  ] LegenChat
[  ] Vault
[x] Nenhum (Tanto faz)
[  ] Outro:

Link para o comentário
Compartilhar em outros sites


command /discord [<text>] [<text>]:

trigger:

if argument 1 is not set:

send "&cUtilize /discord add <nome##id>."

else if argument 1 is "add":

if argument 2 contains "##":

set {discord.%player%} to argument 2

send "&aVocê adicionou seu discord à seu perfil."

else:

send "&cPor favor, insira seu discord corretamente."

send "&cFormato correto: &aImEduuH##0051"

else if argument 1 is not "add":

send "&cUtilize /discord add <nome##id>."

 

command /skype [<text>] [<text>]:

trigger:

if argument 1 is not set:

send "&cUtilize /skype add <live:nome>."

else if argument 1 is "add":

if argument 2 contains "live:":

set {skype.%player%} to argument 2

send "&aVocê adicionou seu skype à seu perfil."

else:

send "&cPor favor, insira seu skype corretamente."

send "&cFormato correto: &alive:imeduuh.priv"

else if argument 1 is not "add":

send "&cUtilize /skype add <live:nome>."

 

command /twitter [<text>] [<text>]:

trigger:

if argument 1 is not set:

send "&cUtilize /twitter add <@nome>."

else if argument 1 is "add":

if argument 2 contains "@":

set {twitter.%player%} to argument 2

send "&aVocê adicionou seu discord à seu perfil."

else:

send "&cPor favor, insira seu twitter corretamente."

send "&cFormato correto: &a@ImEduuH_"

else if argument 1 is not "add":

send "&cUtilize /twitter add <@nome>."

 

command /perfil [<offline player>]:

trigger:

if arg 1 is not set:

wait 0.43 tick

open chest with 3 rows named "Perfil - @%player%" to player

wait 0.43 tick

format slot 13 of player with skull of player named "&a%player%" with lore "|| &7Discord: &a%{discord.%player%}%|| &7Skype: &a%{skype.%player%}%|| &7Twitter: &a%{twitter.%player%}%" to close

if arg 1 is set:

if argument 1 is online:

wait 0.43 tick

open chest with 3 rows named "Perfil - @%arg 1%" to player

wait 0.43 tick

format slot 13 of player with skull of argument 1 named "&a%arg 1%" with lore "|| &7Discord: &a%{discord.%arg 1%}%|| &7Skype: &a%{skype.%arg 1%}%|| &7Twitter: &a%{twitter.%arg 1%}%" to close

else:

send "&cEste usuário não está online."

Editado por Grimmjow
Link para o comentário
Compartilhar em outros sites

command /discord [<text>] [<text>]:
	trigger:
		if argument 1 is not set:
			send "&cUtilize /discord add <nome##id>."
		else if argument 1 is "add":
			if argument 2 contains "##":
				set {discord.%player%} to argument 2
				send "&aVocê adicionou seu discord à seu perfil."
			else:
				send "&cPor favor, insira seu discord corretamente."
				send "&cFormato correto: &aImEduuH##0051"
		else if argument 1 is not "add":
			send "&cUtilize /discord add <nome##id>."
			
command /skype [<text>] [<text>]:
	trigger:
		if argument 1 is not set:
			send "&cUtilize /skype add <live:nome>."
		else if argument 1 is "add":
			if argument 2 contains "live:":
				set {skype.%player%} to argument 2
				send "&aVocê adicionou seu skype à seu perfil."
			else:
				send "&cPor favor, insira seu skype corretamente."
				send "&cFormato correto: &alive:imeduuh.priv"
		else if argument 1 is not "add":
			send "&cUtilize /skype add <live:nome>."
				
command /twitter [<text>] [<text>]:
	trigger:
		if argument 1 is not set:
			send "&cUtilize /twitter add <@nome>."
		else if argument 1 is "add":
			if argument 2 contains "@":
				set {twitter.%player%} to argument 2
				send "&aVocê adicionou seu discord à seu perfil."
			else:
				send "&cPor favor, insira seu twitter corretamente."
				send "&cFormato correto: &a@ImEduuH_"
		else if argument 1 is not "add":
			send "&cUtilize /twitter add <@nome>."
			
command /perfil [<offline player>]:
	trigger:
		if arg 1 is not set:
			wait 0.43 tick
			open chest with 3 rows named "Perfil - @%player%" to player
			wait 0.43 tick
			format slot 13 of player with skull of player named "&a%player%" with lore "|| &7Discord: &a%{discord.%player%}%|| &7Skype: &a%{skype.%player%}%|| &7Twitter: &a%{twitter.%player%}%" to close
		if arg 1 is set:
			if argument 1 is online:
				wait 0.43 tick
				open chest with 3 rows named "Perfil - @%arg 1%" to player
				wait 0.43 tick
				format slot 13 of player with skull of argument 1 named "&a%arg 1%" with lore "|| &7Discord: &a%{discord.%arg 1%}%|| &7Skype: &a%{skype.%arg 1%}%|| &7Twitter: &a%{twitter.%arg 1%}%" to close
			else:
				send "&cEste usuário não está online."

 

Vlw muito. Marque como resolvido!

Link para o comentário
Compartilhar em outros sites

Visitante
Este tópico está impedido de receber novos posts.
×
×
  • Criar Novo...