mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 15:16:45 +01:00
Fixing an NPE with the /mcmmo command.
This commit is contained in:
parent
400d551295
commit
f97e9bd19f
@ -81,6 +81,10 @@ public final class Anniversary {
|
||||
GregorianCalendar anniversaryEnd = new GregorianCalendar(2013, Calendar.FEBRUARY, 6);
|
||||
GregorianCalendar day = new GregorianCalendar();
|
||||
|
||||
if (hasCelebrated == null) {
|
||||
createAnniversaryFile();
|
||||
}
|
||||
|
||||
if (hasCelebrated.contains(sender.getName())) {
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user