* @param event the {@link OutputChangeEvent} that occurred
*
* @since 1.6.0
*/
private void outputChanged(String playerId, OutputChangeEvent event) {
MPDOutput output = (MPDOutput) event.getSource();
logger.debug("Output {} changed on player {}, enabled = {}", output.getId(), playerId, output.isEnabled());
PlayerCommandTypeMapping playerCommand =
output.isEnabled() ? PlayerCommandTypeMapping.ENABLE
: PlayerCommandTypeMapping.DISABLE;
String[] itemNames = getItemsByPlayerCommandAndOutput(playerId, playerCommand, output);
for (String itemName : itemNames) {
eventPublisher.postUpdate(itemName, (State) playerCommand.type);
}