mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-23 05:36:46 +01:00
Remove useless else.
This commit is contained in:
parent
00ee75bb29
commit
aab532f475
@ -85,7 +85,8 @@ public class Anniversary {
|
||||
|
||||
if (hasCelebrated.contains(sender.getName())) {
|
||||
return;
|
||||
} else {
|
||||
}
|
||||
|
||||
if (getDateRange(day.getTime(), anniversaryStart.getTime(), anniversaryEnd.getTime())) {
|
||||
sender.sendMessage(ChatColor.BLUE + "Happy 2 Year Anniversary! In honor of all of");
|
||||
sender.sendMessage(ChatColor.BLUE + "nossr50's work and all the devs, here's a firework show!");
|
||||
@ -103,7 +104,6 @@ public class Anniversary {
|
||||
hasCelebrated.add(sender.getName());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private boolean getDateRange(Date date, Date start, Date end) {
|
||||
return !(date.before(start) || date.after(end));
|
||||
|
Loading…
Reference in New Issue
Block a user