v1.2.2.b4

- #### General:
    - ###### Updated the GitHub source code to implement the changes introduced in merge request (https://github.com/Juzlus/jRandomSkills/pull/32).

- #### Skill improvements:
    - ###### Ninja:
        - ###### Removed debug chat messages that were used for testing.
This commit is contained in:
Juzlus 2026-06-29 16:10:59 +02:00
parent 36bd85ef06
commit 42e5453fd4
25 changed files with 212 additions and 268 deletions

View file

@ -2,7 +2,6 @@ using CounterStrikeSharp.API;
using CounterStrikeSharp.API.Core;
using CounterStrikeSharp.API.Modules.Admin;
using CounterStrikeSharp.API.Modules.Commands;
using CounterStrikeSharp.API.Modules.Commands.Targeting;
using CounterStrikeSharp.API.Modules.Entities.Constants;
using CounterStrikeSharp.API.Modules.Utils;
using src.menu;
@ -24,7 +23,7 @@ namespace src.command
public static void Load()
{
config = Config.LoadedConfig;
if (config == null || config == null) return;
if (config == null) return;
lock (setLock)
{
@ -201,7 +200,7 @@ namespace src.command
private static void ChangeMap(CommandInfo command)
{
string map = command.GetArg(1).ToLower();
string map = command.GetArg(1).ToLowerInvariant();
if (string.IsNullOrEmpty(map))
{
@ -549,7 +548,7 @@ namespace src.command
if (langInfo.IsoCodes.Contains(newLangCode))
fileName = langInfo.FileName;
if (Localization.HasTranslation(newLangCode))
fileName = newLangCode.ToLower();
fileName = newLangCode.ToLowerInvariant();
Localization.ChangePlayerLanguage(player, fileName);
}