diff options
author | Xor Boole <mcyoung@mit.edu> | 2015-02-20 19:52:58 -0500 |
---|---|---|
committer | Xor Boole <mcyoung@mit.edu> | 2015-02-20 19:52:58 -0500 |
commit | df545f4fc89a706003b939b32d4f0bae1574dca5 (patch) | |
tree | 349acf02f5b409ed5c5f2c77105d5722db7c183d /src/main/java/org/bukkit/plugin/java/annotation/Name.java | |
download | plugin-annotations-df545f4fc89a706003b939b32d4f0bae1574dca5.tar plugin-annotations-df545f4fc89a706003b939b32d4f0bae1574dca5.tar.gz plugin-annotations-df545f4fc89a706003b939b32d4f0bae1574dca5.tar.lz plugin-annotations-df545f4fc89a706003b939b32d4f0bae1574dca5.tar.xz plugin-annotations-df545f4fc89a706003b939b32d4f0bae1574dca5.zip |
Initial Commit
Diffstat (limited to 'src/main/java/org/bukkit/plugin/java/annotation/Name.java')
-rw-r--r-- | src/main/java/org/bukkit/plugin/java/annotation/Name.java | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/plugin/java/annotation/Name.java b/src/main/java/org/bukkit/plugin/java/annotation/Name.java new file mode 100644 index 0000000..2ef196b --- /dev/null +++ b/src/main/java/org/bukkit/plugin/java/annotation/Name.java @@ -0,0 +1,18 @@ +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 name of the plugin. + * <p> + * If not present in a class annotated with {@link Main} the name defaults to Class.getSimpleName() and will emmit a warning. + */ + +@Target(ElementType.TYPE) +public @interface Name { + + public String value(); +} |