Package net.lewmc.essence.commands
Class GamemodeCommands
java.lang.Object
net.lewmc.essence.commands.GamemodeCommands
- All Implemented Interfaces:
org.bukkit.command.CommandExecutor
Gamemode commands class.
-
Constructor Summary
ConstructorDescriptionGamemodeCommands
(Essence plugin) Constructor for the GamemodeCommands class. -
Method Summary
-
Constructor Details
-
GamemodeCommands
Constructor for the GamemodeCommands class.- Parameters:
plugin
- References to the main plugin class.
-
-
Method Details
-
onCommand
public boolean onCommand(@NotNull org.bukkit.command.CommandSender commandSender, @NotNull org.bukkit.command.Command command, @NotNull String s, String[] args) - Specified by:
onCommand
in interfaceorg.bukkit.command.CommandExecutor
- Parameters:
commandSender
- Information about who sent the command - player or console.command
- Information about what command was sent.s
- Command label - not used here.args
- The command's arguments.- Returns:
- boolean true/false - was the command accepted and processed or not?
-
noModeSet
public boolean noModeSet() -
console
public boolean console()
-