Contents
Class NoPermissionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.hypixel.hytale.server.core.command.system.exceptions.CommandException
com.hypixel.hytale.server.core.command.system.exceptions.NoPermissionException
- All Implemented Interfaces:
Serializable
A command exception that occurs when the sender lacks the required permission.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionNoPermissionException(String permission) Default Constructor for aNoPermissionExceptioninstance. -
Method Summary
Modifier and TypeMethodDescriptionvoidsendTranslatedMessage(CommandSender sender) Sends a translated message to the given sender.Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
NoPermissionException
Default Constructor for aNoPermissionExceptioninstance.- Parameters:
permission- The permission that the sender lacks.
-
-
Method Details
-
sendTranslatedMessage
Description copied from class:CommandExceptionSends a translated message to the given sender.- Specified by:
sendTranslatedMessagein classCommandException- Parameters:
sender- The sender to send the message to.
-