Interface DialogueMasterAPI


public interface DialogueMasterAPI
The main API class, most of the methods can be controlled from here.
  • Method Details

    • getInstance

      @NotNull static @NotNull DialogueMasterAPI getInstance()
      Gets the DialogueMasterAPI instance. With this you can access the API from anywhere in the plugin. Please make sure you call this method after the plugin has loaded.
      Returns:
      The DialogueMasterAPI instance.
    • getSubCommandRegistry

      DMSubCommandRegistry getSubCommandRegistry()
      Gets the subcommand registry. This is used to register subcommands for the DialogueMaster command.
      Returns:
      The subcommand registry.
    • getMessageUtils

      DMMessageUtils getMessageUtils()
      Gets the message utils. This is used to send (prefixed) messages to players.
      Returns:
      The message utils.
    • getDesignManager

      DMDesignManager getDesignManager()
      Gets the design manager, with this class you can create, edit and delete designs, font configurations and widgets.
      Returns:
      The design manager
    • getActivePluginHooks

      List<PluginHook> getActivePluginHooks()
      Gets a list of all the active plugin hooks: all the plugins that DialogueMaster can interact with.
      Returns:
      The list of active plugin hooks.
    • getServerVersion

      ServerVersion getServerVersion()
      Gets the minecraft version the server is running on.
    • getPluginLogger

      Logger getPluginLogger()
      Gets the plugin's logger.