Bring bungee support back in line with what the protocol update had

By: md_5 <md_5@live.com.au>
This commit is contained in:
Spigot
2013-12-11 11:25:32 +11:00
parent 4761aaf833
commit 130d646157
2 changed files with 14 additions and 9 deletions

View File

@@ -1,4 +1,4 @@
From bdc4682b80e5ea2f0907dbe9be34c610b7ba9697 Mon Sep 17 00:00:00 2001
From b11af60198e1cf24cacc156876794fda7aaa2d72 Mon Sep 17 00:00:00 2001
From: md_5 <md_5@live.com.au>
Date: Sun, 1 Dec 2013 18:18:41 +1100
Subject: [PATCH] BungeeCord Support
@@ -39,17 +39,22 @@ index 8f829bb..42e6311 100644
private EnumProtocol n;
private IChatBaseComponent o;
diff --git a/src/main/java/org/spigotmc/SpigotConfig.java b/src/main/java/org/spigotmc/SpigotConfig.java
index 3039634..ca393d0 100644
index 801b071..3ed1c29 100644
--- a/src/main/java/org/spigotmc/SpigotConfig.java
+++ b/src/main/java/org/spigotmc/SpigotConfig.java
@@ -187,4 +187,9 @@ public class SpigotConfig
@@ -187,4 +187,14 @@ public class SpigotConfig
commands.put( "restart", new RestartCommand( "restart" ) );
WatchdogThread.doStart( timeoutTime, restartOnCrash );
}
+
+ public static boolean bungee = true;
+ public static boolean bungee;
+ private static void bungee() {
+ bungee = getBoolean("settings.bungeecord", true);
+ if ( version < 4 )
+ {
+ set( "settings.bungeecord", false );
+ System.out.println( "Oudated config, disabling BungeeCord support!" );
+ }
+ bungee = getBoolean( "settings.bungeecord", false );
+ }
}
--