This version has tons of refactoring to NMS related functions in PlaceholderAPI for expansions.
With this update PlaceholderAPI no longer needs to be updated every NMS version update to allow expansions the ability to add compatibility with the latest and greatest version of Minecraft.
PlaceholderAPI will now pass expansions which are VersionSpecific the version string of the server and let the expansion tell PlaceholderAPI if the expansion is compatible. Here is an example:
@Override
publicboolean isCompatibleWith
(Version version
){ /* * Will return that this expansion is compatible with the server * if the server is NMS version v1_11_R1 and the server is running Spigot. */ return version.
getVersion().
equals("v1_11_R1")&& version.
isSpigot(); }
Thelse changes to the version checking system will break any expansions that are currently using it. 99% of expansions are not affected. The only 2 expansions which required an update that I maintain myself are the Player and Statistics expansions. Those updates are already available through the expansion cloud.
Added some error catching when loading expansions and injectors.
If an expansion or injector throws an exceptjon while being loaded/enabled, PlaceholderAPI should still function correctly and the expansion/injector that has errors should not be loaded from now on.