try {
if (reward.contains(":")) {
String[] expl = reward.split(":");
pi.addItem(new ItemStack(Integer.parseInt(expl[0]), f.getInt("quizDiff." + quizWinners.get(pName) + "." + reward), (short) 0, Byte.parseByte(expl[1])));
} else {
pi.addItem(new ItemStack(Integer.parseInt(reward), f.getInt("quizDiff." + quizWinners.get(pName) + "." + reward)));
}
} catch (Throwable e) {
// unable to add item into inventory, inform server owner
LogHelper.logSevere("[CommandsEX] " + _("quizUnableToAddItem", "") + reward + ":" + f.getInt("quizDiff." + quizWinners.get(pName) + "." + reward));
LogHelper.logDebug("Message: " + e.getMessage() + ", cause: " + e.getCause());