Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static Dictionary<int, player> queue = new Dictionary<int, player>
- ();
- public static Dictionary<int, player> Playing = new Dictionary<int,
- player>();
- if (Regex.IsMatch(m.GetString(1).Substring(0, 1), @".|!|?|-|+"))
- {
- var cmdprefix = m.GetString(1).Substring(0, 1); //Set the command prefix
- var words = m.GetString(1).ToLower().Split(' '); //Split the spacebar into words.
- if (words[0].StartsWith(cmdprefix + "queue")); //If words starts with the prefix and "queue"
- {
- queue.Add(m.GetInt(0), new player()
- {
- username = m.GetString(1), //Nickname of player
- });
- }
- if(Playing.Count == 0)
- {
- }
- }
Add Comment
Please, Sign In to add comment