DialogForge logoDialogForge

Commands

The admin command and the command every menu registers for itself, with the permission each one needs.

/dialogforge

Aliased to /df.

CommandWhat it doesPermission
/dialogforge reloadReloads config, languages and every menudialogforge.reload
/dialogforge open <menu> [page] [player]Opens a menu, optionally on a page, optionally for someone elsenone, [player] needs dialogforge.open.others
/dialogforge listLists every loaded menu, its command and its page countdialogforge.admin
/dialogforge versionPrints the plugin version, server version, default layout, storage type and active languagedialogforge.admin

open takes - in place of a page to open a menu on its default page while still naming a target player:

/dialogforge open guide - Notch

Every menu registers its own command and aliases, taken straight from the menu file:

# menus/guide.yml
command: guide
aliases:
  - wiki

Running /guide with nothing after it opens the menu on default-page, or on the page the player was last looking at if behaviour.resume-last-page is on. These commands are registered through Bukkit.getCommandMap() rather than plugin.yml, since the set of commands is only known once the menu files are read and can change on every reload.

Whether a menu command needs a permission depends entirely on that menu's own permission-mode. See Permissions.

When another plugin already owns the command

Two outcomes when another plugin already owns a command: with override-command off, DialogForge answers to the dialogforge prefixed form, and with it on, DialogForge takes the label and the other plugin keeps its own prefixed form instead.

If something else has already claimed the label, for example EssentialsX registering /rules, the console says so and the menu answers to dialogforge:rules instead. Set override-command: true on the menu, or commands.override-conflicts: true in config.yml for every menu, to take the label back, as long as nothing else has claimed it in the meantime. DialogForge hands the command back to the other plugin on its own when reloaded or disabled.

On this page