I was trying to simplify my skript since it took up 75 lines, and I was making progress until I got stumped. I don't know what to do in this situation:
If you don't see the problem, there are two if:'s on the same indent. Is there any work-around, or is the code fine like this? Please let me know.
Code:
else:
set {_amount} to min(arg-1, 6)
loop {_amount} times:
add player's tool to player's inventory
if {_amount} is 1:
send action bar "&aSuccessfully duped item." to player
else:
send action bar "&aSuccessfully duped %{_amount}% items." to player
if player has permission "everyitem.invest.dupe":
remove 100$ from player's balance
else:
remove 250$ from player's balance
If you don't see the problem, there are two if:'s on the same indent. Is there any work-around, or is the code fine like this? Please let me know.