com.quartercode.quarterbukkit.api.exception
Class NoCommandPermissionException
java.lang.Object
org.bukkit.event.Event
com.quartercode.quarterbukkit.api.exception.GameException
com.quartercode.quarterbukkit.api.exception.NoPermissionException
com.quartercode.quarterbukkit.api.exception.NoCommandPermissionException
- All Implemented Interfaces:
- org.bukkit.event.Cancellable
public class NoCommandPermissionException
- extends NoPermissionException
The NoPermissionException represents an exception caused by not enough permissions.
Nested classes/interfaces inherited from class org.bukkit.event.Event |
org.bukkit.event.Event.Result |
Constructor Summary |
NoCommandPermissionException(org.bukkit.plugin.Plugin plugin,
java.lang.String permission,
org.bukkit.command.CommandSender causer,
Command command)
Creates an NoCommandPermissionException filled with a CommandSender causer, the permission and the tried command. |
NoCommandPermissionException(org.bukkit.plugin.Plugin plugin,
java.lang.String permission,
org.bukkit.command.CommandSender causer,
Command command,
java.lang.String message)
Creates an NoCommandPermissionException filled with a CommandSender causer, the permission, the tried command and an informational message. |
Methods inherited from class org.bukkit.event.Event |
getEventName, isAsynchronous |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NoCommandPermissionException
public NoCommandPermissionException(org.bukkit.plugin.Plugin plugin,
java.lang.String permission,
org.bukkit.command.CommandSender causer,
Command command)
- Creates an NoCommandPermissionException filled with a
CommandSender
causer, the permission and the tried command.
- Parameters:
plugin
- The causing Plugin
.permission
- The permission which the causer doesn't have.causer
- The CommandSender
who has't enough permissions.command
- The Command
which the CommandSender
tried to execute.
NoCommandPermissionException
public NoCommandPermissionException(org.bukkit.plugin.Plugin plugin,
java.lang.String permission,
org.bukkit.command.CommandSender causer,
Command command,
java.lang.String message)
- Creates an NoCommandPermissionException filled with a
CommandSender
causer, the permission, the tried command and an informational message.
- Parameters:
plugin
- The causing Plugin
.permission
- The permission which the causer doesn't have.causer
- The CommandSender
who has't enough permissions.command
- The Command
which the CommandSender
tried to execute.message
- The information message.
getCommand
public Command getCommand()
- Returns the tried
Command
.
- Returns:
- The
Command
which the CommandSender
tried to execute.