@Subscribe
	public void onChatMessage(ChatMessage event)
	{
		if (event.getType() != ChatMessageType.SPAM)
		{
			return;
		}

		if (event.getMessage().startsWith("You retrieve a bar of"))
		{
			if (session == null)
			{
				session = new SmeltingSession();
			}
			session.increaseBarsSmelted();
		}
		else if (event.getMessage().endsWith(" to form 8 cannonballs."))
		{
			cannonBallsMade = 8;
		}
		else if (event.getMessage().endsWith(" to form 4 cannonballs."))
		{
			cannonBallsMade = 4;
		}
		else if (event.getMessage().startsWith("You remove the cannonballs from the mould"))
		{
			if (session == null)
			{
				session = new SmeltingSession();
			}
			session.increaseCannonBallsSmelted(cannonBallsMade);
		}
	}
@Test
	public void testBars()
	{
		ChatMessage chatMessage = new ChatMessage(null, ChatMessageType.SPAM, "", SMELT_BAR, "", 0);
		smeltingPlugin.onChatMessage(chatMessage);

		SmeltingSession smeltingSession = smeltingPlugin.getSession();
		assertNotNull(smeltingSession);
		assertEquals(1, smeltingSession.getBarsSmelted());
	}