Skip to content

Commit

Permalink
馃敘 max give amount for skulls is 36 now
Browse files Browse the repository at this point in the history
Took 2 minutes
  • Loading branch information
kiranhart committed Jun 28, 2023
1 parent fe6c032 commit 17ba4d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/ca/tweetzy/skulls/commands/GiveCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ protected ReturnType execute(CommandSender sender, String... args) {
return ReturnType.FAIL;
}

final int amount = args.length == 3 ? NumberHelper.tryInt(args[2], 1) : 1;
int amount = args.length == 3 ? NumberHelper.tryInt(args[2], 1) : 1;
if (amount > 36) amount = 36;

Skull skull = isRandomHead ? Skulls.getSkullManager().getRandomSkull() : Skulls.getSkullManager().getSkull(Integer.parseInt(args[1]));

Expand Down

0 comments on commit 17ba4d0

Please sign in to comment.