Skip to content
This repository was archived by the owner on Mar 15, 2024. It is now read-only.

Commit 20cc2b8

Browse files
committed
feat(example): reg exists command
1 parent ae7d82d commit 20cc2b8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

PluginExample/Example.cs

+4
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ public override void OnAllLoad()
4343
public override void OnShutdown()
4444
=> _sourceSharp.LogMessage("plugin unloaded");
4545

46+
[ClientConsoleCommand("say", "Say Command")]
47+
private void TestHookSayCommand(ConsoleCommand command, GamePlayer? player)
48+
=> _sourceSharp.LogMessage("say command executed: " + command.ArgString);
49+
4650
[ServerConsoleCommand("ss_s_test", "测试命令")]
4751
private void TestServerCommand(ConsoleCommand command)
4852
=> _sourceSharp.LogMessage("test command executed: " + command.ArgString);

0 commit comments

Comments
 (0)