mirror of
https://github.com/plexusorg/Plex.git
synced 2024-11-17 09:06:12 +00:00
36 lines
865 B
Java
36 lines
865 B
Java
package dev.plex.command.annotation;
|
|
|
|
import dev.plex.command.source.RequiredCommandSource;
|
|
import dev.plex.rank.enums.Rank;
|
|
import java.lang.annotation.Retention;
|
|
import java.lang.annotation.RetentionPolicy;
|
|
|
|
/**
|
|
* Storage for the command's permissions
|
|
*/
|
|
@Retention(RetentionPolicy.RUNTIME)
|
|
public @interface CommandPermissions
|
|
{
|
|
/**
|
|
* Minimum rank required
|
|
*
|
|
* @return Minimum rank required for the command
|
|
* @see Rank
|
|
*/
|
|
Rank level() default Rank.IMPOSTOR;
|
|
|
|
/**
|
|
* Required command source
|
|
*
|
|
* @return The required command source of the command
|
|
* @see RequiredCommandSource
|
|
*/
|
|
RequiredCommandSource source() default RequiredCommandSource.ANY;
|
|
|
|
/**
|
|
* The permission
|
|
*
|
|
* @return Permission of the command
|
|
*/
|
|
String permission() default ""; // No idea what to put here
|
|
} |