if (request[0].matches("\\d+")) {
id = Integer.valueOf(request[0]);
} else {
Item item = target.getServer().giveAliasList.getItemId(request[0]);
if (item == null) {
Suggestion suggestion = target.getServer().giveAliasList.findWithLevenshtein(request[0]);
if (suggestion.distance > 4 || suggestion.distance * 2 > request[0].length()) {
tError("Can't find item %s", request[0]);
return;
}
item = target.getServer().giveAliasList.getItemId(suggestion.name);