Archiviert
1
0

Finalize CalendarCommand

Dieser Commit ist enthalten in:
yoyosource 2022-11-25 08:05:40 +01:00
Ursprung 6b0c30c241
Commit b2b51fa9b2

Datei anzeigen

@ -85,7 +85,8 @@ public class CalendarCommand extends SWCommand {
List<SWItem> items = new ArrayList<>();
for (Map.Entry<Integer, Integer> present : dayToSchematicId.entrySet()) {
boolean b = NodeMember.getNodeMember(present.getValue(), user.getId()) != null;
SWItem swItem = b ? SWItem.getSkull("MHF_Chest") : SWItem.getSkull("MHF_Present1");
SWItem randomPresent = random.nextDouble() > 0.5 ? SWItem.getSkull("MHF_Present1") : SWItem.getSkull("MHF_Present2");
SWItem swItem = b ? SWItem.getSkull("MHF_Chest") : randomPresent;
swItem.setName(Message.parse("ADVENT_CALENDAR_DAY", player, present.getKey()));
swItem.setCallback(click -> {
if (b) return;