Package dev.satyrn.deepcavespiders
Class DeepCaveSpiders
java.lang.Object
org.bukkit.plugin.PluginBase
org.bukkit.plugin.java.JavaPlugin
dev.satyrn.deepcavespiders.DeepCaveSpiders
- All Implemented Interfaces:
org.bukkit.command.CommandExecutor,org.bukkit.command.TabCompleter,org.bukkit.command.TabExecutor,org.bukkit.plugin.Plugin
public final class DeepCaveSpiders
extends org.bukkit.plugin.java.JavaPlugin
Represents the Deep Cave Spiders plugin.
- Since:
- 1.0-SNAPSHOT
- Author:
- Isabel Maskrey
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanonCommand(@NotNull org.bukkit.command.CommandSender sender, @NotNull org.bukkit.command.Command command, @NotNull String label, @NotNull String[] args) Executes the given command, returning whether it was successful.voidonEnable()Called when the plugin is enabled.voidonLoad()Called when the plugin is loaded.onTabComplete(@NotNull org.bukkit.command.CommandSender sender, @NotNull org.bukkit.command.Command command, @NotNull String alias, @NotNull String[] args) Requests a list of possible completion options for a command.Methods inherited from class org.bukkit.plugin.java.JavaPlugin
getClassLoader, getCommand, getConfig, getDataFolder, getDefaultBiomeProvider, getDefaultWorldGenerator, getDescription, getFile, getLogger, getPlugin, getPluginLoader, getProvidingPlugin, getResource, getServer, getTextResource, isEnabled, isNaggable, onDisable, reloadConfig, saveConfig, saveDefaultConfig, saveResource, setEnabled, setNaggable, toStringMethods inherited from class org.bukkit.plugin.PluginBase
equals, getName, hashCodeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.bukkit.plugin.Plugin
getLog4JLogger, getSLF4JLogger
-
Constructor Details
-
DeepCaveSpiders
public DeepCaveSpiders()
-
-
Method Details
-
onEnable
public void onEnable()Called when the plugin is enabled.- Specified by:
onEnablein interfaceorg.bukkit.plugin.Plugin- Overrides:
onEnablein classorg.bukkit.plugin.java.JavaPlugin- Since:
- 1.0-SNAPSHOT
-
onLoad
public void onLoad()Called when the plugin is loaded.- Specified by:
onLoadin interfaceorg.bukkit.plugin.Plugin- Overrides:
onLoadin classorg.bukkit.plugin.java.JavaPlugin- Since:
- 1.0-SNAPSHOT
-
onTabComplete
@NotNull public @NotNull 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) Requests a list of possible completion options for a command.- Specified by:
onTabCompletein interfaceorg.bukkit.command.TabCompleter- Overrides:
onTabCompletein classorg.bukkit.plugin.java.JavaPlugin- Parameters:
sender- The command sender.command- The command.alias- The command alias.args- The command arguments.- Returns:
- A list of all possible completions for the current argument.
- Since:
- 1.0-SNAPSHOT
-
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) Executes the given command, returning whether it was successful.- Specified by:
onCommandin interfaceorg.bukkit.command.CommandExecutor- Overrides:
onCommandin classorg.bukkit.plugin.java.JavaPlugin- Parameters:
sender- The command sendercommand- The command to execute.label- The command aliasargs- The command arguments.- Returns:
trueif the command was executed successfully; otherwise,false- Since:
- 1.0-SNAPSHOT
-