Commands and Permissions
Here is a brief summary of the plugin's commands and permissions:
Command | Permissions |
---|---|
/triton, /triton openselector | triton.openselector |
/triton help | triton.help |
/triton getflag <language> | triton.getflag |
/triton reload [all/server/bungee] | triton.reload |
/triton setlanguage <language> [player] | triton.setlanguage, triton.setlanguage.others |
/triton sign <set/remove> <group key (set only)> | triton.sign |
/triton info | triton.info |
/triton loglevel [number] | triton.loglevel (console only) |
/triton database <upload/download> | triton.database |
/twin [upload] [collection filter] [language filter] | twin.upload |
/twin <code> | twin.download |
Commandsβ
All commands starting with /triton
can be also typed as /lang
and /language
.
Additionally, in order to keep backwards support with v0, you can also use
the following commands: /mlp
, /ml
, /multilanguage
, /multilanguageplugin
.
/triton, /triton openselectorβ
(only available-ingame)
Permission: triton.openselector
Opens up a GUI that allows you to select a language.
/triton helpβ
Permission: triton.help
Shows a help menu with all the available commands.
/triton getflag <language>β
(only available in-game)
Permission: triton.getflag
Gives the player the flag of that language.
Argumentsβ
language
: The Language ID to get the flag from.
/triton reload [mode]β
Permission: triton.reload
Reloads the plugin.
Argumentsβ
mode
(bungee in-game only / optional): One of the following options:
all
/a
: reloads both Spigot and Bungeebungee
/b
(default): reloads only Bungeeserver
/s
: reloads only Spigot
When using this command through console, it can only reload the current server/proxy.
/triton setlanguage <language> [player]β
(only available in-game when used for self)
Permission: triton.setlanguage
Sets the language of self or another player.
Argumentsβ
language
: The ID of the target language.
player
(optional): Specify the target player. Requires the triton.setlanguage.others
permission.
/triton sign <mode> [group id]β
(only available in-game)
Permission: triton.sign
Add/remove a sign from a sign group. The target sign is the sign the player is looking at.
Argumentsβ
mode
: The action to perform:
set
: Set the group of the target sign.remove
Remove the sign from its current group (if any).
group id
(only if mode
is set
): The sign group to assign the sign to.
/triton infoβ
Permission: triton.info
Shows information about Triton and how it is setup.
If log level is 2 or more, the loaded config is also printed to the console.
/triton loglevel [number]β
(console only)
Permission: triton.loglevel
When used without argument, it prints the current log level. When an argument is provided, the log level is set to that number until the plugin is reloaded or this command is executed again.
This only works on the console since otherwise it would be ambiguous which server we were targeting (e.g. the proxy or the actual server).
Argumentsβ
number
(optional): The new log level. Must be a number between 0 and 2.
/triton database <mode>β
(only available in BungeeCord)
Permission: triton.database
If using non-local storage, this command downloads and uploads from the database
to the translation
folder for easier editing and migration purposes.
Argumentsβ
mode
: One of the following options:
upload
/u
: overwrite all the translations in the database with the ones in thetranslations
folderdownload
/d
: overwrite all the translation in thetranslations
folder with the ones in the database
/twin upload [collection filter] [language filter]β
Permission: twin.upload
Alias: /twin
(only when omitting filters)
Uploads the current translations
folder to TWIN.
/twin
is an alias of /twin upload
, which means /twin
is the same as /twin upload * *
.
Argumentsβ
collection filter
(optional): List of collections to upload, separated by colons (:
). Use *
to upload all collections.
language filter
(optional): List of languages to upload, separated by colons (:
). Use *
to upload all languages.
/twin <code>β
Permission: twin.download
Downloads the translations
folder from TWIN after editing.
Permissionsβ
All permissions starting with triton.
can also be expressed as multilanguageplugin.
for compatibility reasons. However, it is recommended to use triton.
from now on.
triton.helpβ
Allows access to /triton help
.
Default: everyone
triton.openselectorβ
Allows access to /triton
and /triton openselector
.
Default: everyone
triton.getflagβ
Allows access to /triton getflag <language>
.
Default: op
triton.reloadβ
Allows access to /triton reload [all/server/bungee]
.
Default: op
triton.setlanguageβ
Allows access to /triton setlanguage <language>
.
Default: everyone
triton.setlanguage.othersβ
Allows access to /triton setlanguage [player] <language>
.
Default: op
triton.signβ
Allows access to /triton sign <set/remove> <group key (set only)>
.
Default: op
triton.infoβ
Allows access to /triton info
.
Default: everyone
triton.loglevelβ
Allows access to /triton loglevel [number]
.
Default: op
triton.databaseβ
Allows access to /triton database <upload/download>
.
Default: op
twin.uploadβ
Allows access to /twin
.
Default: op
twin.downloadβ
Allows access to /twin <code>
.
Default: op