transapi-client transapi-client Alexander Harkness @bearbin Utilities

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.