Sueta

Hex Chat Colors (PlaceholderAPI)

1.0.0

adds a chat color placeholder and menu

·Plugin

Chat Colors
❤️
PlaceholderAPI

adds a color picker, with custom permissions and custom no-permission message per color. you can use it with other chat plugins with the %cc% PAPI placeholder.

This is not a chat plugin by itself and you will need a chat system that supports PlaceholderAPI and Hex colors with the format #<color>


Example with Venture Chat:

channels:

  general:
    color: none
    chatcolor: none
    mutable: false
    filter: true
    autojoin: true
    default: true
    distance: 0
    cooldown: 0
    bungeecord: false
    alias: g
    permissions: None
    speak_permissions: None
    channel_prefix: "*"
    format: "&f<{player_displayname}>{cc}"


Menu:

Config:

colors:
  # default should always be at the top
  # for creating the custom text messages: https://www.minecraftjson.com/
  default:
    hex: "#ffffff"
    permission: none  # the color 'default' never does permission checks
    noPermission: ""
  # other colors
  ooh pinky:
    hex: "#fc038c"
    permission: voter  # would be: chatcolor.color.voter
    noPermission: '["",{"text":"Unlock with ","italic":true,"color":"gray"},{"text":"/vote","italic":true,"underlined":true,"color":"light_purple","clickEvent":{"action":"run_command","value":"/vote"}}]'

  # you can repeat permission nodes
  le orange:
    hex: "#fc5e03"
    permission: vip   # would be: chatcolor.color.vip
    noPermission: '["",{"text":"Unlock with ","italic":true,"color":"gray"},{"text":"/boost","italic":true,"underlined":true,"color":"light_purple","clickEvent":{"action":"open_url","value":"https://purevanilla.co/store/simply"}}]'
  le green:
    hex: "#03fc6f"
    permission: vip   # would be: chatcolor.color.vip
    noPermission: '["",{"text":"Unlock with ","italic":true,"color":"gray"},{"text":"/boost","italic":true,"underlined":true,"color":"light_purple","clickEvent":{"action":"open_url","value":"https://purevanilla.co/store/simply"}}]'
gui:
  # https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Material.html
  hasPermission: POLISHED_BLACKSTONE_BUTTON
  noPermission: BARRIER

Similar projects

Plugin →