Configuration

Configuration

After you have installed JD_logs you can open the config file and change the settings to your needs. You will find the config file in the config folder.

When you just installed JD_logs your config should look like this:

{
    "locals": "en",

    "EnableAcFunctions": true,

    "allLogs": true,
    "postals": true,
    "weaponLog": true,
    "inlineField": true,

    "playerId": true,
    "steamId": true,
    "steamUrl": true,
    "discordId": true,
    "license": true,
    "license2": true,
    "ip": true,
    "playerPing": true,

    "Session": false,
    "PlayTime": false,
    "playerHealth": true,
    "playerArmor": true,
    "timestamp": true,

    "forceSteam": false,

    "nameChangePerms": "jd.staff",
    "logHistoryPerms": "jd.staff",
    "screenshotPerms": "jd.staff",
    "AntiCheatBypass": "jd.staff",

    "DiscordUpdateNotify": true,

    "userName": "Bot Username Here",
    "avatar": "https://via.placeholder.com/30x30",
    "communityName": "Community Name Here",
    "communityLogo": "https://via.placeholder.com/30x30",
    "footerText": "2020 - 2021 © Prefech",
    "footerIcon": "https://via.placeholder.com/30x30",

    "PrefechGlobalBans": true,
    "GlobalBanBypass": [],

    "WeaponsNotLogged": [
        "WEAPON_SNOWBALL",
        "WEAPON_FIREEXTINGUISHER",
        "WEAPON_PETROLCAN"
    ],

    "Commands": {
        "logs": ["logs", "lh"],
        "screenshot": ["screenshot", "ss"]
    }
}

Config settings:

Basic settings.

SettingDefault valueUsage
localsenThis will set the language in all displayed text.
EnableAcFunctionstrueWith this you can disable the anti cheat functions.
allLogstrueIf this has been set to true the resource will try to send every single log made to the all channel in the webhooks.json
postalstrueIf this has been set to true a postal will be included in the embeds. (This will only work if you have embeds enabled for the channel.)
weaponLogtrueIf this has been set to true the resource will try to send a log to the shooting channel in your webhooks.json for every time a player fires a weapon.
inlineFieldtrueIf this has been set to true the player info fields will be nmext to each other in the embed. When set to false they will be below each other.

Player details

SettingDefault valueUsage
playerIdtrueIf this has been set to true the players server id will be displayed in the player details. (Only shows when embeds are enabled for the channel.)
steamIdtrueIf this has been set to true the steam hex will be displayed in the player details. (Only shows when embeds are enabled for the channel.)
steamUrltrueIf this has been set to true the steam profile url will be displayed in the player details. (Only shows when embeds are enabled for the channel.)
discordIdtrueIf this has been set to true the discord id will be displayed in the player details. (Only shows when embeds are enabled for the channel.)
licensetrueIf this has been set to true the players license identidier will be displayed in the player details. (Only shows when embeds are enabled for the channel.)
license2trueIf this has been set to true the players license2 identidier will be displayed in the player details. (Only shows when embeds are enabled for the channel.)
iptrueIf this has been set to true the players ip will be displayed in the player details. (Only shows when embeds are enabled for the channel.)
playerPingtrueIf this has been set to true the players ping will be displayed in the player details. (Only shows when embeds are enabled for the channel.)

Additional player details

SettingDefault valueUsage
SessionfalseIf this has been set to true the resource will try to get the players session time (Only works if you have Prefech_playerTime installed)
PlayTimefalseIf this has been set to true the resource will try to get the players total playtime (Only works if you have Prefech_playerTime installed)
playerHealthtrueIf this has been set to true the players health level will be displayed in the player details. (Only shows when embeds are enabled for the channel.)
playerArmortrueIf this has been set to true the players armor level will be displayed in the player details. (Only shows when embeds are enabled for the channel.)
timestamptrueIf this has been set to true the the timestamp of when the log was made will be added as a field.. (Only shows when embeds are enabled for the channel.)

Steam usage settings.

SettingDefault valueUsage
forceSteamfalseIf this has been set to true player that not have steam activve will be kicked out and prompted to start their steam before they join back.

Ace permission settings.

SettingDefault valueUsage
nameChangePerms"jd.staff"This is the ace permission needed to see the name change live in-game chat.
logHistoryPerms"jd.staff"This is the ace permission needed to use the /logs [id] command.
screenshotPerms"jd.staff"This is the ace permission needed to use the /screenshot [id] command.
AntiCheatBypass"jd.staff"This is the ace permission needed to bypass the anti cheat system that has been build into JD_logs

Update Notifications

SettingDefault valueUsage
DiscordUpdateNotifytrueIf this has been set to true you will get notifications on resource updates in the system channel. (If no system channel has been defined in the webhooks.json it will be send to the all channel.)

Cosmetic settings for embeds

SettingDefault valueUsage
userName"Bot Username Here"This is the username that will be displayed on the webhook.
avatar"https://via.placeholder.com/30x30"This will be the avatar the webhook will use.
communityName"Community Name Here"This will be the name at the top of the embed.
communityLogo"https://via.placeholder.com/30x30"This will be the image at the top of the embed.
footerText"2020 - 2021 © Prefech"This is the text that will get added to the footer of the embed.
footerIcon"https://via.placeholder.com/30x30"This will be the icon at the footer of the embed.

Prefech Global Bans

SettingDefault valueUsage
PrefechGlobalBanstrueIf this has been set to true people on the global ban list will be kicked of your server.
GlobalBanBypass[]You can add any identifiers here for people that are global banned but you still allow them to play on your server.

Not logged weapons

SettingDefault valueUsage
WeaponsNotLogged["WEAPON_SNOWBALL", "WEAPON_FIREEXTINGUISHER"]These weapons will not be logged in the shooting channel.

Commands

SettingDefault ValueUsage
logs["logs", "lh"]This will the the commands used for the logs history command.
screenshot["screenshot", "ss"]This will be the commands used for making a screenshot on a target player.