A new version has been released for PlaceholderAPI, it is available for download here.
What’s new in version 3.11:
- bStats support.
- Improved info command to allow more than 20 placeholders (by adding a clickable button).
- Actually made the reload command reload things properly, such as reloading all placeholders.
- Fixed
%player_max_air%
and%player_remaining_air%
to reflect true minecraft values. - Put the statistics expansion into it’s own configuration section.
- New messages for the plugin have been added and will be generated after one server restart.
- Fixed the gradle group to be
me.rojo8399.placeholderapi
fromme.rojo8399
. This likely won’t change anything until a proper maven repo can be deployed so this is more of a formality note. - Minor fixes.
- API changes (non-breaking and non-urgent):
- Added two new default methods to
Expansion
:-
onValueRequest(Player, Optional<String>)
- This returns an
Object
type which reflects the type of output. For example,%player%
will return aString
while%player_ping%
will return anInteger
. This is useful for direct type comparisons and lets you easily see true values of returned placeholders. This can return null.
- This returns an
-
onValueRequest(Player, Optional<String>, Class<T>)
- This returns the generic type
<T>
specified by theClass<T>
parameter passed into the method. This takes the output of the previous method and attempts to cast it to the desired type. If the type provided is null this will fail hard, but if it is not but the cast fails or something else goes wrong, the optional returned will be empty.
- This returns the generic type
-
- Added two new default methods to
Check out the plugin wiki!
View the plugin on GitHub!
See the plugin’s statistics!