Class BukkitVersionPlugin

All Implemented Interfaces:
CommandExecutor, TabCompleter, TabExecutor, Plugin

public class BukkitVersionPlugin extends JavaPlugin
The BukkitVersionPlugin class initialises a JavaPlugin to expose the BukkitVersion API to other plugins running on a Bukkit server. This is a common alternative to including an API directly in a project in typical fashion.

For Maven users: change the dependency scope for BukkitVersion in your plugin’s pom.xml:

<scope>provided</scope>
Also, add the following to your plugin’s plugin.yml:
depend: [BukkitVersion]
You can now use the BukkitVersion API without including the entire package within your plugin JAR; however, you must instruct users of your plugin to download the BukkitVersion jar from SpigotMC.
Since:
0.2.0
Author:
Seth Price
  • Field Details

    • BSTATS_ID

      private static final int BSTATS_ID
      bStats plugin ID (for metrics).
      See Also:
    • PROJECT_ID

      private static final String PROJECT_ID
      Spigot project ID (for update checker).
      See Also:
    • metrics

      private static org.bstats.bukkit.Metrics metrics
      Metrics object for bStats.
  • Constructor Details

    • BukkitVersionPlugin

      public BukkitVersionPlugin()
  • Method Details

    • onEnable

      public void onEnable()
      Loads bStats metrics. No, really, that’s it.
      Specified by:
      onEnable in interface Plugin
      Overrides:
      onEnable in class JavaPlugin