PlaceholderAPI icon

PlaceholderAPI -----

A resource that allows information from your favorite plugins be shown practically anywhere!



2.7.0
2.7.0

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:

Code (Java):
public class ExampleExpansion extends PlaceholderExpansion implements VersionSpecific {

    @Override
    public boolean 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 ( ) ;
    }

    @Override
    public String getAuthor ( ) {
        return "author" ;
    }

    @Override
    public String getIdentifier ( ) {
        return "identifier" ;
    }

    @Override
    public String getPlugin ( ) {
        return null ;
    }


    @Override
    public String getVersion ( ) {
        return "1.0.0" ;
    }

    @Override
    public String onPlaceholderRequest (Player player, String identifier ) {
        return "value" ;
    }
}
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.

Added bStats to replace MCStats.
https://bstats.org/plugin/bukkit/PlaceholderAPI
----------, Mar 20, 2017
Resource Information
Author:
----------
Total Downloads: 1,633,039
First Release: Apr 20, 2015
Last Update: May 21, 2024
Category: ---------------
All-Time Rating:
497 ratings
Find more info at api.extendedclip.com...
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings