public static void StopWarriorScan() { LW_DeathEvent.Unsubscribe(onLW_Death); LW_DevirtEvent.Unsubscribe(onLW_Devirt); LW_FrontierEvent.Unsubscribe(onLW_Frontier); LW_HealEvent.Unsubscribe(onLW_Heal); LW_HurtEvent.Unsubscribe(onLW_Hurt); LW_MoveEvent.Unsubscribe(onLW_Move); LW_TranslationEvent.Unsubscribe(onLW_translation); LW_XanaficationEvent.Unsubscribe(onLW_Xanafication); }
protected override void DoCommand(string[] args) { LyokoWarrior warrior = LyokoWarriors.GetByName(args[0].ToLower()); if (warrior == null) { throw new CommandException(this, "Invalid warrior!"); return; } LW_TranslationEvent.Call(warrior, new APILocation("Brazil")); Output(warrior.WarriorName + " translated."); }