blob: 7fe1a3d3ddd27c1eab5ad0f06df28c9c756efcae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
package org.bukkit.plugin.java.annotation.permission;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Defines a child permission for {@link Permission}
*/
@Documented
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.SOURCE)
public @interface ChildPermission {
/**
* If true, this child node will inherit the parent {@link Permission}'s permission.
* If false, this child node inherits the inverse parent permission.
*/
boolean inherit() default true;
/**
* The name of the child permission.
*/
String name();
}
|