1
0
cuberite-2a/MCServer/Plugins/TransAPI
Alexander Harkness b966211a47 Add TransAPI plugin in.
Merge remote-tracking branch 'transapirem/master' into transapi
2013-08-13 18:34:42 +01:00
..
LICENSE Add TransAPI plugin in. 2013-08-13 18:34:42 +01:00
main.lua Add TransAPI plugin in. 2013-08-13 18:34:42 +01:00
README.md Add TransAPI plugin in. 2013-08-13 18:34:42 +01:00

TransAPI

A plugin translation API for MCServer.

TransAPI is designed to be used with the client library, 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)