mirror of
https://github.com/daffyyyy/CS2-SimpleAdmin.git
synced 2026-02-18 02:41:55 +00:00
Alias for css_disconnected
- css_last - css_lastX (X = value from config)
This commit is contained in:
@@ -112,6 +112,9 @@ public partial class CS2_SimpleAdmin : BasePlugin, IPluginConfig<CS2_SimpleAdmin
|
||||
PluginInfo.ShowAd(ModuleVersion);
|
||||
if (Config.EnableUpdateCheck)
|
||||
Task.Run(async () => await PluginInfo.CheckVersion(ModuleVersion, _logger));
|
||||
|
||||
AddCommand($"css_last{Config.OtherSettings.DisconnectedPlayersHistoryCount}",
|
||||
"Show last x disconnected players", OnDisconnectedCommand);
|
||||
}
|
||||
|
||||
private static TargetResult? GetTarget(CommandInfo command)
|
||||
|
||||
@@ -477,6 +477,7 @@ public partial class CS2_SimpleAdmin
|
||||
}
|
||||
|
||||
[ConsoleCommand("css_disconnected")]
|
||||
[ConsoleCommand("css_last")]
|
||||
[CommandHelper(whoCanExecute: CommandUsage.CLIENT_ONLY)]
|
||||
[RequiresPermissions("@css/kick")]
|
||||
public void OnDisconnectedCommand(CCSPlayerController? caller, CommandInfo command)
|
||||
|
||||
Reference in New Issue
Block a user