ServerEvents.loaded(event => {
  const server = event.server
  if (!server) return

  const commands = [
    'scoreboard objectives add kills playerKillCount',
    'scoreboard objectives setdisplay sidebar kills',
    'scoreboard objectives setdisplay list kills'
  ]

  commands.forEach(cmd => {
    try {
      server.runCommandSilent(cmd)
    } catch (e) {
      // Evita errores si el objetivo ya existe
    }
  })
})
