Cuberite Logo Plugin Repository

Generic avatar
transapi-client

transapi-client

Author: Alexander Harkness
Owned by: cuberite
Downloads: 12

transapi-client

The client library for the TransAPI API for Cuberite.

Installation

  1. Copy transapi.lua into your plugin folder.
  2. Create a directory in your plugin folder called languages.
  3. Create a file named [whatever].lua in the languages directory, and add translations to it as per the examples file. Your should probably have languages in their own files.

API

GetTranslation(cPlayer, Slug (string)) - Returns the translated string for the provided cPlayer object.
GetConsoleTranslation(Slug (string)) - Returns the translated string for the console.

Pitfalls

Licensing

The TransAPI client lib is licensed under the MIT license, so you are free to improve and build upon it.

No comments yet; make some comments!