Home - TuxCoding/FlexibleLogin GitHub Wiki
Welcome to the FlexibleLogin wiki!
Language Templates
Here you can submit the languages files to help others with configuring their plugin. Just click new page and name the file like your language. Then copy-paste your config into it with the following format:
FlexibleLogin version: XXX
Contributor(s): XXXXX
***
```HOCON
TEXT FILE
```
Formatting
The text configuration format is the same as in every Minecraft server and client. This wiki site shows details about the specification: http://wiki.vg/Chat
Styles
- bold - emboldened
- obfuscated - randomly switches between characters of the same width.
- strikethrough - struck out.
- underline - underlined
- italic - italicized
- reset - Plain White
Colors
- black
- dark_blue
- dark_green
- dark_aqua
- dark_red
- dark_purple
- gold
- gray
- dark_gray
- blue
- green
- aqua
- red
- light_purple
- yellow
- white
Events
Click events
- open_url - Opens the given URL in the default web browser. Ignored if the player has opted to disable links in chat; may open a GUI prompting the user if the setting for that is enabled. The link's protocol must be set and must be http or https, for security reasons.
- run_command - Runs the given command. Not required to be a command - clicking this only causes the client to send the given content as a chat message, so if not prefixed with /, they will say the given text instead.
- suggest_command - Only usable for messages in chat. Replaces the content of the chat box with the given text - usually a command, but it is not required to be a command (commands should be prefixed with /).
Hover events
- show_text - The text to display.
- show_item - The NBT of the item to display.
- show_entity - A JSON-NBT String describing the entity.
Shift click events
- insertion - contains text to insert. Only used for messages in chat. When shift is held, clicking the component inserts the given text into the chat box at the cursor (potentially replacing selected text). Has no effect on other locations at this time.
Examples:
Multiple colors
Old format: &2Use &b/login &6[Password] &2to login.
message-key {
extra=[
{
color="dark_green"
text="Use "
},
{
color=aqua
text="/login "
},
{
color=gold
text="[Password] "
},
{
color="dark_green"
text="to login."
}
]
text=""
}
Bold styles
Old format &2&lAuto logged in
ipAutoLogin {
color="dark_green"
text="Auto logged in"
bold="true"
}
Events
Click
notLoggedIn {
clickEvent {
action="suggest_command"
value="/login "
}
color="dark_red"
text="Not logged in. Type /login to login in"
}
Hover
keyGenerated {
color=yellow
extra=[
{
text="SecretKey generated: "
}
]
hoverEvent {
action="show_text"
value {
color="dark_green"
text="Representation: Base32 \nHashFunction: HmacSHA512 \nDigits: 6 \nWindow size: 3 \nTime frame: 1000000ms"
}
}
text=""
}
Shift click
example {
text: "Herobrine",
clickEvent: {
action: "suggest_command",
value: "/msg Herobrine "
},
insertion: "Herobrine"
}