From dc946cb8456e60d28fc996c2322a149de3ebac5b Mon Sep 17 00:00:00 2001 From: Matsv Date: Fri, 3 Jun 2016 20:49:06 +0200 Subject: [PATCH 1/2] An amazing feature. --- pom.xml | 13 +++++++++++++ src/main/java/us/myles/ViaVersion/Bungee.java | 18 ++++++++++++++++++ src/main/resources/bungee.yml | 4 ++++ 3 files changed, 35 insertions(+) create mode 100644 src/main/java/us/myles/ViaVersion/Bungee.java create mode 100644 src/main/resources/bungee.yml diff --git a/pom.xml b/pom.xml index 9e90cace7..cc5f4bd85 100644 --- a/pom.xml +++ b/pom.xml @@ -136,6 +136,12 @@ spacehq-repo https://repo.spacehq.org/content/repositories/releases/ + + + + bungeecord-repo + https://oss.sonatype.org/content/repositories/snapshots + @@ -205,5 +211,12 @@ 1.16.6 provided + + + + net.md-5 + bungeecord-api + 1.9-SNAPSHOT + diff --git a/src/main/java/us/myles/ViaVersion/Bungee.java b/src/main/java/us/myles/ViaVersion/Bungee.java new file mode 100644 index 000000000..391a655c9 --- /dev/null +++ b/src/main/java/us/myles/ViaVersion/Bungee.java @@ -0,0 +1,18 @@ +package us.myles.ViaVersion; + +import net.md_5.bungee.api.plugin.Plugin; + +import static net.md_5.bungee.api.ChatColor.RED; + +public class Bungee extends Plugin { + + @Override + public void onEnable() { + getLogger().info(RED + "==============================================="); + getLogger().info(RED + "ViaVersion is NOT a Bungeecord plugin"); + getLogger().info(RED + "Install this plugin on all your spigot/bukkit"); + getLogger().info(RED + "servers and use the latest Bungeecord version"); + getLogger().info(RED + "to make ViaVersion work with BungeeCord."); + getLogger().info(RED + "==============================================="); + } +} diff --git a/src/main/resources/bungee.yml b/src/main/resources/bungee.yml new file mode 100644 index 000000000..216d2e7cf --- /dev/null +++ b/src/main/resources/bungee.yml @@ -0,0 +1,4 @@ +name: ViaVersion +main: us.myles.ViaVersion.Bungee +author: _MylesC +version: ${project.version} \ No newline at end of file From c9441de7e4c90c63527ddce3e2e1f019562ef28e Mon Sep 17 00:00:00 2001 From: Matsv Date: Fri, 3 Jun 2016 21:15:53 +0200 Subject: [PATCH 2/2] Change from info to severe --- src/main/java/us/myles/ViaVersion/Bungee.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/us/myles/ViaVersion/Bungee.java b/src/main/java/us/myles/ViaVersion/Bungee.java index 391a655c9..eba8e8c79 100644 --- a/src/main/java/us/myles/ViaVersion/Bungee.java +++ b/src/main/java/us/myles/ViaVersion/Bungee.java @@ -8,11 +8,11 @@ public class Bungee extends Plugin { @Override public void onEnable() { - getLogger().info(RED + "==============================================="); - getLogger().info(RED + "ViaVersion is NOT a Bungeecord plugin"); - getLogger().info(RED + "Install this plugin on all your spigot/bukkit"); - getLogger().info(RED + "servers and use the latest Bungeecord version"); - getLogger().info(RED + "to make ViaVersion work with BungeeCord."); - getLogger().info(RED + "==============================================="); + getLogger().severe(RED + "==============================================="); + getLogger().severe(RED + "ViaVersion is NOT a Bungeecord plugin"); + getLogger().severe(RED + "Install this plugin on all your spigot/bukkit"); + getLogger().severe(RED + "servers and use the latest Bungeecord version"); + getLogger().severe(RED + "to make ViaVersion work with BungeeCord."); + getLogger().severe(RED + "==============================================="); } }