minicl55

Untitled

Oct 14th, 2014
284
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. URL url = new URL("http://chipperyman.com/civ/verify.php?user=" + CommandSender.getName() + "&code=" + verifyCode); //VerifyCode would be the argument in the command, I didn't bother to include that because we both know what looking for an argument looks like
  2. Scanner s = new Scanner(url.openStream());
  3. String response = s.NextLine();
  4. if (response.equals("yes")) {
  5. player.sendMessage(CommandSender.getName(), "Congratulations, you have successfully verified your account!");
  6. }
  7. else if (response.equals("yes")) {
  8. player.sendMessage(CommandSender.getName(), "Invalid confirmation code, please try again");
  9. }
  10. else {
  11. player.sendMessage(CommandSender.getName(), "Unable to reach the verification servers, please try again later. There is nothing you can do to fix this, it's a server-side issue.");
  12. }
Advertisement
Add Comment
Please, Sign In to add comment