TF-Marriage/src/main/java/com/lenis0012/bukkit/marriage2/internal/Register.java

32 lines
755 B
Java
Raw Normal View History

2014-11-12 19:41:40 +00:00
package com.lenis0012.bukkit.marriage2.internal;
2014-11-13 16:53:47 +00:00
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
2014-11-12 19:41:40 +00:00
public @interface Register {
String name();
Type type();
2014-11-12 21:27:22 +00:00
int priority() default 5;
2014-11-12 19:41:40 +00:00
public static enum Type {
LOAD("Completed plugin pre-load stage."),
ENABLE("Completed plugin load stage."),
DISABLE("Plugin has been completely disabled.");
private final String completionMessage;
private Type(String completionMessage) {
this.completionMessage = completionMessage;
}
public String getCompletionMessage() {
return completionMessage;
}
}
}