Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cant get color in chat to work #31

Open
matcool opened this issue Feb 10, 2018 · 12 comments
Open

cant get color in chat to work #31

matcool opened this issue Feb 10, 2018 · 12 comments

Comments

@matcool
Copy link

matcool commented Feb 10, 2018

im trying to do a simple postToChat('§eHello world')
but a weird things occurs
image

i dont know if theres any function that does the same thing as /tellraw but help would be appreciated.

@arpruss
Copy link
Owner

arpruss commented Feb 10, 2018

I doubt that color will work.

@gemSquared
Copy link

Righto um. Minecraft tends to freak out when a client (not server aparently) enters the "§" ... In a vanilla server, you'd normally get kicked for doing that :p No idea why it puts in "Â" though... Try "§kSome text".

@arpruss
Copy link
Owner

arpruss commented Feb 10, 2018

I wouldn't put non-ASCII characters into Python code. Try instead "\xA7kSome test"

@gemSquared
Copy link

Or like... char(21) inserted into a string.

@arpruss
Copy link
Owner

arpruss commented Feb 10, 2018

Why 21?

@matcool
Copy link
Author

matcool commented Feb 10, 2018

tried "\xA7kSome test" and the weird character still persists
image
chr(167) does the same thing as before
image
image

Probably the only way to get rid of it is to use some kind of tellraw

@gemSquared
Copy link

Hmmm dunno same here... but §k does what it should... (scramble letters)

@gemSquared
Copy link

Also. § is ASCII 21. On Windows machine, ALT + NUMPAD 21 = §

@arpruss
Copy link
Owner

arpruss commented Feb 10, 2018

Oh, if it's ascii 21, you should try "\x15Hello World".

@matcool
Copy link
Author

matcool commented Feb 10, 2018

"\x15Hello World" gives me this:
image

@gemSquared
Copy link

How 'bout { chr(21) + "aHayo?" }

@matcool
Copy link
Author

matcool commented Feb 10, 2018

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants