returnnewCommandResult(CommandResultType.FAILURE,"There is no such user.");
}elseif(pm.size()>1){
returnnewCommandResult(CommandResultType.FAILURE,"Theres more than 1 user with the same name. Please use !desp ID to get the ID of the user you want to report.");
}else{
SID=pm.get(0).getUser().getId();
ID=Long.parseLong(SID);
}
}
if(success==true){
SID=Long.toString(ID);
}
if(author.getId().equals(SID)){
returnnewCommandResult(CommandResultType.FAILURE,"You cannot report yourself you dumbo :stuck_out_tongue:");