From fa3e85b97bfefab129935073dda22a2a6f9aa3a8 Mon Sep 17 00:00:00 2001 From: Aust1n46 Date: Sun, 29 Aug 2021 01:20:23 -0400 Subject: [PATCH] Remove Plugin annotation and create resource file. Allows for easily injecting version from the pom. --- .../mineverse/Aust1n46/chat/proxy/VentureChatVelocity.java | 3 --- src/main/resources/velocity-plugin.json | 1 + 2 files changed, 1 insertion(+), 3 deletions(-) create mode 100644 src/main/resources/velocity-plugin.json diff --git a/src/main/java/mineverse/Aust1n46/chat/proxy/VentureChatVelocity.java b/src/main/java/mineverse/Aust1n46/chat/proxy/VentureChatVelocity.java index e2ce404..6653bc0 100644 --- a/src/main/java/mineverse/Aust1n46/chat/proxy/VentureChatVelocity.java +++ b/src/main/java/mineverse/Aust1n46/chat/proxy/VentureChatVelocity.java @@ -20,7 +20,6 @@ import com.velocitypowered.api.event.connection.PluginMessageEvent.ForwardResult import com.velocitypowered.api.event.player.ServerPostConnectEvent; import com.velocitypowered.api.event.proxy.ProxyInitializeEvent; import com.velocitypowered.api.event.proxy.ProxyShutdownEvent; -import com.velocitypowered.api.plugin.Plugin; import com.velocitypowered.api.plugin.annotation.DataDirectory; import com.velocitypowered.api.proxy.Player; import com.velocitypowered.api.proxy.ProxyServer; @@ -40,8 +39,6 @@ import net.md_5.bungee.config.YamlConfiguration; * * @author Aust1n46 */ -@Plugin(id = "venturechat", name = "VentureChat", version = "3.1.0", -description = "#1 Channels Chat plugin! Spigot + Bungee. Supports PlaceholderAPI + JSON formatting. Moderation GUI!", authors = {"Aust1n46"}) public class VentureChatVelocity implements VentureChatProxySource { private final ProxyServer proxyServer; private final ChannelIdentifier channelIdentifier = MinecraftChannelIdentifier.create(VentureChatProxy.PLUGIN_MESSAGING_CHANNEL_NAMESPACE, VentureChatProxy.PLUGIN_MESSAGING_CHANNEL_NAME); diff --git a/src/main/resources/velocity-plugin.json b/src/main/resources/velocity-plugin.json new file mode 100644 index 0000000..c3068aa --- /dev/null +++ b/src/main/resources/velocity-plugin.json @@ -0,0 +1 @@ +{"id":"venturechat","name":"VentureChat","version":"${project.version}","description":"#1 Channels Chat plugin! Spigot + Bungee. Supports PlaceholderAPI + JSON formatting. Moderation GUI!","authors":["Aust1n46"],"dependencies":[],"main":"mineverse.Aust1n46.chat.proxy.VentureChatVelocity"} \ No newline at end of file