Skip to content

Commit

Permalink
correct lambda argument in some Requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
HSGamer committed Oct 31, 2023
1 parent 6d8bd02 commit 599f4e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ protected Result checkConverted(UUID uuid, Duration value) {
if (getCooldown(uuid) <= 0) {
return Result.success(uuid1 -> {
if (!value.isNegative() && !value.isZero()) {
cooldownMap.put(uuid, Instant.now().plus(value));
cooldownMap.put(uuid1, Instant.now().plus(value));
}
});
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ protected Result checkConverted(UUID uuid, Integer value) {
return Result.fail();
}
return successConditional(uuid1 -> {
Player player1 = Bukkit.getPlayer(uuid);
Player player1 = Bukkit.getPlayer(uuid1);
if (player1 == null) {
return;
}
Expand Down

0 comments on commit 599f4e1

Please sign in to comment.