Dieser Commit ist enthalten in:
Ursprung
6b0c30c241
Commit
b2b51fa9b2
@ -85,7 +85,8 @@ public class CalendarCommand extends SWCommand {
|
|||||||
List<SWItem> items = new ArrayList<>();
|
List<SWItem> items = new ArrayList<>();
|
||||||
for (Map.Entry<Integer, Integer> present : dayToSchematicId.entrySet()) {
|
for (Map.Entry<Integer, Integer> present : dayToSchematicId.entrySet()) {
|
||||||
boolean b = NodeMember.getNodeMember(present.getValue(), user.getId()) != null;
|
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.setName(Message.parse("ADVENT_CALENDAR_DAY", player, present.getKey()));
|
||||||
swItem.setCallback(click -> {
|
swItem.setCallback(click -> {
|
||||||
if (b) return;
|
if (b) return;
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren