mirror of
https://git.battle-of-pip.de/root/vpr-mitarbeiterverwaltung.git
synced 2025-06-21 00:03:18 +02:00
26 lines
661 B
C#
26 lines
661 B
C#
using System.Net.Sockets;
|
|
using DX86;
|
|
|
|
namespace Server.Commands;
|
|
|
|
public class HelpCommand : ICommand
|
|
{
|
|
public string Executor { get; }
|
|
|
|
public HelpCommand()
|
|
{
|
|
Executor = "help";
|
|
}
|
|
public string Exec(string[] args, TcpClient? client = null, TcpServer? clientSocket = null)
|
|
{
|
|
return
|
|
"Available commands:\n" +
|
|
"1. help - Show this help message\n" +
|
|
"2. exit - Exit the server\n" +
|
|
"3. user - User management\n" +
|
|
"4. settings - Server settings\n" +
|
|
"5. start - Start the server\n" +
|
|
"6. stop - Stop the server\n"
|
|
;
|
|
}
|
|
} |