Build 401 - Faster Violation Information Reading & New API Event
News:
As plenty of you are aware, Spartan uses much math to identify & learn from its violations, either if that’s for applying a prevention in a major situation or correcting a false positive. This update largely optimises the Math utilities for faster identification of numbers, ultimately cutting the previous time in half or even less. In addition, new objects were implemented to improve cache and further reduce the already optimised math checks.
A new Developer API event has been implemented by the name “PlayerFoundOreEvent”. It will be called when a player finds a special ore that is compatible with Spartan’s requirements and will result in a notification. For more information, read the API documentation on the plugin’s overview page.
Logs:
Removed the bStats metrics/statistics as Spartan has its own collected by its Cloud feature.
Slightly improved the Cloud feature with more universal methods.
Slightly optimised the Ground utilities with faster methods.
Greatly improved the Ground utilities with more consistent methods.
Corrected an IrregularMovements jump wall climbing bypass.
Corrected a few Jesus upwards & speed boat stepping false positives.
Slightly improved the Event Listeners with a more consistent code structure.
Slightly optimised the Fly, IrregularMovements, Sprint, EntityMove, Speed, Jesus & Clip checks with more direct methods.
Noticeably improved the Math utilities with apparently faster methods.
Slightly optimised the Position object with more direct methods.
Greatly optimised the Search Engine with less method calls.
Greatly optimised the Hack Prevention object by forcing it to skip specific checks when a check is set to silent mode.
Greatly improved the String utilities with new methods and older method replacements.
Slightly optimised the Cancel Violation & Low Violation handlers with use of faster methods.
Slightly optimised the False Positive Detection feature with use of faster methods.
Slightly improved the NPC compatibility with more diversified methods to correct a few plugin full reload cache bugs.
Implemented a new Developer API event named “PlayerFoundOreEvent” that will follow mining notifications.
Greatly improved the Notifications feature with correct grammar when a mining notification is modified due to a fortune enchantment.
Corrected a few Jesus ypos bedrock player false positives.
Removed the warning commands from the config.yml configuration as they seem unnecessary for many users.