Add @since and CHANGELOG.md entry for flag permissions
This commit is contained in:
parent
87a28b135b
commit
3e28cc3191
4 changed files with 5 additions and 0 deletions
|
|
@ -134,6 +134,7 @@ public final class CommandFlag<T> {
|
|||
* Get the command permission, if it exists
|
||||
*
|
||||
* @return Command permission, or {@code null}
|
||||
* @since 1.6.0
|
||||
*/
|
||||
public CommandPermission getCommandPermission() {
|
||||
return this.permission;
|
||||
|
|
|
|||
|
|
@ -158,6 +158,7 @@ public final class CommandContext<C> {
|
|||
*
|
||||
* @param permission The permission
|
||||
* @return Command sender
|
||||
* @since 1.6.0
|
||||
*/
|
||||
public boolean hasPermission(final @NonNull CommandPermission permission) {
|
||||
return this.commandManager.hasPermission(this.commandSender, permission);
|
||||
|
|
@ -168,6 +169,7 @@ public final class CommandContext<C> {
|
|||
*
|
||||
* @param permission The permission
|
||||
* @return Command sender
|
||||
* @since 1.6.0
|
||||
*/
|
||||
public boolean hasPermission(final @NonNull String permission) {
|
||||
return this.commandManager.hasPermission(this.commandSender, permission);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue