Text option

An example of what the text option looks like in-game.

Example

@Text(
    title = "My Text",
    description = "This is my text", // Recommended, default = ""
    icon = "/my_text.svg", // Optional, default = ""
    category = "Text", // Recommended, default = "General"
    subcategory = "General", // Recommended, default = "General"
    placeholder = "Name..." // Optional, default = "polyui.textinput.placeholder"
)
public static String myText = "";

Last updated