Skip to content

Commit

Permalink
fix: cooldown not applied after random fail
Browse files Browse the repository at this point in the history
  • Loading branch information
Maloschnikow committed Oct 14, 2024
1 parent 2e8a575 commit d907e30
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ public void run() {
else {
player.sendRichMessage(this.TELEPORT_RANDOM_FAIL_MSG);
if(this.SOUNDS_ENABLED) { player.playSound(player, this.TELEPORT_CANCELLED_SOUND, 1.0f, 1.0f); }
playerLastUse.put(uuid, Long.valueOf(System.currentTimeMillis()));
}
return Command.SINGLE_SUCCESS;
}
Expand Down

0 comments on commit d907e30

Please sign in to comment.