|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.quartercode.quarterbukkit.api.exception.GameException
com.quartercode.quarterbukkit.api.exception.NoPermissionException
public class NoPermissionException
The NoPermissionException represents an exception caused by not enough permissions.
Constructor Summary | |
---|---|
NoPermissionException(org.bukkit.plugin.Plugin plugin,
java.lang.String permission,
org.bukkit.command.CommandSender causer)
Creates an NoPermissionException filled with a CommandSender causer and the permission. |
|
NoPermissionException(org.bukkit.plugin.Plugin plugin,
java.lang.String permission,
org.bukkit.command.CommandSender causer,
java.lang.String message)
Creates an NoPermissionException filled with a CommandSender causer, the permission and an informational message. |
Method Summary | |
---|---|
org.bukkit.command.CommandSender |
getCauser()
Returns the CommandSender causer. |
java.lang.String |
getPermission()
Returns the permission which the causer doesn't have. |
Methods inherited from class com.quartercode.quarterbukkit.api.exception.GameException |
---|
getMessage, getPlugin |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NoPermissionException(org.bukkit.plugin.Plugin plugin, java.lang.String permission, org.bukkit.command.CommandSender causer)
CommandSender
causer and the permission.
plugin
- The causing Plugin
.permission
- The permission which the causer doesn't have.causer
- The CommandSender
who has't enough permissions.public NoPermissionException(org.bukkit.plugin.Plugin plugin, java.lang.String permission, org.bukkit.command.CommandSender causer, java.lang.String message)
CommandSender
causer, the permission and an informational message.
plugin
- The causing Plugin
.permission
- The permission which the causer doesn't have.causer
- The CommandSender
who has't enough permissions.message
- The information message.Method Detail |
---|
public java.lang.String getPermission()
public org.bukkit.command.CommandSender getCauser()
CommandSender
causer.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |