Setup Discord Channels

  • Navigate to your /plugins/PrivateChats/chats.yml

  • Under the chats you wish to intergrate discord into you need to add the following:

    discord: 
      id: CHANNEL ID
      embed:
        author: "%name%: %message%"
        authorIcon: "https://crafatar.com/avatars/%uuid%/?overlay=1"
        title: "%name%: %message%"
        description: "%name%: %message%"
        footer: "%name%"
        footerIcon: "https://crafatar.com/avatars/%uuid%/?overlay=1"
        timeStamp: true
        colour: "#ff0d00"

If you don't a feature of the embed, you can remove it, for example:

    discord: 
      id: CHANNEL ID
      embed:
        description: "%name%: %message%"
        colour: "#ff0d00"

Full Example:

  staffchat:
    name: "StaffChat"
    commands:
      - "staffchat"
      - "sc"
    chat_prefix: "#"
    send_perm: "privatechats.staffchat.send"
    read_perm: "privatechats.staffchat.read"
    format:
      message: "&7[&bStaffChat&7] &3%player%: %message%"
      event: "&7[&bStaffChat&7] &3%message%"
    event_message: true
    sent_message: false
    console: true
    toggle:
      enabled: true
      message: "&aYou have toggled StaffChat (%status%)!"
      commands:
        - "togglesc"
        - "togglestaffchat"
    hide:
      enabled: true
      message: "&aYou have %status% StaffChat!"
      commands:
        - "hidesc"
        - "hidestaffchat"
    discord: 
      id: CHANNEL ID
      embed:
        author: "%name%: %message%"
        authorIcon: "https://crafatar.com/avatars/%uuid%/?overlay=1"
        title: "%name%: %message%"
        description: "%name%: %message%"
        footer: "%name%"
        footerIcon: "https://crafatar.com/avatars/%uuid%/?overlay=1"
        timeStamp: true
        colour: "#ff0d00"

Last updated