Permissions

ACE Permissions

To utilize ACE permissions, you need to set Config.PermissionType to 'ace'. Then, in your server.cfg, include the following command:

add_ace <principal_identifier> <ace_string> <allow|deny>

For example, you might use:

add_ace group.admin chat_command allow

Next, make sure that 'chat_command' is added to allowed_groups as follows:

    announce_ = {
        command = 'announce',
        enabled = true,
        customizable = false,
        use3DText = false,
        hide3DTextAfter = 8000,
        distanceMessage = -1,
        template3DText = function(name, text)
            return {template = '<div class = "message_3d announce_3d">{0}</div>', args = {text}}
        end,
        templateMessage = function(name, text)
            return {template = '<div class = "message announce"><div class = "time">'..Config.GetTime()..'</div><div class = "header"> <div class = "title">Announcement</div></div><div class = "text">{1}</div></div>',
            args = { name, text }}
        end,
        suggestion = {help = '', params = {}},
        allowed_groups = {'chat_command '},
        coolDown = 100
    },

Last updated