mirror of
https://github.com/rafi1212122/PemukulPaku
synced 2025-12-14 13:24:44 +01:00
yes command yesyes
This commit is contained in:
24
GameServer/Commands/HelpCommand.cs
Normal file
24
GameServer/Commands/HelpCommand.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user