Beispiel #1
0
 public static void ExecFileFor(Character user)
 {
     if (RealmCommandHandler.AutoExecDir == null)
     {
         return;
     }
     RealmCommandHandler.ExecFileFor(
         Path.Combine(RealmCommandHandler.AutoExecDir, "Chars/" + user.Account.Name + ".txt"), user);
 }
Beispiel #2
0
 public override void ExecFile(string filename, CmdTrigger <RealmServerCmdArgs> trigger)
 {
     if (trigger.Args.Character != null)
     {
         if (File.Exists(filename))
         {
             RealmCommandHandler.ExecFileFor(filename, trigger.Args.Character, trigger);
         }
         else
         {
             trigger.Reply("File to execute does not exist: " + filename);
         }
     }
     else
     {
         base.ExecFile(filename, trigger);
     }
 }
Beispiel #3
0
 public static void ExecFileFor(string file, Character user)
 {
     RealmCommandHandler.ExecFileFor(file, user,
                                     (CmdTrigger <RealmServerCmdArgs>) new IngameCmdTrigger(new RealmServerCmdArgs((IUser)user, false,
                                                                                                                   (IGenericChatTarget)null)));
 }
Beispiel #4
0
 public static void ExecAllCharsFileFor(Character user)
 {
     RealmCommandHandler.ExecFileFor(RealmCommandHandler.AutoExecDir + RealmCommandHandler.AutoExecAllCharsFile,
                                     user);
 }