Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Settings

K4ryuu edited this page Apr 11, 2024 · 8 revisions

Settings

Settings for the plugin, which are located at counterstrikesharp/configs/plugins/{plugin_name}/. After the desired changes are made, you have to restart the server to apply them.

GeneralSettings

spawn-message

Let's you decide whether or not to print a message at spawn for every player, to let them know about !k4 command, to see every available K4 based commands.

module_ranks

Possible values: true/false

Enabled / Disable the Rank module, which let the players collect points and rank based on that. There is also a toplist in that with wide range of settings. This module can be extended with K4-Missions Extension

module_stats

Possible values: true/false

Enable / Disable the Statistics module, which captures variety of player statistics and let the players view them at any point.

module_times

Possible values: true/false

Enable / Disable the Time Statistics module, which captures the playtime of players and let them to view all of them at any point.

module_utils

Possible values: true/false

Enable / Disable the Utilities module, which is going to add usefull commands to the server such as !admins and so

lvl-ranks-table

Possible values: true/false

Enable / Disable an addional table, which uses the same schema as the old LVLRanks plugin. This let's you use the web panels of that plugin too, if enabled.

ffa-mode

Possible values: true/false

Enable / Disable Free-For-All mode, which counts TeamKill as a Kill instead of TeamKill.

table-purge-days

Possible values: int

Number of days to delete inactive players from database after. To disable the auto purge set it to 0 or -1.

admin-settings

Possible values: List<AdminSettingsEntry>

Create entries for admin permissions by flag/group/override to let them have custom ClanTag on the scoreboard and let them be listed in the !admins menu with a custom color. If you don't set the ListColor, that permission wont be shown in the !admins list, but you can assign custom ClanTag. If you don't add ClanTag, but set the ListColor, the admin is listen in !admins, but having no ClanTag on scoreboard. If you don't want to set a value, simply do not add it to the entry.

CommandSettings

Here you can add the command aliases, that you want to register for a specific command. You can add as many as you want. Do not include css_ in there, because the plugin adds it automatically.

DatabaseSettings

Here you should steup the connection between your gameserver and MySQL database by adding your credentials.

table-prefix

Possible values: string

If you want to use on MySQL database to store multiple server's K4 data, but you don't want the data to be shared between them, you should set a prefix for each server. For example, you set the prefix to awp_, then it is going to create and use the tables as awp_k4stats for example.

lvlranks-table-name

Possible values: string

If you want to set a different name for the lvlranks support table, then you can do this here. Note that, you have to set lvl-ranks-table to true in order to work.

RankSettings

Settings for Rank Module. Only used if module_ranks is true.

start-points

Possible values: int

Define the starting points for new players.

country-tag-before-rank

Possible values: true/false

Enable / Disable clantag two digit country tags before the rank name. You have to enable scoreboard-clantags to use this setting.

points-for-bots

Possible values: true/false

Enable / Disable rank point modifications for taking actions with bots.

warmup-points

Possible values: true/false

Enable / Disable rank point modifications while warmup is running.

round-end-points

Possible values: true/false

If this value is true, the plugin won't print the points modifications one-by-one. Instead it is going to show a summarized message about the round's point changes on round end.

minimum-players

Possible values: int

The minimum amount of real player (bots are not counted) in order to allow point modifications.

scoreboard-clantags

Possible values: true/false

Allow the plugin to change scoreboard clantags depending on the player's rank or admin-settings.

scoreboard-score-sync

Possible values: true/false

This is going to sync the scoreboard points of the player with the rank points they have. This is good to setup scoreboard with an order of K4 ranks.

vip-multiplier

Possible values: float

The VIPs (who have @k4system/vip/points-multiplier flag) are getting multiplied points by this. For example if a kill gives you 10 points and the multiplier is 1.25, then a VIP is getting 12-13 points.

dynamic-death-points

Possible values: true/false

The Kill and Death point modifications is going to be calculated by using the difference between the killed and the victim. If the victim is a much lower pointed player, than the killer, the killer gains less points and the victim loses also less points. (victimPoints / killerPoints) * points restricted by the min and max multipliers

dynamic-death-points-max-multiplier

Possible values: float

When dynamic-death-points is true this will be the max multiplier for a point change. When a low pointed kills a high pointed this wont let them gain more points than the kill point * max-multiplier

dynamic-death-points-min-multiplier

Possible values: float

When dynamic-death-points is true this will be the minmultiplier for a point change. When a high pointed kills a low pointed this wont let them lose less points than the death point * min-multiplier

PointSettings

Here you can set the point changes for any event supported by K4-System. If you set a value to 0, the points for that event is going to be disabled totally.