public static int readExperience(String expBar, int multiplier, ChatColor on, ChatColor off)
	{
		int exp = 0;

		expBar = expBar.substring(3, expBar.length() - 3); // Remove brackets

		String[] lines = expBar.split("\\|");

		for (int i = 0; i < lines.length; i++)
		{
			String line = lines[i];

			if (line.equals(on.toString()))
			{
				exp += multiplier;
			}
			else if (line.equals(off.toString()))
			{
				break;
			}
		}

		return exp;
	}