Jump to content

How to use KeyBoard class in server


3059673

Recommended Posts

A server does not have any keyboard input. Because a server is not a client.

Only clients have rendering and keyboard/mouse input.

A server will crash if you try to handle any of this.

 

Ask your self, when you speak of the servers keyboard, what key input are you speaking about?

Of the many players on the server, which one's keyboard do you want to listen to?

 

If you need keyboard input to affect the server you will have to do it clientside and then send a packet to the server, and handle it on the server side :)

 

If you tell us what you are trying to accomplish we may be able to give you some more hints.

 

If you are unfamiliar with packets, checkout www.minecraftforge.net/wiki/Packet_Handling and then http://www.minecraftforge.net/wiki/Advanced_Packet_Handling

If you guys dont get it.. then well ya.. try harder...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.