-
Notifications
You must be signed in to change notification settings - Fork 13
Modal Form
Bas edited this page Apr 22, 2022
·
5 revisions
This page is still a work in progress
The example modal form in this image is created using the config example below.
You can use new lines for the content section
formname: # This is the internal name of the form, can be anything
type: modal_form # This is the form type
title: "Title" # This is the title of the form, displayed on top
content: "Content\nNew line and &ccolors!" # This is the content in the black box, you can use color codes and /n for a new line
button1: # Modal button 1, this is REQUIRED as modals always have two buttons
text: "Button 1 &5Colors!" # The text to display on the button, you can
actions: # You can define multiple actions see the 'Shared Configuration Elements' wiki article
commands:
- "example command"
form: otherform
button2: # Modal button 2, this is REQUIRED as modals always have two buttons
text: "Button 2"
actions:
commands:
- "player; example command ran by player"
You can define different types of actions. For more information see Shared Configuration Elements
2022 © kejonaMC
- Home
- Downloads and Requirements
- Commands and Permissions
- Shared Configuration Members
- Configurations
- config.yml
- Forms and Menus
- Spigot only configs