Skip to main content

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: "&#00FFFFBuy 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: "&#08FB22&lSTATUS"
lore:
- ""
- "&8โ€ข &fYour Tickets: &#FFEE00%ptickets%/%maxTickets%"
- "&8โ€ข &fGlobal Tickets: &#FFEE00%total%"
- ""
- "&8โ€ข &fPrize: &2$&#08FB22%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โ€‹

PlaceholderDescription
%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