From 5e9cb6454c84839cf46ee573376507b6aae61c06 Mon Sep 17 00:00:00 2001 From: data-bomb Date: Sun, 3 Mar 2024 17:53:30 -0800 Subject: [PATCH] Expose RegisterPlayerCommand to Mods - Shares RegisterPlayerCommand via HelperMethods --- Si_AdminMod/HelperMethods.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Si_AdminMod/HelperMethods.cs b/Si_AdminMod/HelperMethods.cs index b3c9e77..f2250e2 100644 --- a/Si_AdminMod/HelperMethods.cs +++ b/Si_AdminMod/HelperMethods.cs @@ -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 @@ -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();