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

		if (event.getMessage().equals("You add the furnace."))
		{
			cannonWorld = client.getWorld();
		}
		else if (event.getMessage().contains("Your cannon is out of ammo!"))
		{
			notifier.notify(config.showCannonNotifications(), "Your cannon is out of ammo!");
		}
	}
@Test
	public void testCannonOutOfAmmo()
	{
		when(config.showCannonNotifications()).thenReturn(Notification.ON);
		ChatMessage cannonOutOfAmmo = new ChatMessage(null, ChatMessageType.GAMEMESSAGE, "", "Your cannon is out of ammo!", "", 0);

		plugin.onChatMessage(cannonOutOfAmmo);

		verify(notifier, times(1)).notify(Notification.ON, "Your cannon is out of ammo!");
	}