Channels

A channel is a separate chat group that players can send and receive messages in. Each channel has its own purpose and set of recipients, for example:

Global Chat - messages visible to everyone on the server. Staff Chat - messages only visible to staff members.

Format

channels:
    <channel-name>: 
        enabled: true
        require-permissions:
            # if enabled, users are required to have "astrachat.channels.global.read" to read messages
            read: true/false

            # if enabled, users are required to have "astrachat.channels.global.write" to send messages
            write: true/false
        # by default this format uses minimessage
        # to enable legacy support, set text.legacy-support to true
        format: "%prefix%%player%%suffix%<white>: %message%"

        # duration between each message in ticks
        # players with the "astrachat.channels.global.manage" permission can change this with /slowmode <channel> <time>
        # slowmode can be bypassed with the "astrachat.channels.global.manage" or "astrachat.admin" permissions
        default-slowmode: 20

        # use this in front of a message to type in this chat without switching channels.
        # leave blank to disable.
        shortcut-prefix: ""

        # if this chat should be sent to other servers. 
        # must have redis enabled and setup
        cross-server: true

        # you can use these commands to talk in this chat
        # using /global <message> would send a message in global chat
        commands:
            - global
        
        
        # allow sending messages to and from discord
        # must have discord setup and enabled
        discord:
            enabled: false

            # the format of discord messages that are displayed in game
            # available placeholders:
            # - %nickname% their name as shown in the guild
            # - %display-name% their discord display name
            # - %username% their discord username
            # - %member-id% their discord id
            # - %guild-name% the guild/server name
            # - %channel-name% the channel name
            format: "<light_purple>[DISCORD]</light_purple> <white>%nickname%: %message%"
            
            # to find, enable developer mode in User Settings > Advanced > Developer Mode
            # then right click the channel and select Copy Channel ID
            channel: "channelId"

            # Supports embeds. See documentation for detailed usage.
            # See: https://astradev.gitbook.io/astrachat/configuration/discord#discord-message-format
            discord-format:
                # whether to enable/disable mentions
                # setting this to false prevents people from using @everyone in-game
                allow-mentions: false
                content: "**%player%**: %message%"

Shortcut Prefix

A shortcut prefix gives you the option to type in this channel without typing a full command or completely changing channels.

Cross Server

circle-info

Since v1.1.0

Cross sever allows messages to be sent across servers with the same channel. This requires you to setup a Redis server. You can use this to combine your staff chat across your network.

Note: formatting is applied on the server where the player sends the message.

Redis Setup

Free Redis server: https://redis.io/arrow-up-right

Custom Rules

AstraChat supports adding additional rules ontop of the 3 rules enabled by default.

Helpop

Helpop is in the configuration file by default but must be enabled.

Advertising

Last updated