mirror of
https://github.com/TuxCoding/FastLogin.git
synced 2025-07-30 10:47:33 +02:00
Fill all plugin metadata properly.
This commit is contained in:
@ -45,6 +45,19 @@
|
|||||||
|
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
|
<artifactId>templating-maven-plugin</artifactId>
|
||||||
|
<version>1.0.0</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>filter-src</id>
|
||||||
|
<goals>
|
||||||
|
<goal>filter-sources</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-shade-plugin</artifactId>
|
<artifactId>maven-shade-plugin</artifactId>
|
||||||
|
@ -0,0 +1,9 @@
|
|||||||
|
package com.github.games647.fastlogin.velocity;
|
||||||
|
|
||||||
|
public class PomData {
|
||||||
|
public static final String DISPLAY_NAME = "${project.name}";
|
||||||
|
public static final String NAME = "${project.parent.artifactId}";
|
||||||
|
public static final String VERSION = "${project.version}-${git.commit.id.abbrev}";
|
||||||
|
public static final String DESCRIPTION = "${project.parent.description}";
|
||||||
|
public static final String URL = "${project.parent.url}";
|
||||||
|
}
|
@ -61,7 +61,8 @@ import com.velocitypowered.api.proxy.server.RegisteredServer;
|
|||||||
import net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer;
|
import net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
|
|
||||||
@Plugin(id = "fastlogin")
|
@Plugin(id = PomData.NAME, name = PomData.DISPLAY_NAME, description = PomData.DESCRIPTION, url = PomData.URL,
|
||||||
|
version = PomData.VERSION, authors = {"games647", "https://github.com/games647/FastLogin/graphs/contributors"})
|
||||||
public class FastLoginVelocity implements PlatformPlugin<CommandSource> {
|
public class FastLoginVelocity implements PlatformPlugin<CommandSource> {
|
||||||
private final ProxyServer server;
|
private final ProxyServer server;
|
||||||
private final Path dataDirectory;
|
private final Path dataDirectory;
|
||||||
@ -96,8 +97,7 @@ public class FastLoginVelocity implements PlatformPlugin<CommandSource> {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getName() {
|
public String getName() {
|
||||||
//FIXME: some dynamic way to get it?
|
return PomData.NAME;
|
||||||
return "fastlogin";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Reference in New Issue
Block a user