player.sendMessage("§cYou already have this user's flair.§r");
returntrue;
}
if(args.length>0)
p.UserName=args[0];
else
p.UserName=p.UserNames.get(0);
player.sendMessage("§bObtaining flair...");
p.Working=true;
Timertimer=newTimer();
PlayerJoinTimerTasktt=newPlayerJoinTimerTask(){
@Override
publicvoidrun(){
try{
PluginMain.Instance.DownloadFlair(mp);
}catch(Exceptione){
e.printStackTrace();
player.sendMessage("Sorry, but an error occured while trying to get your flair. Please contact a mod.");
mp.Working=false;
return;
}
if(mp.FlairState.equals(FlairStates.Commented)){
player.sendMessage("Sorry, but your flair isn't recorded. Please ask an admin to set it for you. Also, prepare a comment on /r/thebutton, if possible.");
mp.Working=false;
return;
}
Stringflair=mp.GetFormattedFlair();
mp.FlairState=FlairStates.Accepted;
PluginMain.ConfirmUserMessage(mp);
player.sendMessage("§bYour flair has been set:§r "+flair);