Cuberite Forum

Full Version: Title message
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I need to display a title message like /title.
I found this https://github.com/cuberite/cuberite/pull/1848
Then tried this:
Code:
Player:GetClientHandle():SendSetTitle('test')
But it is nil.
scottwillmoore said he tested.

please help Huh  Huh Huh
I believe you need cPlayer:SendAboveActionBarMessage(). You might need the cCompositeChat class, but you can try a string first.
I do believe title and above action bar message are two different things.
While i did implement the above action bar message api, i'm not sure if the title api was actually exported to lua.
Right, I forgot about that.
Which Minecraft version would this be? If it's 1.9, then the protocol support is rather unfinished at the moment.
That PR is only for the underlying implementation, it doesn't define any Lua API. And indeed, even in the current sources the functions are not exported to Lua API.