PlaceholderAPI icon

PlaceholderAPI -----

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



2.11.2 - 1.19 Support, --null parse argument, colour formatting removal and fixes
2.11.2

Hey everyone,

Time for the annual PlaceholderAPI update, whilst the last version should work fine with 1.19 this update has been built against the latest version to ensure expansions have access to the latest features. This version also changes how placeholders are parsed in terms of colour, read more below on how this may affect your plugin/expansion.


Changes

  • Removed colour parsing for placeholder parsing (#800)

PlaceholderAPI parsing colours was unintentionally causing issues in the case where unparsed strings with legacy formatting need to be returned. In some cases it also interfered with HEX colours. To ensure consistent results PlaceholderAPI no longer parses colours and instead passes this task onto the plugin/expansion to handle.

What does that mean for my expansion/plugin?
If your expansion/plugin relied on PlaceholderAPI parsing colours you will need to parse them yourself now. This is fairly easy to do with normal chat colours using the method ChatColor#translateAlternateColorCodes(char, String).

Additions
  • Add --null argument to parse command (#800)
The parse commands now provide a --null argument in addition to the current options of a player name or me.
The purpose of this option is to intentionally use a null player for parsing placeholders. This is very useful when an expansion doesn't require an online player to be present to work properly.

Example syntax:
/papi parse --null Text with a %placeholder_value% to parse
  • Log missing plugin for an expansion (#832)

PAPI will now log any missing plugins for a placeholder expansion in the console.

Code (Text):

[00:00:00 WARN]: [PlaceholderAPI] Cannot load expansion example-expansion due to a missing plugin: Example
 
Fixes
  • Fix PAPI lowercasing invalid placeholders (#814)
If an invalid placeholder was used, PlaceholderAPI returned it lowercased. This has been fixed now.

  • Fix PAPI possibly not unregistering expansions (#793)
It could happen that an expansion may not unregister properly if its identifier contains uppercase letters. This has been fixed by @Rothes

----

Full Changelog: https://github.com/PlaceholderAPI/PlaceholderAPI/compare/2.11.1...2.11.2
----------, Jul 3, 2022
Resource Information
Author:
----------
Total Downloads: 1,686,342
First Release: Apr 20, 2015
Last Update: May 21, 2024
Category: ---------------
All-Time Rating:
503 ratings
Find more info at api.extendedclip.com...
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings