Welcome to the Hangar Open Beta. Please report any issue you encounter on GitHub!
Avatar for Telesphoreo

Inject PlaceholderAPI placeholders into your chat with EssentialsXChat

Report ChatInjector?

Overview:

This plugin translates PlaceholderAPI placeholders into plugins that do not natively support it. This plugin obviously requires PlaceholderAPI.

Note: This only works for the chat format and system messages, not any actual messages sent by the player or sent by commands such as /say.

Instructions:

Simply put the placeholder you are wanting surrounded by percentage signs in your config file. Example chat format: The factions color, role, and name would look like this:

%factionsuuid_faction_relation_color%%factionsuuid_player_role%%factionsuuid_faction_name% {DISPLAYNAME} &8» &r{MESSAGE}

This also works for system messages! You can add placeholders in your motd.txt file.

Example:

&6Welcome, {PLAYER}&6!
&6Your XP: &c%player_exp%

Reload EssentialsXChat and it will appear.

Installation:

  1. Fully stop the server
  2. Make sure you have PlaceholderAPI version 2.11.6 (the latest) on your server!!! You will also need a chat plugin. I have tested the latest build of EssentialsXChat (v2.21.0-dev+180) on 1.21.4 and everything works.
  3. Make sure you have the latest ProtocolLib build installed as well!
  4. Add the ChatInjector plugin
  5. Start the server

Additional notes:

This is a continuation of the original ChatInjector plugin which can be found here.

Information

CategoryChat
Published onDecember 13, 2024
LicenseUnspecified
Downloads21
Stars0
Watchers0
Supports Folia

Pinned Versions

Members