I've wrote a command who searches a website for a decent word.
To avoid long, bad explanations, take a look at the code:
Code: Select all
string word = cmd.NextAll();
string webpageData;
using (System.Net.WebClient webClient = new System.Net.WebClient())
webpageData = webClient.DownloadString("http://www.cnn.com");
if (webpageData.Contains(word))
{
player.Message("Positive");
return;
}
else
{
player.Message("Negative");
return;
}
What I'm trying to make, is a very simple auto-rank system, whom promotes you to a preset rank if your Minecraft username is on the page.
Which means that you may link it to search a member list, like the one on these forums, and promote you if you registered.
However, the promoting isn't hard to fix.
What's my problem, is the member lists, which is sorted out in a table.
It doesn't accept the input, which is the word (username), whom is sorted in a table.
I guess, because it's sorted in a table :p
Are there any ways to solve this?
Thanks for your help,
-BobKare