public static void loadKeys() {
		HashMap<String, String[]> oldKeys = loadKey();

		if (oldKeys == null) {
			ColorKeys.Log(Level.SEVERE, "Unable to load old Keys file.");

			return;
		}

		for (String player : oldKeys.keySet()) {
			for (String k : oldKeys.get(player)) {
				String[] parts;
				int uses = -1;

				if (k.contains(",")) {
					String[] p2 = k.split(",");
					parts = p2[0].split(";");
					uses = Integer.parseInt(p2[1]);
				}
				else
					parts = k.split(";");

				KeyFiles.giveKey(player, new CKKey(parts[0], parts[1], Integer.parseInt(parts[2]), uses, uses));
			}
		}

		if (KeyFiles.save()) {
			ColorKeys.Log(Level.INFO, "Old Keys file converted to new format successfully; removing old Keys file.");

			if (!KeysFile.delete()) {
				ColorKeys.Log(Level.INFO, "Unable to remove old Keys file; marking for deletion on exit.");

				KeysFile.deleteOnExit();
			}
		}
	}