Skip to main content

Playtime Menu

menu/PlaytimeMenu.yml controls the main reward progression menu.

title: "<dark_gray>FioPlaytime</dark_gray> <black>%page%/%maxPage%</black>"
rows: 6
  • title: inventory title.
  • rows: inventory height.
  • %page% and %maxPage%: pagination placeholders rendered by the menu manager.

Static items

Static buttons live under items.

items:
playtime:
material: PLAYER_HEAD
player: true
refresh: true
name: "<green>Your Playtime</green>"
slot: 4
actions:
any:
- '[NONE]'

Common keys:

KeyDescription
materialBukkit material name.
playerUses the viewer's player head when supported.
refreshRe-renders the item while the menu is open.
hide_tooltipHides item tooltip where supported.
slotSingle slot number.
slotsMultiple slots or ranges such as 45-53.
nameDisplay name.
loreLore lines.
actionsClick actions.

Reward content slots

playtime:
content-slot:
- '9-10'
- '19'
- '28'

Generated reward entries are placed in these slots and paginated when there are more tiers than visible slots.

Reward status styles

playtime:
status:
locked: {}
unlocked: {}
onprogress: {}
unclaimed: {}
StatusMeaning
lockedTier is not available yet.
unlockedTier was already claimed.
onprogressTier is being progressed toward.
unclaimedTier requirement is complete and can be claimed.

The default unclaimed action claims the reward:

actions:
any:
- '[FIOPLAYTIME] CLAIM %tier_raw%'

Supported menu actions

ActionDescription
[CLOSE]Close the open inventory.
[NONE]Do nothing.
[MESSAGE] [message]Send a message to the player.
[SOUND] [sound] [volume] [pitch]Play a sound.
[PLAYER] [command]Run a command as the player.
[CONSOLE] [command]Run a command as console.
[FIOPLAYTIME] CLAIM [tier]Claim one reward tier.
[FIOPLAYTIME] NEXT_PAGE+[amount]Move forward through paginated content.
[FIOPLAYTIME] PREVIOUS_PAGE-[amount]Move backward through paginated content.
[FIOPLAYTIME] MaterialsOpen the material selector menu.
[FIOPLAYTIME] LeaderboardsOpen the leaderboard menu.
[FIOPLAYTIME] Profile [player]Open a player's profile menu.
[FIOPLAYTIME] BACKReturn to the previous menu.
Page note

If an unclaimed tier has only [NONE], the source automatically replaces it with [FIOPLAYTIME] CLAIM [tier].