Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case "write":
- {
- string title = m.GetString(0); // If you want to, use this :P
- string text = m.GetString(1); // Actual pm message
- string player = title.Split(' ')[1]; // Player who pm'd you
- if(title.Contains("> you"))
- {
- if(Regex.IsMatch(text.Substring(0, 1), @"\.|\!|\~|\$|\:"))
- {
- var prefix = text.Substring(0, 1);
- var cmd = text.ToLower().Split(' ');
- //TODO: Add commands using "if(cmd[0].Equals(prefix + "command")) {}"
- }
- }
- }
- break;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement