|
|
|
@ -77,9 +77,10 @@ if ($database->has('claimedcodes', ["AND" => ['code' => $VARS["code"], 'accounti
|
|
|
|
|
$player->stats->updateStat(PlayerStats::SCANS, 1);
|
|
|
|
|
$player->save();
|
|
|
|
|
|
|
|
|
|
$itemname = $database->get('items', 'itemname', ['itemid' => $itemid]);
|
|
|
|
|
$iteminfo = $database->get('items', ['itemname (name)', 'icon', 'color'], ['itemid' => $itemid]);
|
|
|
|
|
|
|
|
|
|
$returndata["item"] = $itemname;
|
|
|
|
|
$returndata["item"] = $iteminfo["name"];
|
|
|
|
|
$returndata["itemdata"] = ["icon" => $iteminfo["icon"], "color" => $iteminfo["color"]];
|
|
|
|
|
|
|
|
|
|
$returndata['messages'][] = $Strings->build("You found one {item}", ["item" => $itemname], false);
|
|
|
|
|
}
|
|
|
|
|