Giter Club home page Giter Club logo

legendchat's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

legendchat's Issues

Nick Problem

Hi,

When I talk, my nick comes up as "l"

How do I fix this?

Allow relational placeholders

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! :(

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.