Merge pull request #34 from daffyyyy/enhancement/website-knife-choosing

Choosing knife on website
This commit is contained in:
Nereziel
2023-11-16 00:39:19 +01:00
committed by GitHub
4 changed files with 111 additions and 15 deletions

View File

@@ -298,6 +298,8 @@ public class WeaponPaints : BasePlugin, IPluginConfig<WeaponPaintsConfig>
{
commandCooldown[playerIndex] = DateTime.UtcNow;
Task.Run(async () => await GetWeaponPaintsFromDatabase(playerIndex));
if (Config.Additional.KnifeEnabled)
Task.Run(async () => await GetKnifeFromDatabase(playerIndex));
if (!string.IsNullOrEmpty(Config.Messages.SuccessRefreshCommand)) {
temp = $"{Config.Prefix} {Config.Messages.SuccessRefreshCommand}";
player.PrintToChat(ReplaceTags(temp));