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,23 +85,23 @@ public class Anniversary {
|
|||||||
|
|
||||||
if (hasCelebrated.contains(sender.getName())) {
|
if (hasCelebrated.contains(sender.getName())) {
|
||||||
return;
|
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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user