Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string command = player.LastChat;
- /* Exit if text is not prefixed with "/", "!", "@", or "?" */
- if (!plugin.IsCommand(command))
- return false;
- command = plugin.ExtractCommand(command);
- List<String> words = new List<String>(Regex.Split(command.Trim(), @"\s+"));
- if (words[0].ToLower().StartsWith("killme"))
- {
- plugin.ServerCommand("admin.killPlayer", player.Name);
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement