DynamicPVP is now creating upwards of 200 zones on some maps, which has turned up some performance bottlenecks in Zone Manager.
Here is a modestly tweaked version - search for "HunterZ" to find the specific spots I've changed, with comments explaining why: https://gist.github.com/HunterZ/ac687cb499a8c9d55b53276b21126fff
Performance tweaks
FYI: I've updated the above for 3.1.8.
Only the SaveData() tweak is included, as official 3.1.8 fixed the OnEntityKill() performance issue a better way.
Updated for 3.1.9. Save delay timer now rolls until either:
- Nothing else triggers a save for 2 seconds, or
- 30 seconds have elapsed since the initial trigger
Merged post
Tweaked 3.1.9 version to be less spammy in the server log.
Updated for 3.1.10.
Note that 3.1.10 adds supports for "temporary" zones that don't get recorded in the data file. If PVP plugins that manage their own zone lifecycles update to use those, it may render this hack obsolete.