diff --git a/README.md b/README.md index 0c67c31..e374c1a 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ This plugin adds the support for [Velocity](https://velocitypowered.com/) to [AuthMeReloaded](https://github.com/AuthMe/AuthMeReloaded) ## Requirements -- Spigot, Paper, Pufferfish or Purpur 1.8-1.19.2 && 1.19.4+ +- Paper, Pufferfish or Purpur 1.8-1.19.2 && 1.19.4+ - Velocity 3.2.0+ - Java 17+ @@ -21,7 +21,7 @@ This plugin adds the support for [Velocity](https://velocitypowered.com/) to [Au ## Setup 1. Download the latest release of the plugin [link](https://modrinth.com/plugin/authmevelocity) 2. Install AuthMeVelocity-Proxy on your Velocity Proxy -3. Install AuthMeVelocity-Paper on your Spigot/Paper servers that have AuthMeReloaded installed +3. Install AuthMeVelocity-Paper on your Paper servers that have AuthMeReloaded installed 4. Start the Velocity proxy and set up the config.conf with the auth servers. ## Plugin API diff --git a/gradle.properties b/gradle.properties index 986747a..660e64b 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,5 +1,5 @@ group = io.github.4drian3d -version = 4.0.3-SNAPSHOT +version = 4.0.3 description = AuthMeReloaded Support for Velocity url = https://modrinth.com/plugin/authmevelocity id = authmevelocity diff --git a/velocity/src/main/java/io/github/_4drian3d/authmevelocity/velocity/AuthMeVelocityPlugin.java b/velocity/src/main/java/io/github/_4drian3d/authmevelocity/velocity/AuthMeVelocityPlugin.java index 63215df..bdeb871 100644 --- a/velocity/src/main/java/io/github/_4drian3d/authmevelocity/velocity/AuthMeVelocityPlugin.java +++ b/velocity/src/main/java/io/github/_4drian3d/authmevelocity/velocity/AuthMeVelocityPlugin.java @@ -157,6 +157,7 @@ public final class AuthMeVelocityPlugin implements AuthMeVelocityAPI { } final boolean vpacketevents = pluginManager.isLoaded("vpacketevents"); + metrics.addCustomChart(new SimplePie("vpacketevents_listener", () -> Boolean.toString(vpacketevents))); if (vpacketevents) { injector.getInstance(CompletionPacketListener.class).register(); } diff --git a/velocity/src/main/java/io/github/_4drian3d/authmevelocity/velocity/listener/data/PluginMessageListener.java b/velocity/src/main/java/io/github/_4drian3d/authmevelocity/velocity/listener/data/PluginMessageListener.java index 093dc98..a9393c4 100644 --- a/velocity/src/main/java/io/github/_4drian3d/authmevelocity/velocity/listener/data/PluginMessageListener.java +++ b/velocity/src/main/java/io/github/_4drian3d/authmevelocity/velocity/listener/data/PluginMessageListener.java @@ -141,7 +141,7 @@ public final class PluginMessageListener implements Listener } player.createConnectionRequest(event.getResult().getServer()) .connect() - .thenAcceptAsync(result -> { + .thenAccept(result -> { if (!result.isSuccessful()) { logger.info("Unable to connect the player {} to the server {}", player.getUsername(),