Locate the config.php file inside of File Manager. This will be in public_html or the sub folder. When you have located the config file double click it to open the file and edit it.
Step 2 - Base URL
The base url can be located at the top of the config file
Replace the base url with your link. IMPORTANT: Make sure there is no / at the end of the base url.
Step 3 - SQL DATABASE CONNECTION
// SQL DATABASE CONNECTION \\
define('DB_HOST', 'localhost'); // Keep this unless your db is hosted elsewhere
define('DB_USER', 'root'); // Replace root with DB username
define('DB_PASSWORD', ''); // Add DB Password inside of the ''
define('DB_NAME', 'hamzproduct'); // Replace hamzcad with DB name
First we will get the bot token. Head to the bot navigation on your application and create the bot. When you have created the bot click on the Copy button under the token.
Now that you have that copied replace TOKEN-HERE with the token you have copied.
Guild ID. = Right click on your servers profile image on discord and press COPY ID if this is not a option you will have to enable developer mode in the discord settings.
Now replace GUILD-ID-HERE with the ID you now have copied.
OAUTH2 CLIENT ID. = On the dev portal head to OAuth2 section.
Now head to the client id and press the copy button.
Now replace the OAUTH2_CLIENT_ID with the ID you have copied.
OAUTH2 CLIENT SECRET = On the dev portal OAuth2 section copy the secret key.
Now replace OAUTH2_CLIENT_SECRET with what you have copied.
Make sure that the application is inside your discord server. You can do that via the below link.
Finally, Set the OAuth2 Redirect here:(link + /actions/register.php)
Step 5 - DISCORD LOGS
// DISCORD LOGS \\
define('LOGS_IMAGE', 'https://imgur.com/yaHpliD.png'); // Replace with direct image link.
define('LOGS_COLOR', '#00B2FF'); // Replace with a color to your liking. You can just search #00B2FF on google and it will give you a color tool picker.
// Channel ID's \\
define('WARN_LOGS', 'CHANNEL_ID_HERE');
define('KICK_LOGS', 'CHANNEL_ID_HERE');
define('BAN_LOGS', 'CHANNEL_ID_HERE');
define('COMMEND_LOGS', 'CHANNEL_ID_HERE');
define('NOTE_LOGS', 'CHANNEL_ID_HERE');
define('REMOVEBAN_LOGS', 'CHANNEL_ID_HERE');
define('REMOVEWARN_LOGS', 'CHANNEL_ID_HERE');
define('REMOVEKICK_LOGS', 'CHANNEL_ID_HERE');
define('REMOVECOMMEND_LOGS', 'CHANNEL_ID_HERE');
define('REMOVENOTE_LOGS', 'CHANNEL_ID_HERE');
define('STRIKE_LOGS', 'CHANNEL_ID_HERE');
define('REMOVESTRIKE_LOGS', 'CHANNEL_ID_HERE');
define('BROADCAST_LOGS', 'CHANNEL_ID_HERE');
define('LOGIN_LOGS', 'CHANNEL_ID_HERE');
define('REMOVEOLDNAME_LOGS', 'CHANNEL_ID_HERE');
define('REMOVESTAFF_LOGS', '842158704056074249');
Channel ID logs use the bot so no webhooks. Set the channel ID where you like the log option to be logged at.
Step 6 - GENERAL
// GENERAL \\
define('SERVER_NAME', 'SERVERNAMEHERE'); // Replace with server name.
define('SECRET', 'CUSTOMSECRETHERE'); // Set a custom secret, This will be used in the ingame resource later.
define('STEAM_API', 'STEAMAPIKEYHERE'); // https://steamcommunity.com/dev/apikey
define('ACCENT_COLOR', '#00B2FF'); // Change color here
define('ENABLE_RESOURCES', true); // Enables the resource tab in the panel.
define('ENABLE_BROADCAST', true); /: Enables the broadcast system in the panel.
Step 7 - IP/SERVER SETUP
// IP Stuff
$SERVERS = array(
[
'server_name' => 'Server 1', // Name server here, Do not add a # in this field as this will not work.
'server_ip' => '127.0.0.1', // Replace with server IP
'server_port' => '30120', // Replace with server Port
'server_rcon_pass' => 'rcon_pass_here' // Replace with rconpassword
],
// [
// 'server_name' => 'Server 2',
// 'server_ip' => '127.0.0.1',
// 'server_port' => '30121',
// 'server_rcon_pass' => 'rcon_pass_here'
// ]
);
Step 8 - TRUSTSCORE VALUES
Modifying these values will effect the players trustscore when the action has been taken against them. Feel free to change the values to what you like. KEEP THE FORMAT!!!
// Trustscore Values
define('WARN_SCORE', '4');
define('KICK_SCORE', '20');
define('BAN_SCORE', '12');
define('COMMEND_SCORE', '4');
define('PERMBAN_TRUSTSCORE', '0');
define('PERMBAN_TRUSTSCORE_MASSAGE', 'YOUR TRUSTSCORE IS LOWER THAN THIS SERVERS MINIMUM REQUIREMENT.');
// ALL PERMISSIONS
'STAFFROLEIDHERE' => [
'AddNote', // Add Notes to users profile
'RemoveNote', // Remove Notes on user profile records
'AddWarn', // Add Warnings / Warn users
'RemoveWarn', // Remove warnings from user profile records
'AddKick', // Kick users
'RemoveKick', // Remove kicks from user profile records
'AddTempBan', // Temp Ban users
'AddPermBan', // Perm Ban users
'RemoveBan', // Remove Bans from user profile records
'AddCommend', // Add a commend on a users profile record
'RemoveCommend', // Remove a commend from a users profile record
'ViewOldNames', // Allow to view users previous names. This is located on users profile
'RemoveOldNames', // Remove old names from users profile records
'Broadcast', // Send / Create broadcast messages
'ViewStaffSection', // View staff section / Staff Profiles / Staff stats
'RemoveStrike', // Remove strikes from staff profiles
'RemoveStaff', // Remove staff from panel
'ManageServerResources', // Allow the server resources tab
],
KEEP THE FORMAT!!!
Modify to fit your staff roles.
You can remove a permission from just removing the permission line.
To add more just copy and paste under ],