Skip to content

BukkitUtils

Fulminazzo edited this page Oct 2, 2023 · 2 revisions

BukkitUtils is a series of functions to work with plugins. The most important ones are:

  • isPluginEnabled(): returns true or false if the plugin is enabled or not. It supports String pluginName and Plugin plugin as parameters;
  • reloadPlugin(Plugin plugin): a combination of unloadPlugin() and loadPlugin();
  • loadPlugin(): loads a plugin; It supports String pluginName, File jarFile and JavaPlugin plugin as parameters;
  • unloadPlugin(Plugin plugin): tries to unload a plugin (follows the same methodology of PlugManX).

There are also available:

  • isPaper(): returns true if the server is on Paper;
  • getMaterialValues(): returns an array containing the result of Material.values().

Clone this wiki locally