diff --git a/pom.xml b/pom.xml
index 917e697..e404501 100644
--- a/pom.xml
+++ b/pom.xml
@@ -138,30 +138,30 @@
false
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+ org.apache.maven.plugins
+ maven-javadoc-plugin
+ 3.2.0
+
+ javadoc
+
+ https://javadoc.io/doc/org.jetbrains/annotations/
+
+ false
+ UTF-8
+ UTF-8
+ UTF-8
+ zh_CN
+
+
+
+ attach-javadocs
+
+ jar
+
+
+
+
org.apache.maven.plugins
maven-compiler-plugin
diff --git a/src/main/java/cc/carm/plugin/ultradepository/Main.java b/src/main/java/cc/carm/plugin/ultradepository/Main.java
index dc30a9f..b0e34b9 100644
--- a/src/main/java/cc/carm/plugin/ultradepository/Main.java
+++ b/src/main/java/cc/carm/plugin/ultradepository/Main.java
@@ -41,6 +41,7 @@ public class Main extends JavaPlugin {
public void onEnable() {
instance = this;
scheduler = new SchedulerUtils(this);
+ outputPlugin();
log(getName() + " " + getDescription().getVersion() + " &7开始加载...");
long startTime = System.currentTimeMillis();
@@ -101,6 +102,7 @@ public class Main extends JavaPlugin {
@Override
public void onDisable() {
if (!initialized) return;
+ outputPlugin();
log(getName() + " " + getDescription().getVersion() + " 开始卸载...");
long startTime = System.currentTimeMillis();
@@ -174,4 +176,15 @@ public class Main extends JavaPlugin {
command.setExecutor(executor);
if (tabCompleter != null) command.setTabCompleter(tabCompleter);
}
+
+ public static void outputPlugin() {
+ log(" _ _ _ _ _____ _ _ ");
+ log("| | | | | | | __ \\ (_) | ");
+ log("| | | | | |_ _ __ __ _| | | | ___ _ __ ___ ___ _| |_ ___ _ __ _ _ ");
+ log("| | | | | __| '__/ _` | | | |/ _ \\ '_ \\ / _ \\/ __| | __/ _ \\| '__| | | |");
+ log("| |__| | | |_| | | (_| | |__| | __/ |_) | (_) \\__ \\ | || (_) | | | |_| |");
+ log(" \\____/|_|\\__|_| \\__,_|_____/ \\___| .__/ \\___/|___/_|\\__\\___/|_| \\__, |");
+ log(" | | __/ |");
+ log(" |_| |___/ ");
+ }
}
diff --git a/src/test/java/PluginNameTest.java b/src/test/java/PluginNameTest.java
new file mode 100644
index 0000000..dcb385c
--- /dev/null
+++ b/src/test/java/PluginNameTest.java
@@ -0,0 +1,27 @@
+import org.junit.Test;
+
+public class PluginNameTest {
+
+
+ @Test
+ public void test() {
+ outputPlugin();
+ }
+
+
+ public static void outputPlugin() {
+ log(" _ _ _ _ _____ _ _ ");
+ log("| | | | | | | __ \\ (_) | ");
+ log("| | | | | |_ _ __ __ _| | | | ___ _ __ ___ ___ _| |_ ___ _ __ _ _ ");
+ log("| | | | | __| '__/ _` | | | |/ _ \\ '_ \\ / _ \\/ __| | __/ _ \\| '__| | | |");
+ log("| |__| | | |_| | | (_| | |__| | __/ |_) | (_) \\__ \\ | || (_) | | | |_| |");
+ log(" \\____/|_|\\__|_| \\__,_|_____/ \\___| .__/ \\___/|___/_|\\__\\___/|_| \\__, |");
+ log(" | | __/ |");
+ log(" |_| |___/ ");
+ }
+
+ private static void log(String s) {
+ System.out.println(s);
+ }
+
+}