Add command line option to load extra plugin jars not in the plugins folder

ex: java -jar paperclip.jar nogui -add-plugin=/path/to/plugin.jar -add-plugin=/path/to/another/plugin_jar.jar
This commit is contained in:
Jason Penilla
2021-05-18 14:42:26 -07:00
parent d4d8262f6e
commit e183355647
4 changed files with 40 additions and 1 deletions

View File

@@ -68,6 +68,18 @@ import org.jetbrains.annotations.Nullable;
*/
public interface Server extends PluginMessageRecipient, net.kyori.adventure.audience.ForwardingAudience { // Paper
/**
* Returns the de facto plugins directory, generally used for storing plugin jars to be loaded,
* as well as their {@link org.bukkit.plugin.Plugin#getDataFolder() data folders}.
*
* <p>Plugins should use {@link org.bukkit.plugin.Plugin#getDataFolder()} rather than traversing this
* directory manually when determining the location in which to store their data and configuration files.</p>
*
* @return plugins directory
*/
@NotNull
File getPluginsFolder();
/**
* Used for all administrative messages, such as an operator using a
* command.