Package me.yleoft.zAPI
Class zAPI
java.lang.Object
me.yleoft.zAPI.zAPI
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull StringReturns the custom colored name of the plugin that initialized zAPIstatic PlaceholderAPIHandlerReturns thePlaceholderAPIHandlerfor the pluginstatic me.clip.placeholderapi.expansion.PlaceholderExpansionReturns the PlaceholderAPI Expansion of the plugin for youstatic @NotNull org.bukkit.plugin.java.JavaPluginReturns the class of the plugin that has initialized zAPIstatic @NotNull StringReturns the custom name of the plugin that initialized zAPIstatic voidinit(@NotNull org.bukkit.plugin.java.JavaPlugin plugin, @NotNull String pluginName, @NotNull String coloredPluginName) static voidinit(@NotNull org.bukkit.plugin.java.JavaPlugin plugin, @NotNull String pluginName, @NotNull String coloredPluginName, boolean useNBTAPI) Initialize zAPIstatic voidregisterPlaceholderExpansion(@NotNull String author, @NotNull String version, boolean canRegister, boolean persist) Register the PlaceholderAPI Expansion for youstatic voidsetColoredPluginName(@NotNull String coloredPluginName) static voidsetPlaceholderAPIHandler(@NotNull PlaceholderAPIHandler handler) Set thePlaceholderAPIHandlerfor the pluginstatic voidsetPluginName(@NotNull String pluginName) static voidstartMetrics(int pluginId) Start the plugin metrics on bStatsstatic voidUnregisters the PlaceholderAPI Expansion
-
Field Details
-
customCommandNBT
-
placeholderAPIHandler
-
plugin
protected static org.bukkit.plugin.java.JavaPlugin plugin -
pluginName
-
coloredPluginName
-
papi
-
economy
-
-
Constructor Details
-
zAPI
public zAPI()
-
-
Method Details
-
init
public static void init(@NotNull @NotNull org.bukkit.plugin.java.JavaPlugin plugin, @NotNull @NotNull String pluginName, @NotNull @NotNull String coloredPluginName, boolean useNBTAPI) Initialize zAPI- Parameters:
plugin- The plugin that is using zAPIpluginName- The custom name of the plugincoloredPluginName- The custom colored name of the pluginuseNBTAPI- If the plugin should use NBTAPI
-
init
-
getPlugin
@NotNull public static @NotNull org.bukkit.plugin.java.JavaPlugin getPlugin()Returns the class of the plugin that has initialized zAPI- Returns:
- The class of the plugin using zAPI
-
getPluginName
Returns the custom name of the plugin that initialized zAPI- Returns:
- The name of the plugin
-
setPluginName
-
getColoredPluginName
Returns the custom colored name of the plugin that initialized zAPI- Returns:
- The colored name of the plugin
-
setColoredPluginName
-
getPlaceholderExpansion
public static me.clip.placeholderapi.expansion.PlaceholderExpansion getPlaceholderExpansion()Returns the PlaceholderAPI Expansion of the plugin for you- Returns:
- The
PlaceholderExpansionclass of the plugin - Throws:
RuntimeException- if the PlaceholderAPI is not enabled
-
startMetrics
public static void startMetrics(int pluginId) Start the plugin metrics on bStats- Parameters:
pluginId- The ID of the plugin on bStats
-
setPlaceholderAPIHandler
Set thePlaceholderAPIHandlerfor the plugin- Parameters:
handler- ThePlaceholderAPIHandlerclass of the plugin
-
getPlaceholderAPIHandler
Returns thePlaceholderAPIHandlerfor the plugin- Returns:
- The
PlaceholderAPIHandlerclass of the plugin
-
registerPlaceholderExpansion
public static void registerPlaceholderExpansion(@NotNull @NotNull String author, @NotNull @NotNull String version, boolean canRegister, boolean persist) Register the PlaceholderAPI Expansion for you- Parameters:
author- The author of the pluginversion- The version of the plugincanRegister- If the expansion can be registeredpersist- If the expansion should persist
-
unregisterPlaceholderExpansion
public static void unregisterPlaceholderExpansion()Unregisters the PlaceholderAPI Expansion
-