@Subscribe
	public void onVarbitChanged(VarbitChanged varbitChanged)
	{
		if (varbitChanged.getVarbitId() == Varbits.WINTERTODT_TIMER)
		{
			int timeToNotify = config.roundNotification();
			// Sometimes wt var updates are sent to players even after leaving wt.
			// So only notify if in wt or after just having left.
			if (timeToNotify > 0 && (isInWintertodt || needRoundNotif))
			{
				int timeInSeconds = varbitChanged.getValue() * 30 / 50;
				int prevTimeInSeconds = previousTimerValue * 30 / 50;

				log.debug("Seconds left until round start: {}", timeInSeconds);

				if (prevTimeInSeconds > timeToNotify && timeInSeconds <= timeToNotify)
				{
					notifier.notify("Wintertodt round is about to start");
					needRoundNotif = false;
				}
			}

			previousTimerValue = varbitChanged.getValue();
		}
	}
@Test
	public void matchStartingNotification_shouldNotifyOnce()
	{
		when(config.roundNotification()).thenReturn(5);

		VarbitChanged varbitChanged = new VarbitChanged();
		varbitChanged.setVarbitId(Varbits.WINTERTODT_TIMER);

		varbitChanged.setValue(0);
		wintertodtPlugin.onVarbitChanged(varbitChanged);
		varbitChanged.setValue(10);
		wintertodtPlugin.onVarbitChanged(varbitChanged);
		varbitChanged.setValue(8);
		wintertodtPlugin.onVarbitChanged(varbitChanged);
		varbitChanged.setValue(6);
		wintertodtPlugin.onVarbitChanged(varbitChanged);
		varbitChanged.setValue(5);
		wintertodtPlugin.onVarbitChanged(varbitChanged);
		varbitChanged.setValue(4);
		wintertodtPlugin.onVarbitChanged(varbitChanged);

		verify(notifier, times(1)).notify("Wintertodt round is about to start");
	}