ServerUtils 图标

Minecraft 服务端插件

ServerUtils

Reload plugins - Unload unused commands - PluginWatcher - Command/PluginInfo - Automatic Updater

工具类bukkitbungeecordpaperpurpurspigotvelocitywaterfall
版本范围
1.8–1.19.3
下载量
6,211

插件介绍

ServerUtils

ServerUtils allows you to manage your plugins in-game. Featuring reloading, unloading and loading of plugins from your plugins folder at runtime. ServerUtils also has handy methods to lookup commands and plugins, and provides you with handy information about them.

releaseImg GitHub Actions licenseImg featureRequestsImg bugReportsImg spigotRatingImg spigotDownloadsImg

Discord

Features

  • Spigot/Paper, BungeeCord/Waterfall and Velocity compatible!
  • Replaces (you can disable this) the /pl and /plugins (bukkit) commands with a customisable message plugins version. Adding the -v tag will add all versions to the output! Please note: the commands [plain]/bukkit:pl[/plain] and [plain]/bukkit:plugins[/plain] are not replaced, so you can still use those!
  • A neat configurable /bpl plugins command for bungeecord! Use the -v flag to output the versions of the plugin and -m flag to also include modules in the plugin list (e.g. cmd_send.jar, cmd_server.jar etc.)
  • Reload plugins on the fly with /su (load/reload/unload)plugin ! (BungeeCord: the main command is /bsu) Supports tabcomplete to quickly load new plugins from a jar in your plugins folder :)
  • Watch plugin files for changes and automatically reload them! /su watchplugin!
  • Unloading unused commands (spigot/paper): You can define in the config commands which will be unloaded by ServerUtils at boot. These commands will not be accessible anymore to any in-game player, nor the console.
  • Reloading plugins and cleaning things up, like their PluginClassLoader and their recipes, recipe cleanup only works 1.12+, as below those versions a plugin is not associated with a recipe, so there's no way ServerUtils can know a recipe belongs to a plugin.
  • ServerUtils can also restart / update itself, as a gimmick (:
  • Reload commands.yml on the fly without performing a whole reload or restart on the server! Useful to quickly make aliases :) Please note: currently, this only works on 1.8 - 1.16.
  • Reload the bukkit configuration on the fly without performing a whole reload or restart on the server! Please note: some configuration options may not be reloaded, please contact me if you think this is an error. Spigot/Paper configs are not reloaded, you can reload those with /paper reload or /spigot reload. Please note: currently, this only works on 1.8 - 1.16.
  • Automatic updater. The plugin can be configured to automatically download & install new updates of the plugin on server boot or when updates are checked. This feature is disabled by default, but can be precisely configured per config. Plugins can listen for changes! ServerUtils offers an event API which can notify plugins precisely what component has been loaded, enabled, disabled or unloaded -- all with a Pre and Post stage. Please take a look at the Bukkit and Bungee events!

Load stages of a plugin (Spigot/Paper):

To understand the difference between loading / enabling / disabling / unloading of plugins, I will describe the load stages below:

Fully loading a plugin (like at startup):

  1. First, the plugin is loaded from a .jar file from the plugins directory. This is called loading of a plugin. The plugin is now "red" in the /plugin list, because it is not yet enabled.
  2. At the second step, a plugin is enabled. This causes the plugin to spit all sorts of things in the console (which the developer found important to notify you about at startup), like database connections being setup etc.

Fully disabling a plugin (like closing the server)

  1. First the plugin is disabled. This causes the plugin to lose all of it's features, like commands, event listeners, etc. After disabling, the plugin is still loaded in memory, but it is seen "red" in the /plugin list.
  2. Then the plugin will be unloaded from the memory, so the plugin won't appear at all anymore in the /plugin list.

Disclaimer ‼️

Please note that reloading may not be compatible with each and every plugin! Plugins which depend on a reloaded plugin, are likely to be error-prone for reloading. Improper cleanup, or improper startup practises may break plugin (re/un)loading as well. Please be careful!

Statistics

bStatsImg

Compiling ServerUtils

There are two ways to compile ServerUtils:

1. Installing gradle (recommended)

  1. Make sure you have gradle installed.
  2. Run the project with gradle build to compile it with dependencies.

2. Using the wrapper

Windows: gradlew.bat build Linux/macOS: ./gradlew build

Developer API

Repository / Dependency

If you wish to use snapshot versions of ServerUtils, you can use the following repo:

https://repo.fvdh.dev/snapshots

Gradle:

repositories {
  compileOnly("net.frankheijden.serverutils:ServerUtils:VERSION")
}

dependencies {
  maven("https://repo.fvdh.dev/releases")
}

Maven:

<project>
  <repositories>
    <!-- ServerUtils repo -->
    <repository>
      <id>fvdh</id>
      <url>https://repo.fvdh.dev/releases</url>
    </repository>
  </repositories>
  
  <dependencies>
    <!-- ServerUtils dependency -->
    <dependency>
      <groupId>net.frankheijden.serverutils</groupId>
      <artifactId>ServerUtils</artifactId>
      <version>VERSION</version>
      <scope>provided</scope>
    </dependency>
  </dependencies>
</project>

Commands and Permissions

Please refer to the Wiki page for an updated overview of the commands and permissions.

版本与下载

推荐下载

ServerUtils-Bukkit-3.5.4.jar版本 3.5.4 · 2.1 MBSHA-1 743c70bb0994aa4151eb9884786dd3960cbfe212下载 ServerUtils-Bukkit-3.5.4.jar

3.5.4

正式版
加载器
bukkit · bungeecord · paper · purpur · spigot · velocity · waterfall
MC 版本
1.8.8 · 1.8.9 · 1.9 · 1.9.1 · 1.9.2 · 1.9.3 · 1.9.4 · 1.10 · 1.10.1 · 1.10.2 · 1.11 · 1.11.1 · 1.11.2 · 1.12 · 1.12.1 · 1.12.2 · 1.13 · 1.13.1 · 1.13.2 · 1.14 · 1.14.1 · 1.14.2 · 1.14.3 · 1.14.4 · 1.15 · 1.15.1 · 1.15.2 · 1.16 · 1.16.1 · 1.16.2 · 1.16.3 · 1.16.4 · 1.16.5 · 1.17 · 1.17.1 · 1.18 · 1.18.1 · 1.18.2 · 1.19 · 1.19.1 · 1.19.2 · 1.19.3
ServerUtils-Bukkit-3.5.4.jar2.1 MBSHA-1 743c70bb0994aa4151eb9884786dd3960cbfe212获取文件 ServerUtils-Bukkit-3.5.4.jar
ServerUtils-Bungee-3.5.4.jar1.7 MBSHA-1 e58782721ef1613d969930f0f4bb8bc4ccdb575c获取文件 ServerUtils-Bungee-3.5.4.jar
ServerUtils-Velocity-3.5.4.jar1.1 MBSHA-1 83170699c1a79e6ce5ed1efbb35b52d054b51efb获取文件 ServerUtils-Velocity-3.5.4.jar
展开更新日志
  • Added support for 1.19.3 (thanks @multirp!)

3.5.3

正式版
加载器
bukkit · bungeecord · paper · purpur · spigot · velocity · waterfall
MC 版本
1.8 · 1.8.2 · 1.8.3 · 1.8.4 · 1.8.5 · 1.8.6 · 1.8.7 · 1.8.8 · 1.9 · 1.9.1 · 1.9.2 · 1.9.3 · 1.9.4 · 1.10 · 1.10.1 · 1.10.2 · 1.11 · 1.11.1 · 1.11.2 · 1.12 · 1.12.1 · 1.12.2 · 1.13 · 1.13.1 · 1.13.2 · 1.14 · 1.14.1 · 1.14.2 · 1.14.3 · 1.14.4 · 1.15 · 1.15.1 · 1.15.2 · 1.16 · 1.16.1 · 1.16.2 · 1.16.3 · 1.16.4 · 1.16.5 · 1.17 · 1.17.1 · 1.18 · 1.18.1 · 1.18.2 · 1.19 · 1.19.1 · 1.19.2
ServerUtils-Bukkit-3.5.3.jar2 MBSHA-1 fc133b8d351f07ee83148d56f8063cbe024cd654获取文件 ServerUtils-Bukkit-3.5.3.jar
ServerUtils-Bungee-3.5.3.jar1.7 MBSHA-1 4c2ffe4ef3fe803b7c6437aadbc156e2a810e7bf获取文件 ServerUtils-Bungee-3.5.3.jar
ServerUtils-Velocity-3.5.3.jar1.1 MBSHA-1 473bc46f4300f60436b0d8f453380509d933718c获取文件 ServerUtils-Velocity-3.5.3.jar