summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/TransAPI/README.md
blob: b037a6732c4185295109d758f8593e8672c5b7b7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
TransAPI
========

A plugin translation API for MCServer.

TransAPI is designed to be used with the [client library](https://github.com/bearbin/transapi-client), however there is also a stable API available for use.

API
---

    GetLanguage ( cPlayer )
    Returns the user's preferred language (or server default if not set). (ISO 639-1 language code)

    GetConsoleLanguage ( )
    Returns the preferred language for console text. (ISO 639-1 language code)

Commands
--------

 * /language [lang] - Takes a language code (ISO 639-1) and sets the user's preferred language to that. (tranapi.setlang)