mirror of
https://github.com/EggLinks/DanhengServer-OpenSource.git
synced 2026-01-03 12:46:03 +08:00
20 lines
626 B
C#
20 lines
626 B
C#
namespace EggLink.DanhengServer.Command.Cmd
|
|
{
|
|
[CommandInfo("mission", "Manage the missions", "/mission <pass>")]
|
|
public class CommandMission : ICommand
|
|
{
|
|
[CommandMethod("0 pass")]
|
|
public void PassRunningMission(CommandArg arg)
|
|
{
|
|
if (arg.Target == null)
|
|
{
|
|
arg.SendMsg("Player not found.");
|
|
return;
|
|
}
|
|
var mission = arg.Target!.Player!.MissionManager!;
|
|
mission.GetRunningSubMissionIdList().ForEach(mission.FinishSubMission);
|
|
arg.SendMsg("Pass all running missions.");
|
|
}
|
|
}
|
|
}
|