Cuberite Forum
How to whitelist names with spaces in them - Printable Version

+- Cuberite Forum (https://forum.cuberite.org)
+-- Forum: Cuberite (https://forum.cuberite.org/forum-4.html)
+--- Forum: Discussion (https://forum.cuberite.org/forum-5.html)
+--- Thread: How to whitelist names with spaces in them (/thread-2176.html)



How to whitelist names with spaces in them - Jammet - 10-24-2015

There's a guy who I need to whitelist, and his Minecraft name is actually two words. How do I add that guy? Putting it in "'s doesn't do it.

Nice new front design, but but I would really call this "Forum" and not "Discuss". Heart


RE: How to whitelist names with spaces in them - NiLSPACE - 10-24-2015

I believe it isn't implemented because vanilla Minecraft doesn't support spaces. You could try changing this line to
local playerName = table.concat(a_Split, " ", 3)
and that should work.


RE: How to whitelist names with spaces in them - Jammet - 10-24-2015

If vanilla doesn't support it, why do names with spaces in them exist? That's odd.
I'm a little shy making these changes myself. I'd propose them as a permanent "fix" for this is it even makes sense. And at this time I'm not sure it does. If Vanilla doesn't have it.

Thank you very much for the help though. Smile


RE: How to whitelist names with spaces in them - NiLSPACE - 10-24-2015

It does support spaces as in it shows them, but I don't think you can register with a space in your name.

Here ya go:
.lua   whitelist.lua (Size: 13.36 KB / Downloads: 277)