Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Creating artificial lag


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 post
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 post
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.

Guest
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 Privacy Policy.