public class LanguageAPISupport extends Object
Constructor and Description |
---|
LanguageAPISupport(org.bukkit.plugin.Plugin plugin,
String code)
Creates a new LanguageWrapper for the LanguageAPI plugin
|
Modifier and Type | Method and Description |
---|---|
String |
get(org.bukkit.command.CommandSender forWhom,
String key,
String template,
Object... params)
A wrapper for the PluginLanguageLibrary.get method.
|
String |
get(me.xhawk87.LanguageAPI.ISOCode preferredLocale,
String key,
String template,
Object... params)
A wrapper for the PluginLanguageLibrary.get method.
|
public LanguageAPISupport(org.bukkit.plugin.Plugin plugin, String code)
plugin
- Your pluginpublic String get(org.bukkit.command.CommandSender forWhom, String key, String template, Object... params)
forWhom
- The intended recipient to translate forkey
- The template keytemplate
- The default template for the pluginparams
- The parameters to be insertedpublic String get(me.xhawk87.LanguageAPI.ISOCode preferredLocale, String key, String template, Object... params)
preferredLocale
- The preferred language ISO code to translate tokey
- The template keytemplate
- The default template for the pluginparams
- The parameters to be insertedCopyright © 2019. All rights reserved.