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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
onCommand
(@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.void
onEnable()
Called when the plugin is enabled.void
onLoad()
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, toString
Methods inherited from class org.bukkit.plugin.PluginBase
equals, getName, hashCode
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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:
onEnable
in interfaceorg.bukkit.plugin.Plugin
- Overrides:
onEnable
in classorg.bukkit.plugin.java.JavaPlugin
- Since:
- 1.0-SNAPSHOT
-
onLoad
public void onLoad()Called when the plugin is loaded.- Specified by:
onLoad
in interfaceorg.bukkit.plugin.Plugin
- Overrides:
onLoad
in 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:
onTabComplete
in interfaceorg.bukkit.command.TabCompleter
- Overrides:
onTabComplete
in 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:
onCommand
in interfaceorg.bukkit.command.CommandExecutor
- Overrides:
onCommand
in classorg.bukkit.plugin.java.JavaPlugin
- Parameters:
sender
- The command sendercommand
- The command to execute.label
- The command aliasargs
- The command arguments.- Returns:
true
if the command was executed successfully; otherwise,false
- Since:
- 1.0-SNAPSHOT
-