Interface Viewer


public interface Viewer
Who uses the dashboard, for a page drawn or an action run.
  • Method Details

    • name

      String name()
      Returns:
      the name of who asked for the dashboard's link: a player's name, or CONSOLE
    • language

      String language()
      Returns:
      the dashboard's language for them, en or fr
    • may

      boolean may(String permission)
      Whether they have a permission. While they are online, the server answers; otherwise, the permissions they had when they asked for their link answer, among those the extensions declare.
      Parameters:
      permission - a permission
      Returns:
      whether they have it
    • param

      @Nullable String param(String name)
      A parameter of the page's address, as View.Button.with(String, Object) or Result.navigate(String, Map) gave it.
      Parameters:
      name - the parameter's name
      Returns:
      its value, or null
    • params

      Map<String,String> params()
      Returns:
      every parameter of the page's address