Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose CommandPermission in NoPermissionException #469

Merged
merged 5 commits into from
Oct 6, 2023
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,25 @@ public final String getMessage() {
* Get the missing permission node
*
* @return Get the missing permission node
* @deprecated use {@link #missingPermission()} instead
*/
@API(status = API.Status.DEPRECATED, since = "1.9.0")
@Deprecated
public @NonNull String getMissingPermission() {
return this.missingPermission.toString();
}

/**
* Returns the missing {@link CommandPermission}
*
* @return the missing permission
* @since 1.8.5
jpenilla marked this conversation as resolved.
Show resolved Hide resolved
*/
@API(status = API.Status.STABLE, since = "1.9.0")
public @NonNull CommandPermission missingPermission() {
return this.missingPermission;
}

@Override
public final synchronized Throwable fillInStackTrace() {
return this;
Expand Down
Loading