Cuberite Forum

Full Version: [SOLVED] OnKeyPress?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
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'
(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
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.
Say, why do you mark your threads [SOLVED] when they are not solved yet?
(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