summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/bukkit/plugin/java/annotation/Version.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org/bukkit/plugin/java/annotation/Version.java')
-rw-r--r--src/main/java/org/bukkit/plugin/java/annotation/Version.java20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/plugin/java/annotation/Version.java b/src/main/java/org/bukkit/plugin/java/annotation/Version.java
new file mode 100644
index 0000000..2d7ab66
--- /dev/null
+++ b/src/main/java/org/bukkit/plugin/java/annotation/Version.java
@@ -0,0 +1,20 @@
+package org.bukkit.plugin.java.annotation;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Target;
+
+/**
+ * Part of the plugin annotations framework.
+ * <p>
+ * Represents the version of the plugin.
+ * <p>
+ * If not present in a class annotated with {@link Main} the name defaults to "v0.0" and will emmit a warning.
+ */
+
+@Target(ElementType.TYPE)
+public @interface Version {
+
+ public String value();
+
+ public static final String DEFAULT_VERSION = "v0.0";
+}