mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-12-26 02:28:03 +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())) {
|
if (hasCelebrated.contains(sender.getName())) {
|
||||||
return;
|
return;
|
||||||
} else {
|
}
|
||||||
|
|
||||||
if (getDateRange(day.getTime(), anniversaryStart.getTime(), anniversaryEnd.getTime())) {
|
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 + "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!");
|
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());
|
hasCelebrated.add(sender.getName());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
private boolean getDateRange(Date date, Date start, Date end) {
|
private boolean getDateRange(Date date, Date start, Date end) {
|
||||||
return !(date.before(start) || date.after(end));
|
return !(date.before(start) || date.after(end));
|
||||||
|
Loading…
Reference in New Issue
Block a user