This repository has been archived by the owner on Mar 28, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
18 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,20 @@ | ||
transapi | ||
TransAPI | ||
======== | ||
|
||
A Translation API for MCServer | ||
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) |