Ir para conteúdo

MCTopTag - Tag para o 1º do /mctop. (mcMMO)


TequilAxBr

Posts Recomendados

MCTOPTAG


 


O plugin é um kibe do sk1, e bem simples... Tem como objetivo adicionar uma tag(configurável) ao 1º colocado do /mctop do mcMMO.


 


Dependências


 


mcMMO;


LegendChat;


 


OBS: O que deve ser inserido na config.yml do LegendChat para tag funcionar é: {mctoptag}


 


Download da .jar: CLIQUE AQUI


 


Obs: Não vou postar print's, caso queiram ver baixe e teste-o.


Obs: Testei apenas na versão 1.8, não sei informar se funcionar em versões inferiores.


config.yml :


 




config:
time-check: 300
tag: '&9[⚒]' 


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

Guest iDimaBRBanido2

Cara, eu não achei outra forma de pegar.

Mas acho que não daria, pelo fato de estar em async.

Você fez cache? de atualizar em 5 em 5 minutos? ,-, pelo oque eu entendi esses dias cache e adc na hashmap né? os dados de 5 em 5 minutos ,-,

Link para o comentário
Compartilhar em outros sites

Você fez cache? de atualizar em 5 em 5 minutos? ,-, pelo oque eu entendi esses dias cache e adc na hashmap né? os dados de 5 em 5 minutos ,-,

Não precisa ser em uma hashmap. Pode ser em Array, ArrayList, variável, HashMap.

Link para o comentário
Compartilhar em outros sites

Ótimo plugin, parabéns, vai ajudar muita gente, incluindo eu!

 

@OFF:

Estou com um errinho sabe oq pode ser?

 

[12:17:29 ERROR]: Could not pass event ChatMessageEvent to MCTopTag v1.0

org.bukkit.event.EventException

        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:310) ~[spigot.jar:git-Spigot-21fe707-e1ebe52]

        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot.jar:git-Spigot-21fe707-e1ebe52]

        at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot.jar:git-Spigot-21fe707-e1ebe52]

        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [spigot.jar:git-Spigot-21fe707-e1ebe52]

        at br.com.devpaulo.legendchat.channels.utils.ChannelUtils.realMessage(ChannelUtils.java:222) [LegendChat.jar:?]

        at br.com.devpaulo.legendchat.channels.types.PermanentChannel.sendMessage(PermanentChannel.java:180) [LegendChat.jar:?]

        at br.com.devpaulo.legendchat.listeners.Listeners.onChat2(Listeners.java:108) [LegendChat.jar:?]

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_101]

        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_101]

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_101]

        at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_101]

        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) [spigot.jar:git-Spigot-21fe707-e1ebe52]

        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) [spigot.jar:git-Spigot-21fe707-e1ebe52]

        at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot.jar:git-Spigot-21fe707-e1ebe52]

        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:484) [spigot.jar:git-Spigot-21fe707-e1ebe52]

        at net.minecraft.server.v1_8_R3.PlayerConnection.chat(PlayerConnection.java:1084) [spigot.jar:git-Spigot-21fe707-e1ebe52]

        at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:1022) [spigot.jar:git-Spigot-21fe707-e1ebe52]

        at net.minecraft.server.v1_8_R3.PacketPlayInChat$1.run(PacketPlayInChat.java:39) [spigot.jar:git-Spigot-21fe707-e1ebe52]

        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_101]

        at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_101]

        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.8.0_101]

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.8.0_101]

        at java.lang.Thread.run(Unknown Source) [?:1.8.0_101]

Caused by: java.lang.NullPointerException

        at br.com.mctoptag.MCTopTag.onChat(MCTopTag.java:52) ~[?:?]

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_101]

        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_101]

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_101]

        at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_101]

        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) ~[spigot.jar:git-Spigot-21fe707-e1ebe52]

        ... 22 more

 

Link para o comentário
Compartilhar em outros sites

Ótimo plugin, parabéns, vai ajudar muita gente, incluindo eu!

 

@OFF:

Estou com um errinho sabe oq pode ser?

 

[12:17:29 ERROR]: Could not pass event ChatMessageEvent to MCTopTag v1.0

org.bukkit.event.EventException

        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:310) ~[spigot.jar:git-Spigot-21fe707-e1ebe52]

        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot.jar:git-Spigot-21fe707-e1ebe52]

        at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot.jar:git-Spigot-21fe707-e1ebe52]

        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [spigot.jar:git-Spigot-21fe707-e1ebe52]

        at br.com.devpaulo.legendchat.channels.utils.ChannelUtils.realMessage(ChannelUtils.java:222) [LegendChat.jar:?]

        at br.com.devpaulo.legendchat.channels.types.PermanentChannel.sendMessage(PermanentChannel.java:180) [LegendChat.jar:?]

        at br.com.devpaulo.legendchat.listeners.Listeners.onChat2(Listeners.java:108) [LegendChat.jar:?]

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_101]

        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_101]

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_101]

        at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_101]

        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) [spigot.jar:git-Spigot-21fe707-e1ebe52]

        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) [spigot.jar:git-Spigot-21fe707-e1ebe52]

        at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot.jar:git-Spigot-21fe707-e1ebe52]

        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:484) [spigot.jar:git-Spigot-21fe707-e1ebe52]

        at net.minecraft.server.v1_8_R3.PlayerConnection.chat(PlayerConnection.java:1084) [spigot.jar:git-Spigot-21fe707-e1ebe52]

        at net.minecraft.server.v1_8_R3.PlayerConnection.a(PlayerConnection.java:1022) [spigot.jar:git-Spigot-21fe707-e1ebe52]

        at net.minecraft.server.v1_8_R3.PacketPlayInChat$1.run(PacketPlayInChat.java:39) [spigot.jar:git-Spigot-21fe707-e1ebe52]

        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_101]

        at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_101]

        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.8.0_101]

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.8.0_101]

        at java.lang.Thread.run(Unknown Source) [?:1.8.0_101]

Caused by: java.lang.NullPointerException

        at br.com.mctoptag.MCTopTag.onChat(MCTopTag.java:52) ~[?:?]

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_101]

        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_101]

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_101]

        at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_101]

        at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:306) ~[spigot.jar:git-Spigot-21fe707-e1ebe52]

        ... 22 more

 

Você precisa usar as duas dependências(mcMMO, LegendChat), caso seja e uma versão inferior a 1.8 não irei dar o suporte.

E as dependências devem estar de acordo co a versão do servidor.

 

Very good parabéns

Valeu!

Link para o comentário
Compartilhar em outros sites

Você precisa usar as duas dependências(mcMMO, LegendChat), caso seja e uma versão inferior a 1.8 não irei dar o suporte.

E as dependências devem estar de acordo co a versão do servidor.

 

Valeu!

 

Meu servidor é 1.8 e tem tanto mcmmo quanto legend chat compatíveis com ele (vou colocar as versões):

Legendchat:  1.1.3

mcMMO: 1.5.04-SNAPSHOT

 

@EDIT:

Funcionou aqui, desculpe pelo trabalho que possa ter dado ;D

Obrigado pela ajuda

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

Meu servidor é 1.8 e tem tanto mcmmo quanto legend chat compatíveis com ele (vou colocar as versões):

Legendchat:  1.1.3

mcMMO: 1.5.04-SNAPSHOT

 

@EDIT:

Funcionou aqui, desculpe pelo trabalho que possa ter dado ;D

Obrigado pela ajuda

Tranquilo ^^

Obrigado por usar.

Link para o comentário
Compartilhar em outros sites

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