Package net.lewmc.essence.gamemode
Class UtilGamemode
java.lang.Object
net.lewmc.essence.gamemode.UtilGamemode
The gamemode utility.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanTells the user they haven't set a mode.booleanprocessShortCommand(String command, org.bukkit.GameMode gm, org.bukkit.command.CommandSender cs, String[] args, Essence plugin) Processes one of the short gamemode commands.
-
Constructor Details
-
UtilGamemode
public UtilGamemode()
-
-
Method Details
-
noModeSet
Tells the user they haven't set a mode.- Parameters:
plugin- Reference to the main Essence class.cs- CommandSender - The command sender.- Returns:
- true/false - Success?
-
processShortCommand
public boolean processShortCommand(String command, org.bukkit.GameMode gm, org.bukkit.command.CommandSender cs, String[] args, Essence plugin) Processes one of the short gamemode commands.- Parameters:
command- String - The command's label.gm- GameMode - The requested gamemode.cs- CommandSender - The sender of the command.args- String[] - The arguments sentplugin- Reference to the main Essence class.- Returns:
- true/false - Success?
-