Menus

/sfx opens the hub for staff: preset gallery, reactions, items, zones, preferences, resource pack, stop all, about, reload. Players get their preferences.
Every menu is a file in menus/: hub.yml, gallery.yml, reactions.yml, items.yml, zones.yml, zone.yml, filters.yml, preferences.yml, sources.yml (the effect sources players turn off, opened from the preferences). After a change: /sfx reload.
| Option | |
|---|---|
enabled | false = the menu is off |
title | menu title (MiniMessage, & codes, hex) |
rows | 1 - 6 |
elements | the ScreenFX buttons: move them (slots) and change their look (material, name, lore, glow). slots: "" hides a button. The placeholders of each button are written above it |
decorations | your own items, with actions |
open-commands | commands that open this menu: [effects] = /effects (after a restart) |
open-permission | needed for those commands ("" = everyone) |
Slots: "4", "19-25", "0-8,45-53" (row 1 = 0-8, row 2 = 9-17...). Material: DIAMOND, head:{player}, head:Notch, texture:<value from minecraft-heads.com>. Permission on an item: only players with it see it ("" = everyone); admin-only: true = only admins.
Actions
| Action | |
|---|---|
[close] | close the menu |
[open] <menu> | open another menu (a file of menus/) |
[back] · [refresh] | the menu before · draw it again |
[player] <command> | the player runs a command |
[console] <command> | the console runs a command |
[chat] <text> | the player writes in chat |
[message] <text> · [broadcast] <text> | a message to the player · to everyone |
[actionbar] <text> | |
[title] title;subtitle;in;stay;out | |
[sound] <sound> [volume] [pitch] | |
[delay] <ticks> | wait before the next actions |
[server] <name> | send the player to another server of the network |
In front of an action: [left], [right], [shift-left], [shift-right] = only that click. {player} and PlaceholderAPI placeholders work in names, lore and actions.
decorations:
rules:
slots: "4"
material: BOOK
name: "<theme>Server rules"
lore: ["&7Click to read them"]
actions:
- "[close]"
- "[player] rules"
- "[sound] ui.button.click"
Your own menus
A new file in menus/ (for example menus/info.yml) with title, rows and decorations, opened with [open] info from another menu, with /sfx menu info, or with its own open-commands.
Forms in the menus (zone names, values) use the dialog boxes of the game; clients without them answer in chat.
Ultimo aggiornamento: