mirror of
https://github.com/TotalFreedomMC/TF-Marriage.git
synced 2024-06-27 16:30:50 +00:00
32 lines
755 B
Java
32 lines
755 B
Java
package com.lenis0012.bukkit.marriage2.internal;
|
|
|
|
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)
|
|
public @interface Register {
|
|
String name();
|
|
|
|
Type type();
|
|
|
|
int priority() default 5;
|
|
|
|
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;
|
|
}
|
|
}
|
|
} |