Package net.lewmc.essence.utils
Class CommandUtil
java.lang.Object
net.lewmc.essence.utils.CommandUtil
The command utility.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
console
(org.bukkit.command.CommandSender commandSender) Checks if the commandSender is the console.boolean
disabled
(MessageUtil msg) Responds to disabled command usage.boolean
isDisabled
(String command) Checks if a command is disabled.boolean
Checks if the server is compatible with PaperMC.
-
Constructor Details
-
CommandUtil
The constructor for the CommandUtil.- Parameters:
plugin
- Reference to the main Essence class.
-
-
Method Details
-
isDisabled
Checks if a command is disabled.- Parameters:
command
- String - the command to check.- Returns:
- Boolean - if the command is enabled.
-
disabled
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.
-