Cuberite Forum
[SOLVED] OnKeyPress? - 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: [SOLVED] OnKeyPress? (/thread-2586.html)



[SOLVED] OnKeyPress? - denwo - 11-10-2016

how could i check if a player pressed a curtain key?

i need this because i'm making a whole command handler without using info.lua


RE: OnKeyPress? - NiLSPACE - 11-10-2016

I'm afraid this isn't possible as the client doesn't notify the server once a key is pressed. It only sends info like 'I moved' or 'I opened my inventory'


RE: OnKeyPress? - denwo - 11-10-2016

(11-10-2016, 05:33 PM)NiLSPACE Wrote: I'm afraid this isn't possible as the client doesn't notify the server once a key is pressed. It only sends info like 'I moved' or 'I opened my inventory'

then how could i implement auto word completion?
commands like /give have auto word completion


RE: OnKeyPress? - NiLSPACE - 11-10-2016

We still have to implement that into the command binding API. It will probably just be a callback you can give with the cPluginManager:BindCommand method.


RE: [SOLVED] OnKeyPress? - xoft - 11-10-2016

Say, why do you mark your threads [SOLVED] when they are not solved yet?


RE: [SOLVED] OnKeyPress? - denwo - 11-10-2016

(11-10-2016, 06:29 PM)xoft Wrote: Say, why do you mark your threads [SOLVED] when they are not solved yet?

when i feel like it's solved i mark them as solved