Beispiel #1
0
        public string Execute()
        {
            var list = ServerPlayerAccessSystem.GetBlackList().ToList();

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

            return("Blacklisted players:"
                   + Environment.NewLine
                   + list.GetJoinedString(Environment.NewLine));
        }
 private static IEnumerable <string> GetCharacterNameSuggestions(string startsWith)
 {
     return(ServerPlayerAccessSystem.GetBlackList());
 }