Class UtilGamemode

java.lang.Object
net.lewmc.essence.gamemode.UtilGamemode

public class UtilGamemode extends Object
The gamemode utility.
  • Constructor Details

    • UtilGamemode

      public UtilGamemode()
  • Method Details

    • noModeSet

      public boolean noModeSet(Essence plugin, org.bukkit.command.CommandSender cs)
      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 sent
      plugin - Reference to the main Essence class.
      Returns:
      true/false - Success?