Jump to content

Creating artificial lag


thecodewarrior

Recommended Posts

Mainly to test how my mod will deal with it. It does player movement and I want to know if the client will properly simulate the motion client side with server latency, and if the server will complain if there is latency and it thinks the player is flying.

 

On a related note. If I have motion simulated on the server as well as the client and the player is mid-air, will the server complain that the player is flying?

Link to comment
Share on other sites

On the client or server side, set something up that runs each world tick, use a random chance to execute, then inside the execute, put a sleep command.  you will have to play with the random chances and sleep to get it right, but should work.

Long time Bukkit & Forge Programmer

Happy to try and help

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.