1
0
Personal fork of Cuberite
Go to file
Alexander Harkness ce761fa2b8 Made the README
2013-08-13 09:47:43 +01:00
LICENSE Initial commit 2013-08-11 08:33:24 -07:00
main.lua Changed system to use ISO 639-1. 2013-08-13 09:46:15 +01:00
README.md Made the README 2013-08-13 09:47:43 +01:00

TransAPI

A plugin translation API for MCServer.

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