Class BimmCore

  • All Implemented Interfaces:
    org.bukkit.command.CommandExecutor, org.bukkit.command.TabCompleter, org.bukkit.command.TabExecutor, org.bukkit.event.Listener, org.bukkit.plugin.Plugin

    public class BimmCore
    extends org.bukkit.plugin.java.JavaPlugin
    implements org.bukkit.event.Listener
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static boolean oldAPI
      Deprecated.
      use supports(int) instead
    • Constructor Summary

      Constructors 
      Constructor Description
      BimmCore()  
    • Method Summary

      Modifier and Type Method Description
      static boolean checkBimmCoreVersion​(org.bukkit.plugin.Plugin plugin, int versionNeeded)  
      void command​(org.bukkit.event.player.PlayerCommandPreprocessEvent e)  
      static BimmCore getInstance()  
      void onDisable()  
      void onEnable()  
      static boolean supports​(double v)
      Check if the server is a version 1.15 -> 15 1.12 -> 12 1.8 -> 8
      static boolean supports​(int v)
      • Methods inherited from class org.bukkit.plugin.java.JavaPlugin

        getCommand, getConfig, getDataFolder, getDefaultWorldGenerator, getDescription, getLogger, getPlugin, getPluginLoader, getProvidingPlugin, getResource, getServer, isEnabled, isNaggable, onCommand, onLoad, onTabComplete, reloadConfig, saveConfig, saveDefaultConfig, saveResource, setNaggable, toString
      • Methods inherited from class org.bukkit.plugin.PluginBase

        equals, getName, hashCode
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • oldAPI

        @Deprecated
        public static boolean oldAPI
        Deprecated.
        use supports(int) instead
    • Constructor Detail

      • BimmCore

        public BimmCore()
    • Method Detail

      • getInstance

        public static BimmCore getInstance()
      • checkBimmCoreVersion

        public static boolean checkBimmCoreVersion​(org.bukkit.plugin.Plugin plugin,
                                                   int versionNeeded)
        Parameters:
        plugin - The Plugin's Insance
        versionNeeded - The version needed
        Returns:
        If the BimmCore version is equal or newer
      • supports

        public static boolean supports​(double v)
        Check if the server is a version 1.15 -> 15 1.12 -> 12 1.8 -> 8
        Parameters:
        v - The Version to support
        Returns:
        If the server is of version
      • supports

        public static boolean supports​(int v)
        Parameters:
        v - The Version to support
        Returns:
        If the server is of version
      • onEnable

        public void onEnable()
        Specified by:
        onEnable in interface org.bukkit.plugin.Plugin
        Overrides:
        onEnable in class org.bukkit.plugin.java.JavaPlugin
      • onDisable

        public void onDisable()
        Specified by:
        onDisable in interface org.bukkit.plugin.Plugin
        Overrides:
        onDisable in class org.bukkit.plugin.java.JavaPlugin
      • command

        public void command​(org.bukkit.event.player.PlayerCommandPreprocessEvent e)