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
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull BanItemAPIgetApi()Get the BanItem API.@NotNull BanConfigGet the ban config helper.@NotNull BanDatabaseGet the ban database, containing custom/meta items, blacklist, and whitelist.getHooks()Get the ban hooks.static @NotNull BanItemGives the current instance of the plugin.@NotNull BanListenerGet the class that handle the listeners.@NotNull BanUtilsgetUtils()Utility class for the plugin.void(re)Loading the plugin with this configuration file.booleanonCommand(@NotNull org.bukkit.command.CommandSender sender, @NotNull org.bukkit.command.Command command, @NotNull String label, @NotNull String[] args) voidonEnable()onTabComplete(@NotNull org.bukkit.command.CommandSender sender, @NotNull org.bukkit.command.Command command, @NotNull String alias, @NotNull 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, toStringMethods inherited from class org.bukkit.plugin.PluginBase
equals, getName, hashCode
-
Constructor Details
-
BanItem
public BanItem()Default constructor
-
-
Method Details
-
onEnable
public void onEnable()- Specified by:
onEnablein interfaceorg.bukkit.plugin.Plugin- Overrides:
onEnablein classorg.bukkit.plugin.java.JavaPlugin
-
load
public void load(@NotNull @NotNull org.bukkit.command.CommandSender sender, @Nullable @Nullable File configFile) (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 @NotNull org.bukkit.command.CommandSender sender, @NotNull @NotNull org.bukkit.command.Command command, @NotNull @NotNull String label, @NotNull @NotNull String[] args) - Specified by:
onCommandin interfaceorg.bukkit.command.CommandExecutor- Overrides:
onCommandin classorg.bukkit.plugin.java.JavaPlugin
-
onTabComplete
@Nullable public @Nullable List<String> onTabComplete(@NotNull @NotNull org.bukkit.command.CommandSender sender, @NotNull @NotNull org.bukkit.command.Command command, @NotNull @NotNull String alias, @NotNull @NotNull String[] args) - Specified by:
onTabCompletein interfaceorg.bukkit.command.TabCompleter- Overrides:
onTabCompletein 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 BanItem API.- Returns:
- the ban item api
-
getBanConfig
Get the ban config helper.- Returns:
- the ban config helper
-
getHooks
Get the ban hooks.- Returns:
- the ban hooks
-
getBanDatabase
Get the ban database, containing custom/meta items, blacklist, and whitelist.- Returns:
- the ban database
-
getUtils
Utility class for the plugin.- Returns:
- utility class for the plugin
-
getListener
Get the class that handle the listeners.- Returns:
- the class that handle the listeners
-