From cd4785347eb641a0fab1a7157d701dd5d8c3259f Mon Sep 17 00:00:00 2001 From: TrueDoctor Date: Thu, 27 Sep 2018 00:31:30 +0200 Subject: hoked the command handler up to the web api modified file locations --- DSACore/Commands/CommandHandler.cs | 4 ++-- DSACore/Commands/NpcCommands.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'DSACore/Commands') 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))) { -- cgit v1.3.1