Skip to content

Commit

Permalink
Expose RegisterPlayerCommand to Mods
Browse files Browse the repository at this point in the history
- Shares RegisterPlayerCommand via HelperMethods
  • Loading branch information
data-bomb committed Mar 4, 2024
1 parent f8b70d6 commit 5e9cb64
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Si_AdminMod/HelperMethods.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
Silica Admin Mod
Copyright (C) 2023 by databomb
Copyright (C) 2023-2024 by databomb
* License *
This program is free software: you can redistribute it and/or modify
Expand Down Expand Up @@ -44,6 +44,11 @@ public static void RegisterAdminCommand(String adminCommand, CommandCallback adm
SiAdminMod.RegisterAdminCommand(adminCommand, adminCallback, adminPower);
}

public static void RegisterPlayerCommand(String playerCommand, CommandCallback commandCallback, bool hideFromChat)
{
SiAdminMod.RegisterPlayerCommand(playerCommand, commandCallback, hideFromChat);
}

public static void ReplyToCommand(params string[] messages)
{
Player broadcastPlayer = FindBroadcastPlayer();
Expand Down

0 comments on commit 5e9cb64

Please sign in to comment.