APickledWalrus / skript-placeholders

Placeholder integration for Skript.
MIT License
29 stars 9 forks source link

[Suggestion] Allowing the result of a placeholder request to return more than a string #8

Closed shivasuc closed 4 years ago

shivasuc commented 4 years ago

The result of placeholder requests should be able to be set to more types like numbers. Plugins like leaderheads accept numeric placeholders to create leaderboards. Other plugins already return numeric values so i would like it if this addon could too.

APickledWalrus commented 4 years ago

Unfortunately, you can only return string values through PlaceholderAPI (see https://github.com/PlaceholderAPI/PlaceholderAPI/blob/master/src/main/java/me/clip/placeholderapi/PlaceholderHook.java)

I’m not sure how plugins like LeaderHeads handle it, but it should be able to accept an input such as "10" and convert it.