}
private boolean doLogCut(final Player player, final InvItem knife,
final InvItem log, int times) {
final int retries = --times;
final ItemLogCutDef cutDef = EntityHandler.getItemLogCutDef(log.id);
if (!Config.members) {
player.getActionSender().sendMessage(
"This feature is not avaliable in f2p");
return true;
}
if (cutDef == null) {
return false;
}
Instance.getDelayedEventHandler().add(new MiniEvent(player) {
public void action() {
String[] options = new String[] { "Arrow shafts", "Shortbow",
"Longbow", "Cancel" };
owner.setMenuHandler(new MenuHandler(options) {
public void handleReply(final int option, final String reply) {
InvItem result;
int reqLvl, exp;
switch (option) {
case 0:
result = new InvItem(280, cutDef.getShaftAmount());
reqLvl = cutDef.getShaftLvl();
exp = cutDef.getShaftExp();
break;
case 1:
result = new InvItem(cutDef.getShortbowID(), 1);
reqLvl = cutDef.getShortbowLvl();
exp = cutDef.getShortbowExp();
break;
case 2:
result = new InvItem(cutDef.getLongbowID(), 1);
reqLvl = cutDef.getLongbowLvl();
exp = cutDef.getLongbowExp();
break;
default:
return;
}
if (owner.getCurStat(9) < reqLvl) {