Skip to content

Commit

Permalink
Merge branch 'main' of github.com:roflmuffin/CounterStrikeSharp into …
Browse files Browse the repository at this point in the history
…main
  • Loading branch information
roflmuffin committed Nov 9, 2023
2 parents 82c92f5 + 19a0923 commit d4a2ae6
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions managed/CounterStrikeSharp.API/Core/GlobalContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ public void UnloadAllPlugins()

private PluginContext? FindPluginByIdOrName(string query)
{

PluginContext? plugin = null;
if (Int32.TryParse(query, out var pluginNumber))
{
Expand All @@ -180,9 +180,12 @@ public void UnloadAllPlugins()

private void OnCSSCommand(CCSPlayerController? caller, CommandInfo info)
{
var currentVersion = Api.GetVersion();

Utilities.ReplyToCommand(caller, " CounterStrikeSharp was created and is maintained by Michael \"roflmuffin\" Wilson.\n" +
" Counter-Strike Sharp uses code borrowed from SourceMod, Source.Python, FiveM, Saul Rennison and CS2Fixes.\n" +
" See ACKNOWLEDGEMENTS.md for more information.", true);
" See ACKNOWLEDGEMENTS.md for more information.\n" +
" Current API Version: " + currentVersion, true);
return;
}

Expand All @@ -206,7 +209,7 @@ private void OnCSSPluginCommand(CCSPlayerController? caller, CommandInfo info)
sb.Append(plugin.Description);
}
Utilities.ReplyToCommand(caller, sb.ToString(), true);

}

break;
Expand All @@ -231,7 +234,7 @@ private void OnCSSPluginCommand(CCSPlayerController? caller, CommandInfo info)
{
path = Path.Combine(rootDir.FullName, path);
}

try
{
LoadPlugin(path);
Expand All @@ -240,7 +243,7 @@ private void OnCSSPluginCommand(CCSPlayerController? caller, CommandInfo info)
{
Console.WriteLine($"Failed to load plugin {path} with error {e}");
}

break;
}

Expand Down

0 comments on commit d4a2ae6

Please sign in to comment.