From 68fc884d2aad6c230be24449e5d1e30f05243249 Mon Sep 17 00:00:00 2001 From: Matsv Date: Sat, 12 Nov 2016 13:16:27 +0100 Subject: [PATCH] Change the platform name to the full name that includes the version --- bukkit/src/main/java/us/myles/ViaVersion/ViaVersionPlugin.java | 2 +- bungee/src/main/java/us/myles/ViaVersion/BungeePlugin.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bukkit/src/main/java/us/myles/ViaVersion/ViaVersionPlugin.java b/bukkit/src/main/java/us/myles/ViaVersion/ViaVersionPlugin.java index a85fba03a..50ae1a1f7 100644 --- a/bukkit/src/main/java/us/myles/ViaVersion/ViaVersionPlugin.java +++ b/bukkit/src/main/java/us/myles/ViaVersion/ViaVersionPlugin.java @@ -141,7 +141,7 @@ public class ViaVersionPlugin extends JavaPlugin implements ViaPlatform { @Override public String getPlatformName() { - return "Bukkit"; + return Bukkit.getServer().getVersion(); } @Override diff --git a/bungee/src/main/java/us/myles/ViaVersion/BungeePlugin.java b/bungee/src/main/java/us/myles/ViaVersion/BungeePlugin.java index 7266e76c2..1bdc6c23d 100644 --- a/bungee/src/main/java/us/myles/ViaVersion/BungeePlugin.java +++ b/bungee/src/main/java/us/myles/ViaVersion/BungeePlugin.java @@ -56,7 +56,7 @@ public class BungeePlugin extends Plugin implements ViaPlatform, Listener { @Override public String getPlatformName() { - return "BungeeCord"; + return getProxy().getVersion(); } @Override