Update AdventCommand

This commit is contained in:
2024-12-01 00:13:08 +01:00
parent 2032a0b642
commit fd791ea98d
@@ -25,6 +25,7 @@ import de.steamwar.inventory.SWItem;
import de.steamwar.inventory.SWListInv;
import de.steamwar.lobby.LobbySystem;
import de.steamwar.sql.NodeMember;
import de.steamwar.sql.SchematicNode;
import de.steamwar.sql.SteamwarUser;
import org.bukkit.Material;
import org.bukkit.entity.Player;
@@ -72,6 +73,7 @@ public class AdventCommand extends SWCommand {
item = SWItem.getPlayerSkull(random.nextBoolean() ? "MHF_Present1" : "MHF_Present2");
} else {
item = new SWItem(Material.CHEST, "");
item.setLore(List.of("§e>>>§7 " + SchematicNode.getSchematicNode(present.getSchematicId()).getName()));
}
item.setName(LobbySystem.getMessage().parse("ADVENT_CALENDAR_DAY", player, present.getDay()));
itemList.add(new SWListInv.SWListEntry<>(item, present));