How to find out how many new chunks a player loads on the server.

Discussion in 'Plugin Development' started by DakSnoob, Apr 20, 2021.

Thread Status:
Not open for further replies.
  1. Offline

    DakSnoob

    Hi, I am creating a plugin for the server that will restrict players from loading chunks so that the server lags less and does not crash. So this is how I can find out how many chunks a player loads in 5 seconds.
     
  2. Offline

    pixelrider2000

    I didn't really think it through but I would probably increase some value every time the player loads a chunk and when the value reachers a maximum too fast it would cancel the event.
     
  3. Offline

    DakSnoob

    I changed my mind, I find out the player's speed and if it reaches the maximum the player first teleports, and if it kicks the player many times.
     
Thread Status:
Not open for further replies.

Share This Page