From aab532f47550944779e83ee01d9be5ebc0e4232a Mon Sep 17 00:00:00 2001 From: GJ Date: Mon, 14 Jan 2013 00:27:16 -0500 Subject: [PATCH] Remove useless else. --- .../com/gmail/nossr50/util/Anniversary.java | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/util/Anniversary.java b/src/main/java/com/gmail/nossr50/util/Anniversary.java index 60fe964d1..fa218372e 100644 --- a/src/main/java/com/gmail/nossr50/util/Anniversary.java +++ b/src/main/java/com/gmail/nossr50/util/Anniversary.java @@ -85,23 +85,23 @@ 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!"); - final int firework_amount = 10; - for (int i = 0; i < firework_amount; i++) { - int delay = (int) (Math.random() * 3) + 4; - Bukkit.getScheduler().scheduleSyncDelayedTask(mcMMO.p, new Runnable() { - @Override - public void run() { - spawnFireworks((Player) sender); - } - }, 20 * delay); - } - } - hasCelebrated.add(sender.getName()); } + + 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!"); + final int firework_amount = 10; + for (int i = 0; i < firework_amount; i++) { + int delay = (int) (Math.random() * 3) + 4; + Bukkit.getScheduler().scheduleSyncDelayedTask(mcMMO.p, new Runnable() { + @Override + public void run() { + spawnFireworks((Player) sender); + } + }, 20 * delay); + } + } + hasCelebrated.add(sender.getName()); } }