aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/cc/polyfrost/oneconfig/config/annotations/CustomOption.java
diff options
context:
space:
mode:
authorDeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com>2022-07-27 13:26:44 +0200
committerGitHub <noreply@github.com>2022-07-27 13:26:44 +0200
commit78407ee8f0eb5f7786042e82108a755319ec8ced (patch)
treebc8ce3d35b3c60e83d963fb4344ea269d3c6b78e /src/main/java/cc/polyfrost/oneconfig/config/annotations/CustomOption.java
parent4f6bb78ddc2e6a418a555189ee665f892c85dfb4 (diff)
downloadOneConfig-78407ee8f0eb5f7786042e82108a755319ec8ced.tar.gz
OneConfig-78407ee8f0eb5f7786042e82108a755319ec8ced.tar.bz2
OneConfig-78407ee8f0eb5f7786042e82108a755319ec8ced.zip
Custom option fixes (#72)
some small changes
Diffstat (limited to 'src/main/java/cc/polyfrost/oneconfig/config/annotations/CustomOption.java')
-rw-r--r--src/main/java/cc/polyfrost/oneconfig/config/annotations/CustomOption.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main/java/cc/polyfrost/oneconfig/config/annotations/CustomOption.java b/src/main/java/cc/polyfrost/oneconfig/config/annotations/CustomOption.java
index dcfca53..d9ebc80 100644
--- a/src/main/java/cc/polyfrost/oneconfig/config/annotations/CustomOption.java
+++ b/src/main/java/cc/polyfrost/oneconfig/config/annotations/CustomOption.java
@@ -1,15 +1,15 @@
package cc.polyfrost.oneconfig.config.annotations;
-import cc.polyfrost.oneconfig.config.data.OptionType;
-import cc.polyfrost.oneconfig.internal.config.annotations.Option;
-
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
+/**
+ * For documentation please see: <a href="https://docs.polyfrost.cc/oneconfig/config/adding-options/custom-options">https://docs.polyfrost.cc/oneconfig/config/adding-options/custom-options</a>
+ */
@Retention(RetentionPolicy.RUNTIME)
-@Target(ElementType.FIELD)
+@Target({ElementType.FIELD, ElementType.ANNOTATION_TYPE})
public @interface CustomOption {
String id() default "";
}