public static SpringieCommand Spawn(string modName, string title, string password) { var ret = new SpringieCommand { Command = String.Format("!spawn mod={0}", modName), Reply = "I'm here! Ready to serve you! Join me!", }; if (!String.IsNullOrEmpty(title)) ret.Command += ",title=" + title; if (!String.IsNullOrEmpty(password)) ret.Command += ",password=" + password; return ret; }
public static SpringieCommand Spawn(string modName, string title, string password) { var ret = new SpringieCommand { Command = String.Format("!spawn mod={0}", modName), Reply = "I'm here! Ready to serve you! Join me!", }; if (!String.IsNullOrEmpty(title)) { ret.Command += ",title=" + title; } if (!String.IsNullOrEmpty(password)) { ret.Command += ",password=" + password; } return(ret); }