public string Execute()
        {
            var list = ServerPlayerAccessSystem.GetWhiteList().ToList();

            if (list.Count == 0)
            {
                return("Whitelist is empty");
            }

            return("Whitelisted players:"
                   + Environment.NewLine
                   + list.GetJoinedString(Environment.NewLine));
        }
Example #2
0
 private static IEnumerable <string> GetCharacterNameSuggestions(string startsWith)
 {
     return(ServerPlayerAccessSystem.GetWhiteList());
 }