您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

30 行
718 B

using System.Linq;
using System.Collections.Generic;
using UnityEngine;
using Console;
using GameplayIngredients;
[AutoRegisterConsoleCommand]
public class SendMessageCommand : IConsoleCommand
{
public string name => "send";
public string summary => "sends a message through the messager system";
public string help => "usage: send <message>";
public IEnumerable<Console.Console.Alias> aliases => null;
public void Execute(string[] args)
{
if(args.Length > 0)
{
string full = args.Aggregate((i, j) => i + " " + j);
Messager.Send(full);
}
else
{
Console.Console.Log(name, help, LogType.Warning);
}
}
}