Sueta

PlaceholderChat | Conditional Chat - Infinite possibilities

4.0.1

chat, placeholderapi, spigot, placeholderapi

·Plugin

Official discord: https://discord.gg/wUyZjfaMYr

PlaceholderChat
This plugin allows you to create custom chat formats.
It's like EssentialsXChat but with PlaceholderAPI:

The config key "user", "admin" is the permission group name

DEPENDENCIES: PlaceholderAPI, Vault, any permission plugin that hooks into Vault

Commands & permissions:

  • /placeholderchat (Shows the credits)
  • /placeholderchat help (placeholderchat.help) (admin command)
  • /placeholderchat reload (placeholderchat.reload) (admin command)
  • placeholderchat.colorchat (permission to use colors in chat, hex included)

Example with gradients and placeholders:

"<gray>[%localtime_timezone_Europe/Rome,HH:mm%] <dark_gray>[<bold><gradient:#5e4fa2#f79459,red>SERVER OWNER</gradient><reset><dark_gray>] <reset><gradient:#5e4fa2#f79459,red>%player_name%</gradient> <dark_gray>» <color:#f79459>%message%"

upload_2022-10-20_19-46-2.png

ADVANCED MODE TUTORIAL:
The advanced mode let you further customize the chat formats and you can put any logical condition (PlaceholderAPI support)

Example:

advanced:
    rich-user:
        condition: "'%vault_rank%' == 'user' && %vault_eco_balance% > 200"
        # This is the condition for receiving the chat message
        recipent-condition: "%vault_eco_balance% > 200"
        priority: 10 # Higher values override, default 0
        chat-format: "<gray>[%player_ping%] <dark_gray>[<gradient:#5e4fa2:#f79459:red>SUPER RICH</gradient><dark_gray>] %player% <dark_gray>» <gradient:#5e4fa2:#f79459:red>%message%</gradient>"
    user:
        condition: "'%vault_rank%' == 'user'"
        priority: 5 # Higher values override, default 0
        chat-format: "<gray>[%player_ping%] %player% <dark_gray>» <white>%message%"

In this configuration there's 2 groups, "rich-user" and "user", the first has the logical expression "If the primary group of the player is 'user' and the user has more than 200 money", if this condition return true and it has a priority value greater than the previous found then this will be the chat format.

Screenshots:
upload_2022-10-21_21-0-14.png

WARNING:
MAKE SURE YOU HAVE ALL THE PlaceholderAPI ADDON INSTALLED, IF NOT, INSTALL THEM WITH "/papi ecloud download [...]" THEN EXECUTE "/papi reload" and "/placeholderchat reload"

IF THE PLUGIN DOES NOT WORK CHECK THE CONSOLE!!!
Maybe you don't have the papi packages installed

Similar projects

Plugin →