GithubHelp home page GithubHelp logo

Comments (3)

TheLimeGlass avatar TheLimeGlass commented on July 20, 2024 1

This is Bungeecord, split the lines at the colour and send two messages.

from skungee.

TheLimeGlass avatar TheLimeGlass commented on July 20, 2024 1

I can't determine the string colours either without grabbing the initial string non colour formatted.

You however can determine the colour and length since you have management over the initial input string non coloured. You will need to read the & keys and length appropriately.

You may also use Skungee messages, the evaluate effect from Skungee or setting of variables to execute multiple line balance. Usage of Skungee message system or evaluate will be determined via Bukkit, and Bukkit has a system to place colours and lines correctly from NMS

from skungee.

Vulqa avatar Vulqa commented on July 20, 2024

@TheLimeGlass

Oh, okey. But I cannot Split lines with a system of private messages for example. I cannot know in what moment the line is going to return to the line given that it is the player him even who brings in his message, and given that it depends on the size of the chat of the client also.

Example:

command /mp <text> <text>:
	trigger:
		message "&c%player% &d&l> &c%arg-1%&7: &a%arg-2%" to bungeecord player "%arg-1%"

I can do like this:

command /mp <text> <text>:
	trigger:
		set {_arg} to arg-2
		replace all "" with "§a" in {_arg}
		message "&c%player% &d&l> &c%arg-1%&7: &a%{_arg}%" to bungeecord player "%arg-1%"

But when a word is too long the first character after the line break is white :/ http://prntscr.com/lgvtkr
Has you a solution there to detect when the message skips a line ? Thanks for the help.

from skungee.

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.