Package net.jeqo.bloons.commands.utils
Class ErrorHandling
java.lang.Object
net.jeqo.bloons.commands.utils.ErrorHandling
A class used to handle errors on commands and to send the usage message to the sender
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
usage
(org.bukkit.command.CommandSender sender) Sends a message to the sender that the command was not found.
-
Constructor Details
-
ErrorHandling
public ErrorHandling()
-
-
Method Details
-
usage
public static void usage(org.bukkit.command.CommandSender sender) Sends a message to the sender that the command was not found. Based on the commands the player has access to, it will also send a list of available commands- Parameters:
sender
- The sender of the command, type org.bukkit.command.CommandSender
-