More static please

By: md_5 <md_5@live.com.au>
This commit is contained in:
Spigot
2013-06-21 18:57:20 +10:00
parent 4019e76015
commit 0e540153e1
7 changed files with 23 additions and 23 deletions

View File

@@ -1,4 +1,4 @@
From 1b2363993453160576da3b0ec93eeb951a30e3bb Mon Sep 17 00:00:00 2001
From acf178a300ecdb3581ae80151abb9bcc7c396f5d Mon Sep 17 00:00:00 2001
From: md_5 <md_5@live.com.au>
Date: Sat, 23 Mar 2013 11:15:11 +1100
Subject: [PATCH] BungeeCord Support
@@ -75,7 +75,7 @@ index 7cae665..21141f2 100644
public Spigot spigot()
diff --git a/src/main/java/org/spigotmc/SpigotConfig.java b/src/main/java/org/spigotmc/SpigotConfig.java
index 8d59e39..d882808 100644
index 263cb82..14a980b 100644
--- a/src/main/java/org/spigotmc/SpigotConfig.java
+++ b/src/main/java/org/spigotmc/SpigotConfig.java
@@ -7,6 +7,7 @@ import java.lang.reflect.InvocationTargetException;
@@ -87,7 +87,7 @@ index 8d59e39..d882808 100644
import java.util.HashMap;
import java.util.List;
@@ -189,4 +190,14 @@ public class SpigotConfig
this.listeners.add( new Listener( host, port, netty, connectionThrottle ) );
listeners.add( new Listener( host, port, netty, connectionThrottle ) );
}
}
+ public static List<String> bungeeAddresses = Arrays.asList( new String[]
@@ -95,7 +95,7 @@ index 8d59e39..d882808 100644
+ "127.0.0.1"
+ } );
+ public static boolean bungee = true;
+ private void bungee()
+ private static void bungee()
+ {
+ bungeeAddresses = getList( "settings.bungeecord-addresses", bungee );
+ bungee = getBoolean( "settings.bungeecord", true );