AdventCalendar #442
@ -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;
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren