Package me.bimmr.bimmcore
Class BimmCore
- java.lang.Object
-
- org.bukkit.plugin.PluginBase
-
- org.bukkit.plugin.java.JavaPlugin
-
- me.bimmr.bimmcore.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.usesupports(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 -> 8static boolean
supports(int v)
Callssupports(double)
-
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
-
-
-
-
Field Detail
-
oldAPI
@Deprecated public static boolean oldAPI
Deprecated.usesupports(int)
instead
-
-
Method Detail
-
getInstance
public static BimmCore getInstance()
-
checkBimmCoreVersion
public static boolean checkBimmCoreVersion(org.bukkit.plugin.Plugin plugin, int versionNeeded)
- Parameters:
plugin
- The Plugin's InsanceversionNeeded
- 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)
Callssupports(double)
- Parameters:
v
- The Version to support- Returns:
- If the server is of version
-
onEnable
public void onEnable()
- Specified by:
onEnable
in interfaceorg.bukkit.plugin.Plugin
- Overrides:
onEnable
in classorg.bukkit.plugin.java.JavaPlugin
-
onDisable
public void onDisable()
- Specified by:
onDisable
in interfaceorg.bukkit.plugin.Plugin
- Overrides:
onDisable
in classorg.bukkit.plugin.java.JavaPlugin
-
command
public void command(org.bukkit.event.player.PlayerCommandPreprocessEvent e)
-
-