SteamWar/BungeeCore
Archiviert
13
2

AdventCalendar #442

Zusammengeführt
Lixfel hat 8 Commits von AdventCalendar nach master 2022-11-27 18:54:25 +01:00 zusammengeführt
Nur Änderungen aus Commit b2b51fa9b2 werden angezeigt - Alle Commits anzeigen

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;