Get started

Thank you for purchasing my LanguageAPI.

ColorCodes are always defined with a & character. A list of possible ColorColdes can be found here. Please use the CHAT CODE column from the displayed table and replace the § character with the & character.

If you have downloaded the LanguageAPI and started the server, a folder named LanguageAPI should now have been created in your plugins folder. Now open this folder and edit the config.yml.

Enter license

Add your private license in the config.yml. If you don't have one yet, open a support ticket on my discord server.

Why do I need a private license? The answer is here

Database

Set the database type in config.yml.

MySQL

Set database: "mysql" to store your data in a MySQL database. You can access the data across servers. To connect to MySQL database open the file mysql.yml and enter your MySQL data.

mysql.yml
mysql:
  HOST: localhost
  PORT: '3306'
  DATABASE: database
  USER: root
  PASSWORD: password

Config

Set database: "config" to store your data locally on the server. This data can then only be accessed by this one server. For this purpose the plugin creates a folder named database in the plugins folder. In this folder the database file database.db will be created.

BungeeCord?

File system

There are 2 different file systems. These are explained below.

single

The single file system simply means that all messages of all languages are contained in one file. Here is the example from the LanguageAPI:

multi

In the System multi file, each individual language gets its own file. The individual files are in the plugin folder in the language folder. This is easy to build: <language>.yml

Here is an example:

Prefix

The prefix is always set before each message from the LanguageAPI. You can change the prefix by changing the line prefix: "&7[&6LanguageAPI&7]&r".

Change language

As the server owner, you have the option to allow or deny players to change their language. You do this by editing the line changeLanguage: true. If you set the setting to false, the players will no longer be able to change their language.

It would be best if you have the same setting on all servers, i.e. all set to true or all set to false.

Alias

You can edit the command to change the language. To do this, simply add more entries to the aliases setting or remove them. If you only want the default command, simply replace the list with aliases: [].

Standardkonfiguration:

The standard command for changing the language is: changelanguage

Default language

The default language is the language that every player automatically receives when they join the server for the first time. To change the default language, simply edit the line defaultLanguage: "english".

Supported languages

Under Supported languages, you add the languages that your server network should support. You can also remove the supported languages.

Default configuration

Command

Syntax

Last updated