Skip to content
This repository has been archived by the owner on Nov 2, 2020. It is now read-only.

sdieunidou/onset-whitelist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Whitelist package

Simple whitelist package for your Onset Server

Requirement

Install

Add package in onset/packages/whitelist, enable it in server_config.json and restart your Onset server.

Edit packages/whitelist/config.json with the list of steamIDs allowed to join our server and set the locale used by default for the plugin.

Add whitelist in packages section of server_config.json file.

Reload configuration

You have added new players in your whitelist? Reload plugin configuration with /whitelist-reload command. You need to be an administrator to run it.

Functions

AddFunctionExport( 'isWhitelisted', whitelist.isWhitelisted )
AddFunctionExport( 'reloadWhitelist', whitelist.reload )

Configuration example

{
    "is_enabled": true,
    "locale": "en",
    "whitelist": [
        "123451234512345",
        "123451234512343"
    ]
}

Credits