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

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

  1. Offline


    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


    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


    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.

Share This Page