Skip to content

Command Configuration

_Axieum edited this page Nov 23, 2019 · 3 revisions
#General configuration
[general]

    [general.commands]
        #Discord command prefix
        prefix = "!"
        #Discord command unauthorised message
        #Allowed Values: MENTION, COMMAND, ARGS
        unauthorised = "**{{MENTION}}**, you were unauthorised to perform this action :no_good:"

        #TPS Discord command
        [general.commands.tps]
            #Command names/aliases to trigger on
            aliases = ["tps", "ticks"]
            #Is the TPS command enabled for use?
            enabled = true
            #Minecraft dimension IDs to report TPS status (blank for all)
            dimensions = []
            #Channels this command can be executed from (blank for all)
            channels = []
            #Permissions required to execute (blank for everyone)
            #Allowed Values: user:ID, user:Username#Tag, role:ID, Username#Tag
            permissions = []

        #Uptime Discord command
        [general.commands.uptime]
            #Command names/aliases to trigger on
            aliases = ["uptime"]
            #Is the uptime command enabled for use?
            enabled = true
            #Message response format
            #Allowed Values: MENTION, UPTIME|format
            format = "The server has been online for {{UPTIME}} :hourglass_flowing_sand:"
            #Channels this command can be executed from (blank for all)
            channels = []
            #Permissions required to execute (blank for everyone)
            #Allowed Values: user:ID, user:Username#Tag, role:ID, Username#Tag
            permissions = []

The above configuration has the following effect:

Unauthorised

!tps

!uptime

Clone this wiki locally