Guest User

Untitled

a guest
Jun 23rd, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. public static Dictionary<int, player> queue = new Dictionary<int, player>
  2. ();
  3. public static Dictionary<int, player> Playing = new Dictionary<int,
  4. player>();
  5.  
  6. if (Regex.IsMatch(m.GetString(1).Substring(0, 1), @".|!|?|-|+"))
  7. {
  8. var cmdprefix = m.GetString(1).Substring(0, 1); //Set the command prefix
  9. var words = m.GetString(1).ToLower().Split(' '); //Split the spacebar into words.
  10. if (words[0].StartsWith(cmdprefix + "queue")); //If words starts with the prefix and "queue"
  11. {
  12. queue.Add(m.GetInt(0), new player()
  13. {
  14. username = m.GetString(1), //Nickname of player
  15. });
  16. }
  17. if(Playing.Count == 0)
  18. {
  19.  
  20. }
  21. }
Add Comment
Please, Sign In to add comment