Skip to content

v1.1 - PlaceholderAPI / Skript chat bridge

Choose a tag to compare

@CaptainParis CaptainParis released this 31 Jul 11:23
· 3 commits to main since this release
68d371f

What's new

  • PlaceholderAPI/Skript chat bridge. New %headsprites_msg% placeholder returns the sender's chat message already rendered as a JSON text component, with <head:...>, <sprite:...>, and <seq:...> tags resolved into inline heads. This lets Skript/SkBee (or any plugin that cancels and rebuilds chat) show inline sprites in custom chat formats.
  • The rendered message is captured at LOWEST priority, before the chat event is cancelled, so it is always available.
  • The placeholder returns a valid empty component ({"text":""}) when nothing is stored, so text component from json never throws.
  • Added PlaceholderAPI as a soft dependency; the bridge and placeholder only register when PlaceholderAPI is installed. Without it, the plugin falls back to the built-in vanilla chat renderer.
  • README: added a "Using with Skript" section with requirements, the placeholder, an example, and a note on listener priority.

Install

Drop HeadSprites-1.1.jar into your server's plugins/ folder. Requires Paper 1.21.9+ and Java 21. PlaceholderAPI is optional (needed only for the Skript bridge).