Pages » Fcore » Features » Lang


Each plugin uses FCore has a /lang/ folder with configs of translatable messages for different languages.
There are some tips and features you can use to provide a bit customization for your message and redefine the plugin style.

Output Type

Do you ever want to display certain message not in chat, but in Action Bar or Titles without extra config options? Now you can!
Add one of those prefixes to message in config and you're done!

  • [CHAT] - Prints message in chat. Used by default and when no prefix specified.
  • [TITLES] - Prints message in Titles. You can use /n to split message on Title and Subtitle.
  • [ACTION_BAR] - Prints message in Action Bar. Only first line of a message is displayed.
  • [NONE] - Disables certain message. Nothing will be displayed.

Examples:

Leave: '[TITLES] &4You have left the game.' # Will be displayed as Title.
Leave: 
- '[TITLES] &4You have left the game.' # Will be displayed as Title.
- '&7Thanks for playing!' # Will be displayed as Subtitle.
Leave: '[ACTION_BAR] &4You have left the game.' # Will be displayed in Action Bar.
Leave: '[NONE] &4You have left the game.' # Nothing displayed.

Multiple line Messages

You can also print messages in multiple lines or change it to single line. It's simple!

Examples:
# Multi line message.
Leave: 
- '&e> &4You have left the game.'
- '&e> &7Thanks for playing!'
# The same, but in different way.
# It will be converted to the above format on save.
Leave: '&e> &4You have left the game. \n &e> &7Thanks for playing!'

Information
Empty Block

18+