A Translation API for Cuberite
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE
README.md
main.lua

README.md

TransAPI

A plugin translation API for Cuberite.

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.

Permissions

  • transapi.setlang - Allows use of the /language command.