Package fr.andross.banitem
Class BanItem
java.lang.Object
org.bukkit.plugin.PluginBase
org.bukkit.plugin.java.JavaPlugin
fr.andross.banitem.BanItem
- All Implemented Interfaces:
org.bukkit.command.CommandExecutor
,org.bukkit.command.TabCompleter
,org.bukkit.command.TabExecutor
,org.bukkit.plugin.Plugin
public final class BanItem
extends org.bukkit.plugin.java.JavaPlugin
BanItemPlugin
- Version:
- 3.4
- Author:
- Andross
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetApi()
Get the ban apiGet a the ban config helperGet the ban database, containing blacklist, whitelist and customitemsgetHooks()
Get the ban hooksstatic BanItem
Gives the current instance of the plugin.Get the class that handle the listenersgetUtils()
An utility class for the pluginvoid
(re)Loading the plugin with this configuration file.boolean
onCommand
(org.bukkit.command.CommandSender sender, org.bukkit.command.Command command, String label, String[] args) void
onEnable()
onTabComplete
(org.bukkit.command.CommandSender sender, org.bukkit.command.Command command, String alias, String[] args) Methods inherited from class org.bukkit.plugin.java.JavaPlugin
getClassLoader, getCommand, getConfig, getDataFolder, getDefaultWorldGenerator, getDescription, getFile, getLogger, getPlugin, getPluginLoader, getProvidingPlugin, getResource, getServer, getTextResource, isEnabled, isNaggable, onDisable, onLoad, reloadConfig, saveConfig, saveDefaultConfig, saveResource, setEnabled, setNaggable, toString
Methods inherited from class org.bukkit.plugin.PluginBase
equals, getName, hashCode
-
Constructor Details
-
BanItem
public BanItem()
-
-
Method Details
-
onEnable
public void onEnable()- Specified by:
onEnable
in interfaceorg.bukkit.plugin.Plugin
- Overrides:
onEnable
in classorg.bukkit.plugin.java.JavaPlugin
-
load
(re)Loading the plugin with this configuration file. If no config file set, using the default config.yml one.- Parameters:
sender
- command sender (send the message debug to)configFile
- the file configuration to load. If null, using (and reloading) the default config
-
onCommand
public boolean onCommand(@NotNull org.bukkit.command.CommandSender sender, @NotNull org.bukkit.command.Command command, @NotNull String label, @NotNull String[] args) - Specified by:
onCommand
in interfaceorg.bukkit.command.CommandExecutor
- Overrides:
onCommand
in classorg.bukkit.plugin.java.JavaPlugin
-
onTabComplete
@Nullable public List<String> onTabComplete(@NotNull org.bukkit.command.CommandSender sender, @NotNull org.bukkit.command.Command command, @NotNull String alias, @NotNull String[] args) - Specified by:
onTabComplete
in interfaceorg.bukkit.command.TabCompleter
- Overrides:
onTabComplete
in classorg.bukkit.plugin.java.JavaPlugin
-
getInstance
Gives the current instance of the plugin. The plugin should not be accessed this way, but rather withPluginManager.getPlugin(String)
- Returns:
- the current instance of the plugin
-
getApi
Get the ban api- Returns:
- the ban item api
-
getBanConfig
Get a the ban config helper- Returns:
- the ban config helper
-
getHooks
Get the ban hooks- Returns:
- the ban hooks
-
getBanDatabase
Get the ban database, containing blacklist, whitelist and customitems- Returns:
- the ban database
-
getUtils
An utility class for the plugin- Returns:
- an utility class
-
getListener
Get the class that handle the listeners- Returns:
- the class that handle the listeners
-