public class AnnoyingDependency
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
boolean |
enableAfterDownload |
@NotNull java.lang.String |
name |
@NotNull java.util.Map<AnnoyingDownload.Platform,java.lang.String> |
platforms |
| Constructor and Description |
|---|
AnnoyingDependency(@NotNull java.lang.String name,
@NotNull java.util.Map<AnnoyingDownload.Platform,java.lang.String> platforms,
boolean enableAfterDownload)
Creates a new dependency instance
|
| Modifier and Type | Method and Description |
|---|---|
java.io.File |
getFile()
Gets the new file of the dependency
|
boolean |
isNotInstalled()
This uses
Bukkit.getPluginManager() to check if the dependency isn't installed. |
@NotNull public final @NotNull java.lang.String name
@NotNull public final @NotNull java.util.Map<AnnoyingDownload.Platform,java.lang.String> platforms
public final boolean enableAfterDownload
@Contract(pure=true)
public AnnoyingDependency(@NotNull
@NotNull java.lang.String name,
@NotNull
@NotNull java.util.Map<AnnoyingDownload.Platform,java.lang.String> platforms,
boolean enableAfterDownload)
name - the name of the dependency (from it's plugin.yml)platforms - the platforms the dependency can be downloaded fromenableAfterDownload - whether or not to attempt to enable the dependency after it has been downloadedpublic java.io.File getFile()
name.jar)public boolean isNotInstalled()
Bukkit.getPluginManager() to check if the dependency isn't installed. So it's vital that name is from the plugin's plugin.yml