Interface Language


public interface Language
  • Method Summary

    Modifier and Type Method Description
    boolean exists​(java.lang.String path)
    Check if a message was set.
    java.lang.String getIso()
    Get language iso code.
    java.lang.String getLangName()
    Get language name.
    java.util.List<java.lang.String> getList​(java.lang.String path)
    Get a color translated list.
    java.lang.String getMsg​(java.lang.String path)
    Get a color translated message.
    void set​(java.lang.String path, java.lang.Object value)
    Set a message.
    void setPrefix​(java.lang.String prefix)
    Set chat prefix.
  • Method Details

    • setPrefix

      void setPrefix​(java.lang.String prefix)
      Set chat prefix.
      Parameters:
      prefix - messages prefix.
    • getIso

      java.lang.String getIso()
      Get language iso code.
      Returns:
      language iso code. Ex: ro, en.
    • getLangName

      java.lang.String getLangName()
      Get language name. This is used in the /bw lang list. It is a sort of display name.
      Returns:
      language display name.
    • exists

      boolean exists​(java.lang.String path)
      Check if a message was set.
      Parameters:
      path - message path.
      Returns:
      true if the given path exists.
    • getMsg

      java.lang.String getMsg​(java.lang.String path)
      Get a color translated message.
      Parameters:
      path - message path.
      Returns:
      a color translated message.
    • getList

      java.util.List<java.lang.String> getList​(java.lang.String path)
      Get a color translated list.
      Parameters:
      path - message path.
      Returns:
      a color translated list.
    • set

      void set​(java.lang.String path, java.lang.Object value)
      Set a message.
      Parameters:
      path - message path.
      value - message value.