Jump to content

[1.7.10] Canceling player motion control.


Yevi

Recommended Posts

Hi all. I need to handle on server side if player's motion was caused by client control keys and and if so - cancel it. Any ideas guys? Really need your help.

P.S. I'm sorry for my bad english, its not my native language, but i hope that we can understand each other.

There is no spoon

Link to comment
Share on other sites

If you have only server side at your disposal (meaning no client input events), then normal approach allows you to only track "all" movements (with any cause) with PlayerTickEvent.

 

However there is a way of tracking player input.

 

You would have to catch incoming movement packets sent by client to server.

http://www.minecraftforge.net/forum/index.php/topic,34566.0.html

 

As said - client and server does it similar way.

 

Note: Advanced modding.

1.7.10 is no longer supported by forge, you are on your own.

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.

Announcements



×
×
  • Create New...

Important Information

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