Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
- Scanner s = new Scanner(url.openStream());
- String response = s.NextLine();
- if (response.equals("yes")) {
- player.sendMessage(CommandSender.getName(), "Congratulations, you have successfully verified your account!");
- }
- else if (response.equals("yes")) {
- player.sendMessage(CommandSender.getName(), "Invalid confirmation code, please try again");
- }
- else {
- 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.");
- }
Advertisement
Add Comment
Please, Sign In to add comment