Remove useless else.

This commit is contained in:
GJ 2013-01-14 00:27:16 -05:00
parent 00ee75bb29
commit aab532f475

View File

@ -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));