diff options
| author | TrueDoctor <d-kobert@web.de> | 2018-09-27 00:31:30 +0200 |
|---|---|---|
| committer | TrueDoctor <d-kobert@web.de> | 2018-09-27 00:31:30 +0200 |
| commit | cd4785347eb641a0fab1a7157d701dd5d8c3259f (patch) | |
| tree | 30ffcea7337231f84c47d45316babf45c24c3682 /DSACore/Commands | |
| parent | 19bf37de7642ae8cdefd8fc6b4fadac3ac96ea9b (diff) | |
hoked the command handler up to the web api
modified file locations
Diffstat (limited to 'DSACore/Commands')
| -rw-r--r-- | DSACore/Commands/CommandHandler.cs | 4 | ||||
| -rw-r--r-- | DSACore/Commands/NpcCommands.cs | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/DSACore/Commands/CommandHandler.cs b/DSACore/Commands/CommandHandler.cs index 0eb59e6..446f99e 100644 --- a/DSACore/Commands/CommandHandler.cs +++ b/DSACore/Commands/CommandHandler.cs @@ -22,7 +22,7 @@ namespace DSACore.Commands case "man": case "hilfe": case "h": - return Help.ShowHelp(cmd.CmdText); + return Help.ShowHelp(cmd.CmdTexts.ToArray()); case "le": case "leben": case "lp": @@ -94,7 +94,7 @@ namespace DSACore.Commands return res; } - public static string CheckCommand(string name, CommandTypes command, string waffe, int erschwernis = 0) + private static string CheckCommand(string name, CommandTypes command, string waffe, int erschwernis = 0) { var chr = Dsa.GetCharacter(0); throw new NotImplementedException("access char by id ore name and group id"); diff --git a/DSACore/Commands/NpcCommands.cs b/DSACore/Commands/NpcCommands.cs index 1fe8e2e..50ea966 100644 --- a/DSACore/Commands/NpcCommands.cs +++ b/DSACore/Commands/NpcCommands.cs @@ -24,14 +24,14 @@ namespace DSACore.Commands } - public static string Random(ulong id, string npcName, int mean = 9, int stDv = 1) + private static string Random(ulong id, string npcName, int mean = 9, int stDv = 1) { throw new NotImplementedException(); Dsa.Chars.Add(new Npc(npcName, mean, stDv)); return $"{npcName} wurde zufällig generiert"; } - public static string Copy(ulong id, string npcName, string source, int stDv = 1) + private static string Copy(ulong id, string npcName, string source, int stDv = 1) { if (Dsa.Chars.Exists(x => x.Name.Equals(npcName))) { |
