/*
 * Copyright  2014 - 2017 | Wurst-Imperium | All rights reserved.
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */
package net.wurstclient.keybinds;

import java.util.Arrays;
import java.util.TreeMap;
import java.util.TreeSet;

public class KeybindManager extends TreeMap<String, TreeSet<String>>
{
	public void loadDefaults()
	{
		put("B", ".t fastbreak", ".t fastplace");
		put("C", ".t fullbright");
		put("G", ".t flight");
		put("GRAVE", ".t speednuker");
		put("H", ".t /home");
		put("J", ".t jesus");
		put("K", ".t multiaura");
		put("L", ".t nuker");
		put("LCONTROL", ".t navigator");
		put("R", ".t killaura");
		put("RSHIFT", ".t navigator");
		put("U", ".t freecam");
		put("X", ".t x-ray");
		put("Z", ".t sneak");
	}
	
	public void put(String key, String... commands)
	{
		put(key, new TreeSet<>(Arrays.asList(commands)));
	}
}

@@ -331,16 +331,66 @@
 Arrays;%0A
+import java.util.Map.Entry;%0Aimport java.util.Set;%0A
 import j
@@ -465,16 +465,25 @@
 ager
- extends
+%0A%7B%0A%09private final
  Tre
@@ -511,18 +511,41 @@
 String%3E%3E
-%0A%7B
+ map = new TreeMap%3C%3E();%0A%09
 %0A%09public
@@ -1023,24 +1023,28 @@
 mands)%0A%09%7B%0A%09%09
+map.
 put(key, new
@@ -1083,11 +1083,520 @@
 s)));%0A%09%7D
+%0A%0A%09public int size()%0A%09%7B%0A%09%09return map.size();%0A%09%7D%0A%0A%09public boolean containsValue(Object value)%0A%09%7B%0A%09%09return map.containsValue(value);%0A%09%7D%0A%0A%09public TreeSet%3CString%3E get(Object key)%0A%09%7B%0A%09%09return map.get(key);%0A%09%7D%0A%0A%09public TreeSet%3CString%3E put(String key, TreeSet%3CString%3E value)%0A%09%7B%0A%09%09return map.put(key, value);%0A%09%7D%0A%0A%09public TreeSet%3CString%3E remove(Object key)%0A%09%7B%0A%09%09return map.remove(key);%0A%09%7D%0A%0A%09public void clear()%0A%09%7B%0A%09%09map.clear();%0A%09%7D%0A%0A%09public Set%3CEntry%3CString, TreeSet%3CString%3E%3E%3E entrySet()%0A%09%7B%0A%09%09return map.entrySet();%0A%09%7D
 %0A%7D%0A

Update KeybindManager