blob: 3964808b4edeb2563c6cf91df96a6966cf8643a7 (
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.SOURCE)
@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";
}
|