Campofinale/Campofinale/Commands/Handlers/CommandHelp.cs
2025-03-07 20:49:49 +01:00

23 lines
720 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Campofinale.Commands.Handlers
{
public static class CommandHelp
{
[Server.Command("help", "Show list of commands", false)]
public static void Handle(Player sender, string cmd, string[] args, Player target)
{
CommandManager.SendMessage(sender, "List of possible commands: ");
foreach (var command in CommandManager.s_notifyReqGroup)
{
CommandManager.SendMessage(sender, $"/{command.Key} - {command.Value.Item1.desc} (Require Target: {command.Value.Item1.requiredTarget})");
}
}
}
}