blob: d247d7ef4d40d60bd593e5e55fa7990c5c77899f (
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
27
28
29
30
|
package org.bukkit.plugin.java.annotation.plugin;
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;
/**
* Represents the required elements needed to register a Bukkit plugin.
* This <i>must</i> be placed in the main class of your plugin
* (i.e. the class that extends {@link org.bukkit.plugin.java.JavaPlugin}
*/
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface Plugin {
/**
* The name of this plugin
*/
String name();
/**
* This version of this plugin
*/
String version();
String DEFAULT_VERSION = "v0.0";
}
|