Cuberite Forum
Title message - Printable Version

+- Cuberite Forum (https://forum.cuberite.org)
+-- Forum: Plugins (https://forum.cuberite.org/forum-1.html)
+--- Forum: Plugin Discussion (https://forum.cuberite.org/forum-8.html)
+--- Thread: Title message (/thread-2456.html)



Title message - LuaIsAnoying - 05-27-2016

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


RE: Title message - NiLSPACE - 05-27-2016

I believe you need cPlayer:SendAboveActionBarMessage(). You might need the cCompositeChat class, but you can try a string first.


RE: Title message - jan64 - 05-27-2016

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.


RE: Title message - NiLSPACE - 05-27-2016

Right, I forgot about that.


RE: Title message - tigerw - 05-29-2016

Which Minecraft version would this be? If it's 1.9, then the protocol support is rather unfinished at the moment.


RE: Title message - xoft - 05-29-2016

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.