Sueta

➤HypeLanguages ➥ Lightweight MultilanguageAPI ● Support (SQL

1.5

»Forget your simple messages.yml and have multiple languages quickly and easily

·Plugin

Note: To edit the languages of each plugin or add more manually you must enter the folder plugins/HypeLanguages/Langs/ where will be the folders with the languages of each plugin that the api has used, for the default language of your plugin you must create a file .yml with the language code and will be saved at the time of the hook if you do not add any files will create a default for example, clarified this does not review without a sense of malfunction for not knowing how to use the plugin thanks.

  • Lightweight System
  • Support MySQL
  • Support HikariCP MySQL
  • Support SQLite
  • Smart Cache for less lag with the database!
  • Support All Languages
  • Fallback language code in beta
  • PlaceholderAPI Language variables (HypeLang_Player / HypeLang_Game)
  • Easy to use
  • Fast implementation
  • Works with language codes
  • Language detection
  • Default language
  • Language command aliases
  • Cooldown
  • Cache time
  • Custom Events (PlayerLanguageChangeEvent, OnPluginHookEvent)
  • And much more...

Default Config
#######################################
##               @Config             ##
##         >>> HypeLanguages <<<     ##
##    @Developed By CleusGamer201    ##
#######################################
Prefix: '&aLangs&7<13> &r'
Commands:
- language
- idioma
Lang:
  Detect: true
  Helped: true
  Default: en_us
  Cooldown: 60
  #Recommend Default Caching: 300
  Caching: 300
MySQL:
  Enabled: false
  UseHikariCP: false
  Host: 127.0.0.1
  Database: Minecraft
  Username: Root
  Password: Null
  Port: 3306
Default Lang (en_us.yml)
Specify: '&cError use &7/{Command} <Language>'
Invalid: '&cLanguage invalid!'
Change: '&aNow your language is&7: &e{Lang}'
Langs: '&7Languages availables: &e'
Cooldown: '&7You need wait &e{Cooldown} &7seconds between language change!'
View: '&7Your language is &e{Lang}'
Default Lang (es_es.yml)
Specify: '&cError usa &7/{Command} <Lenguaje>'
Invalid: '&6Lenguaje invalido!'
Change: '&aAhora tu lenguaje es&7: &e{Lang}'
Langs: '&7Lenguajes disponibles: &e'
Cooldown: '&7Necesitas esperar &e{Cooldown} &7segundos entre el cambio de idioma!'
View: '&7Tu lenguaje es &e{Lang}'
#Config Special Symbols
<1> => ✖
<2> => ✔
<3> => ●
<4> => ♥
<5> => ♦
<6> => ★
<7> => ►
<8> => ◄
<9> => ✪
<10> => ☠
<11> => ░
<12> => ■
<13> => »
<14> => «
<a> => á
<e> => é
<i> => í
<o> => ó
<u> => ú

#Hook Example (You need to check if the dependency (HypeLanguages) is in the plugins folder and if is loaded!

#Obligatory (import Dev.CleusGamer201.HypeLanguages.API.Multilanguage;)

#Additional (import Dev.CleusGamer201.HypeLanguages.Util.Lang;)

public class YourMainClass extends JavaPlugin {

private static Multilanguage Ml;
public static Multilanguage GetLang() {
    return Ml;
}

@Override
public void onEnable() {
        Ml = new MultiLanguage(this);
 
}

#Usage example
@EventHandler
public void OnJoin(PlayerJoinEvent e) {
   Player p = e.getPlayer();
  p.sendMessage(GetLang().GetYaml(p).getString("Welcome_Message");
}

  • Soon | Official Server
  • YourServerIP? | YourServerName?


➠ Not resubmit the plugin and less say you created.
➠ Do not decompile the plugin.
➠ Do not give stupid opinions and less without asking for support.
➠
You agree that these terms may change at any time

Similar projects

Plugin →