Creating and removing chars

CharsString - this class is used to operating on your blocks message. That contains scheme of your text, informations like actual location, and functions, to on example delete this text.

First you must to create scheme of your text:

CharsString textCS = builder.replace("#cYour Text");

Next you can to build this text by using builder:

textCS = builder.build(buildLocation, spawnLocation, textCS);

from lastest version posibility:

CharsString textCS = builder.build(buildLocation, spawnLocation, "#cYour Text");

now you can instant use String in build function to build chars.


"build" function return new CharsString with remembered before blocks who was set to build message.
First location is location were plugin will build text, second is location to were will be rotated text.

You can to build text from players location and players facing:

textCS = builder.build(player, textCS);

Builder have too other "build" functions.

Now we can to remove our text.

textCS.clearChars();

Comments

Posts Quoted:
Reply
Clear All Quotes