Giter Club home page Giter Club logo

Comments (6)

MiniDigger avatar MiniDigger commented on June 20, 2024

This is why you should use the .color() method.
This is not a fanciful issue. Its a minecraft issue, that showed up after the change to the new json chat format

from fanciful.

aaomidi avatar aaomidi commented on June 20, 2024

Or you can get the last color of the letter before adding the \n and append that to the new line.
https://github.com/mkremins/fanciful/blob/master/src/main/java/mkremins/fanciful/FancyMessage.java#L413

Also .color won't always work, for example if you want to make it dynamic and you do not know the color.

from fanciful.

MiniDigger avatar MiniDigger commented on June 20, 2024

What do you mean with dynamic?

from fanciful.

aaomidi avatar aaomidi commented on June 20, 2024

Say you want to send this with a chat message, you don't know the color and you want to use the formatting which is provided by the chat event.

from fanciful.

MiniDigger avatar MiniDigger commented on June 20, 2024

Scann the message and convert the code to a ChatColor

from fanciful.

mkremins avatar mkremins commented on June 20, 2024

Closing this as out of scope, unless anyone wants to discuss special handling of ยง codes as a possible feature for Fanciful itself.

from fanciful.

Related Issues (20)

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.