msg("You do not have a discord account linked to your minecraft account, please verify the manual way.",ChatColor.RED);
returntrue;
}
if(args.length<1)
{
Stringcode="";
Randomrandom=newRandom();
for(inti=0;i<10;i++)
{
code+=random.nextInt(10);
}
plugin.dc.VERIFY_CODES.add(code);
plugin.dc.bot.getUserById(admin.getDiscordID()).openPrivateChannel().complete().sendMessage("A user with the ip `"+Ips.getIp(playerSender)+"` has sent a verification request. Please run the following in-game command: `/verify "+code+"`").complete();
msg("A verification code has been sent to your account, please copy the code and run /verify <code>",ChatColor.GREEN);
}
else
{
Stringcode=args[0];
if(!plugin.dc.VERIFY_CODES.contains(code))
{
msg("You have entered an invalid verification code",ChatColor.RED);
returntrue;
}
else
{
plugin.dc.VERIFY_CODES.remove(code);
FUtil.bcastMsg(playerSender.getName()+" has verified themself!",ChatColor.GOLD);