11-30-2014, 05:34 AM
(11-29-2014, 09:51 PM)donvdp Wrote: if a player breakes a block then the server has to run through a database of all the protected blocks.
The plugin is smarter than that. It queries the database only once in a while and stores the results for a 16x16x16 block area around the player. If the player doesn't move outside this area, there's no need to query the database - all the blocks are already in the memory. And when the user moves out of this area, the data is queried again for the new area, using a single DB query.
I haven't stress-tested this plugin, but I believe the performance impact to be pretty minimal. I'd be interested in a real-world test, though; unfortunately I don't have a 150-player server.