Managing plugins

What you do with plugins after they are installed.

See which plugins run

Where Command What it shows
Game or console /plugins (also /pl) All plugins in groups: native ones and the ones another plugin hosts (the Java plugins of the Bukkit layer). Green is on, red is off. Hover shows details, a click runs /version <plugin>.
Game or console /version (also /ver, /about), /version <plugin> The server's version, or a plugin's description, authors and website.
Console vanillite plugins One log line with the loaded native plugins.
  • /plugins is always there, for everyone (permission bukkit.command.plugins).
  • /version as described needs commands.bukkit-commands, which the paper and spigot profiles switch on. Otherwise /version is Vanilla's command for operators, and Paper's is not there. In both cases Vanilla's own command is /minecraft:version.
  • The Query protocol lists the plugins in its answer, like Bukkit.

Switch plugins off and on

  • One plugin: stop the server, remove the folder or jar (or, for a native plugin, rename the folder so it starts with a dot, for example .greeter), start the server. There is no command that unloads a plugin while the server runs.
  • All native and Spigot/Paper plugins: plugins.enabled = false in vanillite.toml.
  • A plugin that fails is switched off by itself, the others keep running (see below).

Plugin settings live in the plugin's own folder: native plugins use plugins/<id>/config.toml. Java plugins keep their files where their authors put them, usually a folder named like the plugin. Edit them while the server is stopped, unless the plugin has its own reload command.

Reload

  • Server settings (vanillite.toml): /vanillite reload config. Plugin settings in plugins.* need a restart, see Installing plugins.
  • A plugin's own files: only if the plugin offers it.
  • Plugin authors can set plugins.development = true. Then the console command vanillite plugin reload <id> loads a new build of a native plugin while the server runs and moves its state over. The old build stays in memory, so this is not for production servers. See Plugin concepts.

Permissions

Operators (/op) may do everything. For other players, permission nodes decide who may use a plugin's commands. A node is a text like hello.pad or essentials.home.

How the server decides for a node:

  1. A permission plugin answers first. A native plugin can become the server's permission provider; the Bukkit layer is one, so Java permission plugins such as LuckPerms work as on Paper.
  2. If nobody answers, the default the plugin registered for the node counts: everyone, nobody, operators only, or everyone but operators.
  3. A node nobody knows is for operators only.
  4. The console, RCON and command blocks may use every command.

Two Paper nodes are for everyone by default: bukkit.command.plugins and bukkit.command.version.

Commands can also ask for a Vanilla permission level (0 everyone, 2 game masters, 3 admins, 4 owners). The Vanilla commands keep these levels; the permission nodes are for plugin commands and for what plugins check themselves.

With LuckPerms (after the Bukkit layer runs) you give a node with its own commands, for example /lp user <name> permission set <node> true.

Crashes and safe mode

  • A plugin that panics (a Rust error inside a handler) is switched off and the server keeps running. The log names it.
  • A crash inside a plugin's code (a fatal signal, or the watchdog has to kill a stuck server) is written to plugins/.crashed. With plugins.safe-mode-after-crash (default on), that plugin is skipped at the next starts until its library file changes or you delete plugins/.crashed. So a supervisor such as Docker or systemd can bring the server back up without the plugin that broke it.

Pin plugin files

plugins.pins = "greeter=<sha256>,other=<sha256>" allows only libraries with these hashes. A plugin with another hash is refused. Use it when someone else may change files in plugins/. The log prints each library's hash when it loads (Loading plugin greeter 0.1.0 (SHA-256 …)).

What plugins cost

  • No plugins, no cost. The core has no Java and no Bukkit code. Without plugins there is nothing extra to start, and no memory is used.
  • Events cost nothing where nobody listens. Each place in the game that fires an event is one check.
  • Packet listeners cost something only for the packet types they name; see Plugin API: packets.
  • The Bukkit layer needs a Java virtual machine, so it uses more RAM than native plugins. The layer keeps it small: a small heap, the serial garbage collector and compact object headers, and (since layer 0.1.3, installed by 0.1.0-beta.4) a full garbage collection while nobody is online that hands unused heap back to the system. The [jvm] keys are in Bukkit layer for developers. Operators can look at it: /vjvm mem shows JVM memory and the process size, /vjvm bench the cost of calls between the server and Java, /vjvm gc <seconds> stresses garbage collection. No measured numbers are published for it yet.
  • A slow plugin slows the tick it runs in. Plugins that do slow work should do it off the tick; that is up to their authors.

See also: Plugin troubleshooting, Admin commands: /vanillite, Server console and first admin steps.

Next: Plugin troubleshooting.