%s
being edited to %
by PlaceholderAPI
#771
Labels
Type: Issue (PlaceholderAPI)
Issue caused by PlaceholderAPI not working properly.
Confirmation
Type
API Bug
What happens?
The method PlaceholderAPI.setPlaceholders(OfflinePlayer, String); is changing the input string
%s
to%
, this is causing bugs further down the line in other plugins that useString.format();
for example.This bug is specific to the latest version (2.11.0)
I found this bug from bug reports from users of betterteams, as BetterTeams supports placeholders in all messages the use of String.format across the plugin broke most plugin messages while placeholderAPI was installed.
Expected Behaviour
The string
%s
should remain uneffected.How to Reproduce
The following single class plugin demonstrates the bug reliably
Simply compile the plugin and type something in chat. Notice how your message will be
(% )
, the brackets are not needed for the bug to occur, they are simply there to demonstrate that the space remains./papi dump
Outputhttps://paste.helpch.at/cupojeloka
Console Log
https://paste.helpch.at/vohidipomi.md
Errors
No response
Additional Info
code-examples provided in the reproduce box.
The text was updated successfully, but these errors were encountered: