Class CommandUtil

java.lang.Object
net.lewmc.essence.utils.CommandUtil

public class CommandUtil extends Object
The command utility.
  • Constructor Details

    • CommandUtil

      public CommandUtil(Essence plugin)
      The constructor for the CommandUtil.
      Parameters:
      plugin - Reference to the main Essence class.
  • Method Details

    • isDisabled

      public boolean isDisabled(String command)
      Checks if a command is disabled.
      Parameters:
      command - String - the command to check.
      Returns:
      Boolean - if the command is enabled.
    • disabled

      public boolean disabled(MessageUtil msg)
      Responds to disabled command usage.
      Parameters:
      msg - MessageUtil - The message utility.
      Returns:
      boolean - Verbose mode (false) or not (true)
    • isPaperCompatible

      public boolean isPaperCompatible()
      Checks if the server is compatible with PaperMC.
      Returns:
      boolean - If the server is paper compatible.
    • console

      public boolean console(org.bukkit.command.CommandSender commandSender)
      Checks if the commandSender is the console.
      Parameters:
      commandSender - CommandSender
      Returns:
      true if the command sender is the console.