Skip to content

Commit

Permalink
Added message for when cooldown finishes.
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasQTruong committed Jan 7, 2024
1 parent b80a809 commit 52c2d46
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -268,11 +268,15 @@ public void doBreed() {
if (isVIP) {
scheduler.schedule(() -> {
breedSessions.remove(breederUUID);
Text noCooldownMessage = Text.literal("Breeding is now available.").formatted(Formatting.GREEN);
breeder.sendMessage(noCooldownMessage);
}, VeryScuffedCobblemonBreedingConfig.VIP_COOLDOWN_IN_MINUTES, TimeUnit.MINUTES);
} else {
// Player does not have VIP status.
scheduler.schedule(() -> {
breedSessions.remove(breederUUID);
Text noCooldownMessage = Text.literal("Breeding is now available.").formatted(Formatting.GREEN);
breeder.sendMessage(noCooldownMessage);
}, VeryScuffedCobblemonBreedingConfig.COOLDOWN_IN_MINUTES, TimeUnit.MINUTES);
}
timeBred = System.currentTimeMillis();
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ luckperms_version=5.4


mod_id=veryscuffedcobblemonbreeding
mod_version=1.0.7
mod_version=1.0.8
snapshot=false


Expand Down

0 comments on commit 52c2d46

Please sign in to comment.