mirror of
https://github.com/rafi1212122/PemukulPaku
synced 2025-12-13 10:14:33 +01:00
25 lines
692 B
C#
25 lines
692 B
C#
namespace PemukulPaku.GameServer.Commands
|
|
{
|
|
|
|
[CommandHandler("help", "Shows the help page", CommandType.All)]
|
|
internal class HelpCommand : Command
|
|
{
|
|
public override void Run(Session session, string[] args)
|
|
{
|
|
// TODO: Implement online help
|
|
base.Run(session, args);
|
|
}
|
|
|
|
public override void Run(string[] args)
|
|
{
|
|
foreach (Command Cmd in CommandFactory.Commands)
|
|
{
|
|
Console.ForegroundColor= ConsoleColor.White;
|
|
Console.WriteLine(" " + Cmd.Name);
|
|
Console.ResetColor();
|
|
c.Trail(Cmd.Description);
|
|
}
|
|
}
|
|
}
|
|
}
|