GUI Configuration
The lottery GUI is configured in plugins/CocoLottery/gui.yml.
GUI Settingsโ
plugins/CocoLottery/gui.yml
gui:
# Inventory size (must be multiple of 9)
size: 36
# GUI title
title: " &8สแดแดแดแดสส ษขแดษช"
Filler Itemsโ
Fill empty slots with decorative items:
plugins/CocoLottery/gui.yml
filler:
material: GRAY_STAINED_GLASS_PANE
name: " "
lore: []
filler_slots: [27, 28, 29, 30, 32, 33, 34, 35]
GUI Itemsโ
Buy Buttonโ
plugins/CocoLottery/gui.yml
items:
buy:
slot: 11
material: DIAMOND
name: "�FFFFBuy Lottery"
lore:
- ""
- "&fIf you also want to participate"
- "&fin the draws, buy a lottery ticket."
- ""
- "&eLeft-Click &6ยป &7Buy"
buyAmount: 1 # Amount to buy per click
Status Displayโ
plugins/CocoLottery/gui.yml
status:
slot: 15
material: PAPER
name: "FB22&lSTATUS"
lore:
- ""
- "&8โข &fYour Tickets: &#FFEE00%ptickets%/%maxTickets%"
- "&8โข &fGlobal Tickets: &#FFEE00%total%"
- ""
- "&8โข &fPrize: &2$FB22%prize%"
- "&8โข &fNext lottery: &#FFEE00%next%"
- "&8โข &fLast winner: &#FFEE00%winner%"
Close Buttonโ
plugins/CocoLottery/gui.yml
close:
slot: 31
material: BARRIER
name: "&#FF0000Close"
lore:
- ""
- "&fYou can close this"
- "&fmenu by clicking here"
- ""
- "&eLeft-Click &6ยป &7Close"
GUI Placeholdersโ
| Placeholder | Description |
|---|---|
%ptickets% | Player's ticket count |
%maxTickets% | Maximum tickets per player |
%total% | Total tickets sold |
%prize% | Current prize amount |
%next% | Time until next draw |
%winner% | Last winner's name |
Example Layoutโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ . . . . . . . . . โ Row 1
โ . . ๐ . . . ๐ . . โ Row 2 (Buy at 11, Status at 15)
โ . . . . . . . . . โ Row 3
โ โช โช โช โช ๐ซ โช โช โช โช โ Row 4 (Fillers + Close at 31)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ = Buy Button (slot 11)
๐ = Status Display (slot 15)
๐ซ = Close Button (slot 31)
โช = Filler Items