mirror of
https://hub.spigotmc.org/stash/scm/spigot/plugin-annotations.git
synced 2025-04-13 09:29:56 +00:00
Change retention to RUNTIME instead of SOURCE.
This commit is contained in:
parent
ff90375334
commit
39f216740c
17 changed files with 17 additions and 17 deletions
|
@ -17,7 +17,7 @@ import java.lang.annotation.Target;
|
||||||
*/
|
*/
|
||||||
@Documented
|
@Documented
|
||||||
@Target(ElementType.TYPE)
|
@Target(ElementType.TYPE)
|
||||||
@Retention(RetentionPolicy.SOURCE)
|
@Retention(RetentionPolicy.RUNTIME)
|
||||||
@Repeatable(DependsOn.class)
|
@Repeatable(DependsOn.class)
|
||||||
public @interface Dependency {
|
public @interface Dependency {
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -16,7 +16,7 @@ import java.lang.annotation.Target;
|
||||||
*/
|
*/
|
||||||
@Documented
|
@Documented
|
||||||
@Target(ElementType.TYPE)
|
@Target(ElementType.TYPE)
|
||||||
@Retention(RetentionPolicy.SOURCE)
|
@Retention(RetentionPolicy.RUNTIME)
|
||||||
public @interface DependsOn {
|
public @interface DependsOn {
|
||||||
Dependency[] value() default {};
|
Dependency[] value() default {};
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,7 +16,7 @@ import java.lang.annotation.Target;
|
||||||
* The plugin listed will be treated as a {@link SoftDependency}. <br>
|
* The plugin listed will be treated as a {@link SoftDependency}. <br>
|
||||||
*/
|
*/
|
||||||
@Documented
|
@Documented
|
||||||
@Retention(RetentionPolicy.SOURCE)
|
@Retention(RetentionPolicy.RUNTIME)
|
||||||
@Target(ElementType.TYPE)
|
@Target(ElementType.TYPE)
|
||||||
@Repeatable(LoadBeforePlugins.class)
|
@Repeatable(LoadBeforePlugins.class)
|
||||||
public @interface LoadBefore {
|
public @interface LoadBefore {
|
||||||
|
|
|
@ -13,7 +13,7 @@ import java.lang.annotation.Target;
|
||||||
* how repeating annotations work.
|
* how repeating annotations work.
|
||||||
*/
|
*/
|
||||||
@Documented
|
@Documented
|
||||||
@Retention(RetentionPolicy.SOURCE)
|
@Retention(RetentionPolicy.RUNTIME)
|
||||||
@Target(ElementType.TYPE)
|
@Target(ElementType.TYPE)
|
||||||
public @interface LoadBeforePlugins {
|
public @interface LoadBeforePlugins {
|
||||||
LoadBefore[] value() default {};
|
LoadBefore[] value() default {};
|
||||||
|
|
|
@ -17,7 +17,7 @@ import java.lang.annotation.Target;
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@Documented
|
@Documented
|
||||||
@Retention(RetentionPolicy.SOURCE)
|
@Retention(RetentionPolicy.RUNTIME)
|
||||||
@Target(ElementType.TYPE)
|
@Target(ElementType.TYPE)
|
||||||
@Repeatable(SoftDependsOn.class)
|
@Repeatable(SoftDependsOn.class)
|
||||||
public @interface SoftDependency {
|
public @interface SoftDependency {
|
||||||
|
|
|
@ -17,7 +17,7 @@ import java.lang.annotation.Target;
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@Documented
|
@Documented
|
||||||
@Retention(RetentionPolicy.SOURCE)
|
@Retention(RetentionPolicy.RUNTIME)
|
||||||
@Target(ElementType.TYPE)
|
@Target(ElementType.TYPE)
|
||||||
public @interface SoftDependsOn {
|
public @interface SoftDependsOn {
|
||||||
SoftDependency[] value() default {};
|
SoftDependency[] value() default {};
|
||||||
|
|
|
@ -11,7 +11,7 @@ import java.lang.annotation.Target;
|
||||||
*/
|
*/
|
||||||
@Documented
|
@Documented
|
||||||
@Target(ElementType.TYPE)
|
@Target(ElementType.TYPE)
|
||||||
@Retention(RetentionPolicy.SOURCE)
|
@Retention(RetentionPolicy.RUNTIME)
|
||||||
public @interface ChildPermission {
|
public @interface ChildPermission {
|
||||||
/**
|
/**
|
||||||
* If true, this child node will inherit the parent {@link Permission}'s permission.
|
* If true, this child node will inherit the parent {@link Permission}'s permission.
|
||||||
|
|
|
@ -14,7 +14,7 @@ import java.lang.annotation.Target;
|
||||||
* Defines a plugin permission
|
* Defines a plugin permission
|
||||||
*/
|
*/
|
||||||
@Documented
|
@Documented
|
||||||
@Retention(RetentionPolicy.SOURCE)
|
@Retention(RetentionPolicy.RUNTIME)
|
||||||
@Target(ElementType.TYPE)
|
@Target(ElementType.TYPE)
|
||||||
@Repeatable(Permissions.class)
|
@Repeatable(Permissions.class)
|
||||||
public @interface Permission {
|
public @interface Permission {
|
||||||
|
|
|
@ -15,7 +15,7 @@ import java.lang.annotation.Target;
|
||||||
* how repeating annotations work.
|
* how repeating annotations work.
|
||||||
*/
|
*/
|
||||||
@Documented
|
@Documented
|
||||||
@Retention(RetentionPolicy.SOURCE)
|
@Retention(RetentionPolicy.RUNTIME)
|
||||||
@Target(ElementType.TYPE)
|
@Target(ElementType.TYPE)
|
||||||
public @interface Permissions {
|
public @interface Permissions {
|
||||||
Permission[] value() default {};
|
Permission[] value() default {};
|
||||||
|
|
|
@ -19,7 +19,7 @@ import java.util.Collection;
|
||||||
* Pre-1.13 plugins do not need to use this annotation.
|
* Pre-1.13 plugins do not need to use this annotation.
|
||||||
*/
|
*/
|
||||||
@Documented
|
@Documented
|
||||||
@Retention( RetentionPolicy.SOURCE )
|
@Retention(RetentionPolicy.RUNTIME)
|
||||||
@Target( ElementType.TYPE )
|
@Target( ElementType.TYPE )
|
||||||
public @interface ApiVersion {
|
public @interface ApiVersion {
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@ import java.lang.annotation.Target;
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@Documented
|
@Documented
|
||||||
@Retention(RetentionPolicy.SOURCE)
|
@Retention(RetentionPolicy.RUNTIME)
|
||||||
@Target(ElementType.TYPE)
|
@Target(ElementType.TYPE)
|
||||||
public @interface Description {
|
public @interface Description {
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -15,7 +15,7 @@ import java.lang.annotation.Target;
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@Documented
|
@Documented
|
||||||
@Retention(RetentionPolicy.SOURCE)
|
@Retention(RetentionPolicy.RUNTIME)
|
||||||
@Target(ElementType.TYPE)
|
@Target(ElementType.TYPE)
|
||||||
public @interface LoadOrder {
|
public @interface LoadOrder {
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -13,7 +13,7 @@ import java.lang.annotation.Target;
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@Documented
|
@Documented
|
||||||
@Retention(RetentionPolicy.SOURCE)
|
@Retention(RetentionPolicy.RUNTIME)
|
||||||
@Target(ElementType.TYPE)
|
@Target(ElementType.TYPE)
|
||||||
public @interface LogPrefix {
|
public @interface LogPrefix {
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -13,7 +13,7 @@ import java.lang.annotation.Target;
|
||||||
* (i.e. the class that extends {@link org.bukkit.plugin.java.JavaPlugin}
|
* (i.e. the class that extends {@link org.bukkit.plugin.java.JavaPlugin}
|
||||||
*/
|
*/
|
||||||
@Documented
|
@Documented
|
||||||
@Retention(RetentionPolicy.SOURCE)
|
@Retention(RetentionPolicy.RUNTIME)
|
||||||
@Target(ElementType.TYPE)
|
@Target(ElementType.TYPE)
|
||||||
public @interface Plugin {
|
public @interface Plugin {
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -13,7 +13,7 @@ import java.lang.annotation.Target;
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@Documented
|
@Documented
|
||||||
@Retention(RetentionPolicy.SOURCE)
|
@Retention(RetentionPolicy.RUNTIME)
|
||||||
@Target(ElementType.TYPE)
|
@Target(ElementType.TYPE)
|
||||||
public @interface Website {
|
public @interface Website {
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -14,7 +14,7 @@ import java.lang.annotation.Target;
|
||||||
* in plugin.yml if a single author, otherwise {@code authors}
|
* in plugin.yml if a single author, otherwise {@code authors}
|
||||||
*/
|
*/
|
||||||
@Documented
|
@Documented
|
||||||
@Retention(RetentionPolicy.SOURCE)
|
@Retention(RetentionPolicy.RUNTIME)
|
||||||
@Target(ElementType.TYPE)
|
@Target(ElementType.TYPE)
|
||||||
@Repeatable(Authors.class)
|
@Repeatable(Authors.class)
|
||||||
public @interface Author {
|
public @interface Author {
|
||||||
|
|
|
@ -13,7 +13,7 @@ import java.lang.annotation.Target;
|
||||||
* how repeating annotations work.
|
* how repeating annotations work.
|
||||||
*/
|
*/
|
||||||
@Documented
|
@Documented
|
||||||
@Retention(RetentionPolicy.SOURCE)
|
@Retention(RetentionPolicy.RUNTIME)
|
||||||
@Target(ElementType.TYPE)
|
@Target(ElementType.TYPE)
|
||||||
public @interface Authors {
|
public @interface Authors {
|
||||||
Author[] value();
|
Author[] value();
|
||||||
|
|
Loading…
Add table
Reference in a new issue