From 891dc87b165aaa3aa6736917a07687e8809ffac3 Mon Sep 17 00:00:00 2001 From: md_5 Date: Sat, 28 Sep 2013 21:00:38 +1000 Subject: [PATCH] Allow unrecognised command line args --- bootstrap/src/main/java/net/md_5/bungee/Bootstrap.java | 1 + proxy/src/main/java/net/md_5/bungee/ConnectionThrottle.java | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/bootstrap/src/main/java/net/md_5/bungee/Bootstrap.java b/bootstrap/src/main/java/net/md_5/bungee/Bootstrap.java index 686cf17b..61a719f4 100644 --- a/bootstrap/src/main/java/net/md_5/bungee/Bootstrap.java +++ b/bootstrap/src/main/java/net/md_5/bungee/Bootstrap.java @@ -29,6 +29,7 @@ public class Bootstrap public static void main(String[] args) throws Exception { OptionParser parser = new OptionParser(); + parser.allowsUnrecognizedOptions(); parser.acceptsAll( list( "v", "version" ) ); OptionSet options = parser.parse( args ); diff --git a/proxy/src/main/java/net/md_5/bungee/ConnectionThrottle.java b/proxy/src/main/java/net/md_5/bungee/ConnectionThrottle.java index dbf30da6..ae9a7ebe 100644 --- a/proxy/src/main/java/net/md_5/bungee/ConnectionThrottle.java +++ b/proxy/src/main/java/net/md_5/bungee/ConnectionThrottle.java @@ -1,6 +1,5 @@ package net.md_5.bungee; -import gnu.trove.map.hash.TObjectLongHashMap; import java.net.InetAddress; import java.util.HashMap; import java.util.Map;