Separate names with a comma.
Comments in 'Plugin Development' started by abler98, Nov 19, 2014.
Can I change the color of the text in the chat?
I don't think this is possible right now unless you are using the Blocklauncher app for Android.
It is not good
I wish the MCPE team would add colored chat.
So is it possible?
Nope MCPE doesn't support colored text without a client mod what we could do it make a colored chat mod for iOS so android both will have colored chat if they got the mod
Yes, but I'm not sure how to if you are making a plugin.
If we were to make a iOS mod we should just make sure it works for this plugin http://forums.pocketmine.net/plugins/colortext.804/
Well I have Android so I wouldn't help make an iOS mod.
We've started embedding color codes in our plugins even though they aren't supported yet.. It's one less thing to worry about when/if they add support for color chat in the future. Plus, I'm pretty sure people with BlockLauncher can see it.
Well, the only color MCPE supports is grey.
Embedding color codes now is a not a smart idea because when they are implemented into MCPE, PocketMine will implement them immediately using a series of constants contained in a text class. Using the codes directly will be bad practice.
You will need BlockLauncher, I have a option on my server to turn color chat off or on.
how do you enable color chat on blocklauncher? mine doesnt work
Because you didn't send colored chat? You need to $player->setRemoveFormat(false) to avoid PocketMine clearing them.
uhmmm, i set colors only at broadcast messages not on chat :/
Do $player->setRemoveFormat(false) and whatever message you send will go as is. Do $player->setRemoveFormat(true) (default) and whatever message you send will go with colors cleared.
not on chat messages by players but server broadcast messages?
Same. All PocketMine API methods that send messages to players are eventually sending via the sendMessage() function. To the client, they are just all chat messages.
so i have to add setRemoveFormat() in every messages? im confused. (I mean the Broadcast Messages made by the server not sent by players)