subzero0 / legendchat Goto Github PK
View Code? Open in Web Editor NEWA new channel-based chat plugin with high compatibility with other plugins tags and an awesome API for developers!
A new channel-based chat plugin with high compatibility with other plugins tags and an awesome API for developers!
Tô tendo erros ao usar o plugin. No log de início do servidor, aparece esse erro:
http://pastebin.com/V6hpdAHj
E quando alguém fala algo no chat, aparece isso no console:
http://pastebin.com/YChDnpVB
Gosto muito do plugin, não queria deixar de usá-lo :/
Hi,
When I talk, my nick comes up as "l"
How do I fix this?
Volte e faça mudanças ... da tempo de brilhar
Hello! Thanks for the awesome work with LegendChat
Currently LegacyFactions adds our placeholders through this method:
@EventHandler
public void onChatEvent(ChatMessageEvent event) {
for (FactionsPlaceholder placeholder : FactionsPlaceholders.get().getPlaceholders()) {
if (!event.getTags().contains("factions_" + placeholder.placeholder())) continue;
event.setTagValue("factions_" + placeholder.placeholder(), placeholder.get(event.getSender()));
}
}
Which works great for regular messages! However, we would like to add relational placeholders.
From the looks of it you take over chat (cancel and send it yourself) - which is great! Because this means you can set the format per-player.
Basically the relational placeholders are placeholders based on the relationship between two players. So an event that executes with the sender, and the receiver could help out here.
E.g. with LegacyFactions this would allow us to determine if they are an enemy/ally/truce/neutral. So rel_factions_relation_colour
would return a colour to reflect this. So RED for enemies.
If we could maybe add a ChatMessageSendingEvent
that allows us to change the format for a single player so we can add in our relationship based placeholders that would be awesome! I would create a PR, I just don't have time to go through the codebase and learn the project! :(
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.