What's New in Version 1.6.0 See changelog
Released
| Changelogs v.1.6.0
- BasePlayer.ActivePlayerList.ToList() is now used to create a copy of the player list.
- The excluded groups are cached in a HashSet<string> at server startup.
- Added error handling for the VIP command.
- String interpolation ($“”) is now used throughout.
- nameof() is used for the authorization constant.
Overall, the code is now:
- Better performance: using ToList() creates a copy of the player list, preventing issues with concurrent changes.
- More efficient group management: By caching the excluded groups in a HashSet, repeated configuration calls are reduced.
- More robust error handling: Error handling for the VIP command has been added, which increases the stability of the plugin.
- Improved readability: By using string interpolation and nameof(), the code is easier to read and maintain.
- Slightly optimized performance: The use of LINQ methods in IsEligiblePlayer can lead to a slight performance improvement in certain scenarios.