You'll want to do this backwards:
Code:
if (plugin::check_handin(\%itemcount, 13005 => 1) && ($ulevel > 14)) {
Should be:
Code:
if ($ulevel > 14 && plugin::check_handin(\%itemcount, 13005 => 1)) {
The reason being, you can meet the check_handin but fail the level check and the NPC will eat your items. So you want to check other criteria first.